diff options
author | Marek Olšák <[email protected]> | 2016-12-02 02:57:30 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-12-07 18:46:54 +0100 |
commit | 38d4859b9465146189c234cd372de9d3eee86a92 (patch) | |
tree | e9ce0cd0964b2df2268d7eb20a0f1458b5da4d14 /src | |
parent | b3a2aa9cba46bd6c8de22390b3b1ce9ac6c27988 (diff) |
radeonsi: fix incorrect FMASK checking in bind_sampler_states
Cc: 12.0 13.0 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 8777f36edc6..cf661022d28 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -808,10 +808,10 @@ static void si_bind_sampler_states(struct pipe_context *ctx, /* If FMASK is bound, don't overwrite it. * The sampler state will be set after FMASK is unbound. */ - if (samplers->views.views[i] && - samplers->views.views[i]->texture && - samplers->views.views[i]->texture->target != PIPE_BUFFER && - ((struct r600_texture*)samplers->views.views[i]->texture)->fmask.size) + if (samplers->views.views[slot] && + samplers->views.views[slot]->texture && + samplers->views.views[slot]->texture->target != PIPE_BUFFER && + ((struct r600_texture*)samplers->views.views[slot]->texture)->fmask.size) continue; memcpy(desc->list + slot * 16 + 12, sstates[i]->val, 4*4); |