st/bitmap: only release YUV samplerviews
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

this is consistent with other callers of st_get_sampler_views() and
avoids desync in the sv cache

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14934
Fixes: 73da0dcddc ("gallium: eliminate frontend refcounting from samplerviews")

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40095>
This commit is contained in:
Mike Blumenkrantz 2026-02-25 10:07:49 -05:00 committed by Marge Bot
parent 3ba275aa70
commit 1a5c660ef5

View file

@ -255,8 +255,8 @@ setup_render_state(struct gl_context *ctx,
pipe->set_sampler_views(pipe, MESA_SHADER_FRAGMENT, 0, num_views, 0,
sampler_views);
st->state.num_sampler_views[MESA_SHADER_FRAGMENT] = num_views;
for (unsigned i = 0; i < num_views; i++)
/* only free YUV samplerviews */
u_foreach_bit(i, extra_sampler_views)
pipe->sampler_view_release(pipe, sampler_views[i]);
}