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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user