From: Kenneth Graunke Date: Mon, 3 Dec 2018 07:15:41 +0000 (-0800) Subject: iris: Fix set_sampler_views with start > 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ad7d0beea97eaec0c670865d62e7d7268a3d5bd;p=mesa.git iris: Fix set_sampler_views with start > 0 --- 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;