tests: add reproducer for issue #2596
commit18d43493e4122ff5a311e3055ca0a590b08ea92a
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 5 Mar 2020 15:51:02 +0000 (5 16:51 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 25 Mar 2020 09:46:41 +0000 (25 10:46 +0100)
tree6dd0e897ee0e1404bb5fcd5c1e45cb4ce9373da0
parentcdb765a36b785799eea414b3379c2f88b7429f9b
tests: add reproducer for issue #2596

Issue is related to radeonsi live shader cache: cso_context unbinds a vertex shader
that's going to be destroyed. Except that it shouldn't because the shader is ref-counted,
and it won't actually be destroyed.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/237>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/237>
tests/opengl.py
tests/shaders/useprogram-refcount-1.c