gallium: do not reset buffers for unsupported stages
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 7 Dec 2020 16:42:43 +0000 (17:42 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 7 Dec 2020 17:29:39 +0000 (17:29 +0000)
commit3abac03d49b5dc4a6642fe0637da5a19ad60dd4f
tree2a97655130fd5827f8593ff204b8ed41904f7d40
parentc4342755cc08c2dc3650bdeafa9c07f51b8b87f1
gallium: do not reset buffers for unsupported stages

There's no good reason why drivers that doesn't grok geometry,
tesselation or compute shaders needs to deal with them.

This fixes a crash on a lot of Piglit tests for Zink.

Fixes: daaf5f1d186 ("gallium: Fix leak of currently bound UBOs at CSO context destruction.")
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7971>
src/gallium/auxiliary/cso_cache/cso_context.c