iris: Fix set_sampler_views with start > 0

This commit is contained in:
Kenneth Graunke 2018-12-02 23:15:41 -08:00
parent 1c6fea8e7b
commit 7ad7d0beea

View file

@ -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;