diff options
author | Connor Abbott <[email protected]> | 2020-03-16 15:23:44 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-17 09:40:26 +0000 |
commit | 3ff437abb3f4ecaef1e3f241392b827cc3fdd202 (patch) | |
tree | 7c7ea3f6d0750abd691ca849e260c4f2794d7070 /src/freedreno/vulkan | |
parent | 32eecf58791ea3c5367e5ff4a542ae25fc3ce61d (diff) |
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>
Diffstat (limited to 'src/freedreno/vulkan')
-rw-r--r-- | src/freedreno/vulkan/tu_cmd_buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index d78356dbec8..515ef815950 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -1165,6 +1165,8 @@ tu6_init_hw(struct tu_cmd_buffer *cmd, struct tu_cs *cs) tu_cs_emit_regs(cs, A6XX_SP_TP_BORDER_COLOR_BASE_ADDR(.bo = &cmd->device->border_color)); + tu_cs_emit_regs(cs, + A6XX_SP_PS_TP_BORDER_COLOR_BASE_ADDR(.bo = &cmd->device->border_color)); tu_cs_sanity_check(cs); } |