vc4: Return NULL when we can't make our shadow for a sampler view.
authorEric Anholt <eric@anholt.net>
Mon, 9 Nov 2015 16:56:01 +0000 (08:56 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 10 Nov 2015 03:17:36 +0000 (19:17 -0800)
commit5980389bbf98b8186ba6a06392d92b82fa9efad3
treea2a8b6b928de4f861fc235295085f55231d470eb
parenteb8fb0064dbde7a363c2f99466a51b346b09a029
vc4: Return NULL when we can't make our shadow for a sampler view.

I'm not sure what the caller does is appropriate (just have a NULL sampler
at this slot), but it fixes the immediate crash.

Cc: "11.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/vc4/vc4_state.c