From 421c42170e1abda849ea19c07f619bc8b1b0ba21 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 22 Aug 2024 14:10:45 +0200 Subject: [PATCH] radv: stop emitting DB_COUNT_CONTROL in the GFX preamble This is already emitted as part of the occlusion query state and this state is dirty when a cmdbuf begins. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_queue.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/amd/vulkan/radv_queue.c b/src/amd/vulkan/radv_queue.c index e90e7d8fe54..5ef0901565b 100644 --- a/src/amd/vulkan/radv_queue.c +++ b/src/amd/vulkan/radv_queue.c @@ -1153,10 +1153,6 @@ radv_emit_graphics(struct radv_device *device, struct radeon_cmdbuf *cs) cs, R_028A04_PA_SU_POINT_MINMAX, S_028A04_MIN_SIZE(radv_pack_float_12p4(0)) | S_028A04_MAX_SIZE(radv_pack_float_12p4(8191.875 / 2))); - if (!has_clear_state) { - radeon_set_context_reg(cs, R_028004_DB_COUNT_CONTROL, S_028004_ZPASS_INCREMENT_DISABLE(1)); - } - /* Enable the Polaris small primitive filter control. * XXX: There is possibly an issue when MSAA is off (see RadeonSI * has_msaa_sample_loc_bug). But this doesn't seem to regress anything,