mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
radeonsi: Clear sampler view flags when binding a buffer
Fixes assertion failure while running the Unreal Engine 4 Elemental demo: .../si_blit.c:322:si_decompress_color_textures: Assertion `tex->cmask.size || tex->fmask.size' failed. Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
ca00070259
commit
ed03747e6a
1 changed files with 5 additions and 0 deletions
|
|
@ -422,6 +422,11 @@ static void si_set_sampler_views(struct pipe_context *ctx,
|
|||
si_set_sampler_view(sctx, shader, SI_FMASK_TEX_OFFSET + slot,
|
||||
NULL, NULL);
|
||||
}
|
||||
} else {
|
||||
samplers->depth_texture_mask &= ~(1 << slot);
|
||||
samplers->compressed_colortex_mask &= ~(1 << slot);
|
||||
si_set_sampler_view(sctx, shader, SI_FMASK_TEX_OFFSET + slot,
|
||||
NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue