gallium/noop: fix a crash in sampler_view_release

This fixes running shader-db with GALLIUM_NOOP, which is good for
measuring only GLSL/frontend compile times.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35995>
This commit is contained in:
Marek Olšák
2025-07-08 01:36:39 -04:00
committed by Marge Bot
parent 3b27269be4
commit dd06c24577
@@ -177,14 +177,6 @@ static void noop_sampler_view_destroy(struct pipe_context *ctx,
FREE(state);
}
static void noop_sampler_view_release(struct pipe_context *ctx,
struct pipe_sampler_view *state)
{
noop_sampler_view_destroy(ctx, state);
}
static void noop_bind_state(struct pipe_context *ctx, void *state)
{
}
@@ -452,7 +444,7 @@ void noop_init_state_functions(struct pipe_context *ctx)
ctx->set_viewport_states = noop_set_viewport_states;
ctx->set_window_rectangles = noop_set_window_rectangles;
ctx->sampler_view_destroy = noop_sampler_view_destroy;
ctx->sampler_view_release = noop_sampler_view_release;
ctx->sampler_view_release = u_default_sampler_view_release;
ctx->draw_vbo = noop_draw_vbo;
ctx->draw_vertex_state = noop_draw_vertex_state;
ctx->launch_grid = noop_launch_grid;