Skip to content
Snippets Groups Projects
Commit 456bd9fc authored by Iago López Galeiras's avatar Iago López Galeiras
Browse files

asahi: unbind samplers and fix sampler_count if state is NULL

When states is NULL, unbind samplers (to avoid dangling pointers) and
set sampler_count to the highest non-null samplers[] entry instead of
setting it to 0.

This is ported from a similar fix in panfrost:
mesa/mesa!20285



Signed-off-by: default avatarIago López Galeiras <iaguis@gmail.com>
parent 3fc6e787
Loading
Pipeline #761673 waiting for manual action
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment