diff options
author | Alyssa Rosenzweig <alyssa@collabora.com> | 2022-11-30 18:45:03 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-12-23 19:05:10 +0000 |
commit | 3c56b9c7a3f6ccd3b950bff8feb87291f64b8e30 (patch) | |
tree | e231c03d250cd861ee964f1910acfc996ec5287b /src/gallium/drivers/panfrost/pan_resource.h | |
parent | 955417aa3ecfad9b752985471a54743b784573c7 (diff) | |
download | mesa-3c56b9c7a3f6ccd3b950bff8feb87291f64b8e30.tar.gz |
panfrost: Remove rsrc->track
Just check on the context instead. Usually the number of batches is small so
this is still fast, and avoids all the tricky atomics and the batch->resources
set which existed only for bookkeeping.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20426>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_resource.h')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_resource.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gallium/drivers/panfrost/pan_resource.h b/src/gallium/drivers/panfrost/pan_resource.h index c5c14f5c88b..eb39726c46e 100644 --- a/src/gallium/drivers/panfrost/pan_resource.h +++ b/src/gallium/drivers/panfrost/pan_resource.h @@ -50,17 +50,6 @@ struct panfrost_resource { } tile_map; } damage; - struct { - /** Number of batches accessing this resource. Used to check if - * a resource is in use. */ - _Atomic unsigned nr_users; - - /** Number of batches writing this resource. Note that only one - * batch per context may write a resource, so this is the - * number of contexts that have an active writer. */ - _Atomic unsigned nr_writers; - } track; - struct renderonly_scanout *scanout; struct panfrost_resource *separate_stencil; |