radv: set ENABLE_PING_PONG_BIN_ORDER for GFX11.5
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Sep 2023 10:50:14 +0000 (12:50 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 24 Oct 2023 06:20:47 +0000 (08:20 +0200)
Ported from RadeonSI.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25304>

src/amd/vulkan/si_cmd_buffer.c

index d74328e..058f97a 100644 (file)
@@ -588,7 +588,8 @@ si_emit_graphics(struct radv_device *device, struct radeon_cmdbuf *cs)
    }
 
    if (physical_device->rad_info.gfx_level >= GFX11) {
-      radeon_set_context_reg(cs, R_028C54_PA_SC_BINNER_CNTL_2, 0);
+      radeon_set_context_reg(cs, R_028C54_PA_SC_BINNER_CNTL_2,
+                             S_028C54_ENABLE_PING_PONG_BIN_ORDER(physical_device->rad_info.gfx_level >= GFX11_5));
 
       uint64_t rb_mask = BITFIELD64_MASK(physical_device->rad_info.max_render_backends);