tu: Fix border color with compute shaders
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 16 Mar 2020 14:23:44 +0000 (15:23 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Mar 2020 09:40:26 +0000 (09:40 +0000)
commit3ff437abb3f4ecaef1e3f241392b827cc3fdd202
tree7c7ea3f6d0750abd691ca849e260c4f2794d7070
parent32eecf58791ea3c5367e5ff4a542ae25fc3ce61d
tu: Fix border color with compute shaders

I wasn't able to find any CTS tests that used compute shaders with
samplers and set a border color, so I hacked one of the tests included
with amber:

https://gist.github.com/cwabbott0/e72f0ed8259b84ed6bf3920c68fefee6

The register was found via looking at dumps of the Vulkan blob, and
setting it fixes this test.

Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4204>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4204>
src/freedreno/registers/a6xx.xml
src/freedreno/vulkan/tu_cmd_buffer.c