This test is based on the glx shader sharing test. It currently fails for me on radeonsi. The idea is:
- create context A+B - make A current - create buffer - set buffer content to red - bind buffer as uniform - draw quad with uniform colour - make B current - bind buffer as uniform - draw quad with uniform colour - set buffer content to green - draw quad with uniform colour - make A current - draw quad with uniform colour ** this one ends up red - set buffer content to blue ** this results in the assert - draw quad with uniform colour My mesa-dev post on the issue: https://lists.freedesktop.org/archives/mesa-dev/2017-December/180779.html This is what I'm using to work around it: https://github.com/corngood/mesa/commit/54174bbe6c58a28b1a64105944649bed78d65f17 If you take that commit and run this test on radeonsi, the test should fail, but if you enable R600_DEBUG=disable_buffer_realloc, it should pass. Does anyone see a problem with how I'm expecting this to work? If not, is this a suitable test for piglit? David McFarland (1): Add glx buffer sharing test. tests/all.py | 1 + tests/glx/CMakeLists.gl.txt | 1 + tests/glx/glx-buffer-sharing.c | 277 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 279 insertions(+) create mode 100644 tests/glx/glx-buffer-sharing.c -- 2.15.1 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit