turnip: don't set LRZ enable at end of renderpass
authorJonathan Marek <jonathan@marek.ca>
Mon, 16 Dec 2019 16:06:36 +0000 (11:06 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Dec 2019 00:59:00 +0000 (00:59 +0000)
Fixes hanging with cases that use more than one renderpass.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3122>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3122>

src/freedreno/vulkan/tu_cmd_buffer.c

index 0c67ea983dbbf012b75d9d141e742d15e1f6dad8..71bb2639517b7ca2d810757e09481dc8d28cee25 100644 (file)
@@ -1428,7 +1428,7 @@ tu6_render_end(struct tu_cmd_buffer *cmd, struct tu_cs *cs)
    }
 
    tu_cs_emit_pkt4(cs, REG_A6XX_GRAS_LRZ_CNTL, 1);
-   tu_cs_emit(cs, A6XX_GRAS_LRZ_CNTL_ENABLE | A6XX_GRAS_LRZ_CNTL_UNK3);
+   tu_cs_emit(cs, 0);
 
    tu6_emit_lrz_flush(cmd, cs);