mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 11:10:25 +01:00
radeonsi: fix a crash when binding a NULL sampler view list
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
b142dd2f24
commit
82f64a68a4
1 changed files with 1 additions and 1 deletions
|
|
@ -404,7 +404,7 @@ static void si_set_sampler_views(struct pipe_context *ctx,
|
|||
for (i = 0; i < count; i++) {
|
||||
unsigned slot = start + i;
|
||||
|
||||
if (!views[i]) {
|
||||
if (!views || !views[i]) {
|
||||
samplers->depth_texture_mask &= ~(1 << slot);
|
||||
samplers->compressed_colortex_mask &= ~(1 << slot);
|
||||
si_set_sampler_view(sctx, shader, slot, NULL, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue