radeonsi: Handle NULL sampler views getting passed in by the state tracker.
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 21 Aug 2012 11:48:18 +0000 (13:48 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 21 Aug 2012 13:42:25 +0000 (15:42 +0200)
commit1a25ebe3ce95a6a4aef7c844dbe95909976b68da
tree9054e15756548d5b02755a285f218704a2d9a60d
parentc1114c619acf347917565cd1d0467240a89a76c0
radeonsi: Handle NULL sampler views getting passed in by the state tracker.

Don't dereference NULL pointers, and if all views are NULL, don't generate an
invalid PM4 packet which locks up the GPU.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeonsi/radeonsi_pm4.c
src/gallium/drivers/radeonsi/si_state.c