mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-03 15:00:37 +02:00
st/bitmap: only release YUV samplerviews
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:
parent
3ba275aa70
commit
1a5c660ef5
1 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue