diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 641af6d2073..7cd3e11a2b9 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1765,7 +1765,7 @@ iris_set_sampler_views(struct pipe_context *ctx, for (unsigned i = 0; i < count; i++) { pipe_sampler_view_reference((struct pipe_sampler_view **) - &shs->textures[i], views[i]); + &shs->textures[start + i], views[i]); struct iris_sampler_view *view = (void *) views[i]; if (view) view->res->bind_history |= PIPE_BIND_SAMPLER_VIEW;