mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
iris: fix set_sampler_view
Update to match docs. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
e167e8f8a2
commit
b2d651b862
1 changed files with 3 additions and 2 deletions
|
|
@ -2032,9 +2032,10 @@ iris_set_sampler_views(struct pipe_context *ctx,
|
|||
shs->bound_sampler_views &= ~u_bit_consecutive(start, count);
|
||||
|
||||
for (unsigned i = 0; i < count; i++) {
|
||||
struct pipe_sampler_view *pview = views ? views[i] : NULL;
|
||||
pipe_sampler_view_reference((struct pipe_sampler_view **)
|
||||
&shs->textures[start + i], views[i]);
|
||||
struct iris_sampler_view *view = (void *) views[i];
|
||||
&shs->textures[start + i], pview);
|
||||
struct iris_sampler_view *view = (void *) pview;
|
||||
if (view) {
|
||||
view->res->bind_history |= PIPE_BIND_SAMPLER_VIEW;
|
||||
shs->bound_sampler_views |= 1 << (start + i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue