freedreno: Handle cso==NULL in bind_sampler_states

This is a thing that comes up with clover.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13160>
This commit is contained in:
Rob Clark
2021-08-23 17:18:57 -07:00
committed by Marge Bot
parent 96b37b9546
commit 9e74f458a8
@@ -56,7 +56,7 @@ bind_sampler_states(struct fd_texture_stateobj *tex, unsigned start,
for (i = 0; i < nr; i++) {
unsigned p = i + start;
tex->samplers[p] = hwcso[i];
tex->samplers[p] = hwcso ? hwcso[i] : NULL;
if (tex->samplers[p])
tex->valid_samplers |= (1 << p);
else