From 7e60e1bbeceed72e3b3e0f7edb86d6283317130d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Mar 2025 06:48:07 -0400 Subject: [PATCH] mesa: remove st_sampler_view::private_refcount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no longer used Reviewed-by: Marek Olšák Part-of: --- src/mesa/state_tracker/st_texture.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h index 03bf8b8d774..a1cf9ea5ebd 100644 --- a/src/mesa/state_tracker/st_texture.h +++ b/src/mesa/state_tracker/st_texture.h @@ -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; };