mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
radeonsi: fix incorrect FMASK checking in bind_sampler_states
Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
(cherry picked from commit 38d4859b94)
This commit is contained in:
parent
6d919a6fc6
commit
3197612a1a
1 changed files with 4 additions and 4 deletions
|
|
@ -637,10 +637,10 @@ static void si_bind_sampler_states(struct pipe_context *ctx, unsigned shader,
|
|||
/* 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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue