st/mesa: always unbind constant buffer 0 when unbinding a shader
authorMarek Olšák <marek.olsak@amd.com>
Sat, 26 Nov 2022 17:22:26 +0000 (12:22 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Dec 2022 09:12:41 +0000 (09:12 +0000)
softpipe loads from an unbound and destroyed constant buffer for some reason

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19859>

src/mesa/state_tracker/st_atom.h

index e616c0d..938a1cf 100644 (file)
@@ -168,7 +168,6 @@ enum {
 
 #define ST_ALL_SHADER_RESOURCES (ST_NEW_SAMPLER_VIEWS | \
                                  ST_NEW_SAMPLERS | \
-                                 ST_NEW_CONSTANTS | \
                                  ST_NEW_UNIFORM_BUFFER | \
                                  ST_NEW_ATOMIC_BUFFER | \
                                  ST_NEW_STORAGE_BUFFER | \