mesa: remove st_sampler_view::private_refcount

no longer used

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34045>
This commit is contained in:
Mike Blumenkrantz 2025-03-13 06:48:07 -04:00 committed by Marge Bot
parent 5ad5f1a93c
commit 7e60e1bbec

View file

@ -64,24 +64,6 @@ struct st_sampler_view
bool glsl130_or_later;
/** Derived from the sampler's sRGBDecode state during validation */
bool srgb_skip_decode;
/* This mechanism allows passing sampler view references to the driver
* without using atomics to increase the reference count.
*
* This private refcount can be decremented without atomics but only one
* context (st above) can use this counter (so that it's only used by
* 1 thread).
*
* This number is atomically added to view->reference.count at
* initialization. If it's never used, the same number is atomically
* subtracted from view->reference.count before destruction. If this
* number is decremented, we can pass one reference to the driver without
* touching reference.count with atomics. At destruction we only subtract
* the number of references we have not returned. This can possibly turn
* a million atomic increments into 1 add and 1 subtract atomic op over
* the whole lifetime of an app.
*/
int private_refcount;
};