From 7ad7d0beea97eaec0c670865d62e7d7268a3d5bd Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 2 Dec 2018 23:15:41 -0800 Subject: [PATCH] iris: Fix set_sampler_views with start > 0 --- src/gallium/drivers/iris/iris_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2