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:
Marek Olšák 2015-02-01 13:16:06 +01:00
parent b142dd2f24
commit 82f64a68a4

View file

@ -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);