radv: Always set disable zpass increment bit when possible.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 14 Jul 2018 12:28:22 +0000 (14:28 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 19 Jul 2018 00:38:10 +0000 (02:38 +0200)
When no occlusion queries are active even if out of order is enabled.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_cmd_buffer.c

index 0b57c1a098c408dd3f81c3ff642aab9f4231dbba..f6ab5e6c7538df7b14df1e366182e0666d552604 100644 (file)
@@ -1561,10 +1561,8 @@ void radv_set_db_count_control(struct radv_cmd_buffer *cmd_buffer)
                                                       R_028A4C_PA_SC_MODE_CNTL_1,
                                                       pa_sc_mode_cntl_1);
                        }
-                       db_count_control = 0;
-               } else {
-                       db_count_control = S_028004_ZPASS_INCREMENT_DISABLE(1);
                }
+               db_count_control = S_028004_ZPASS_INCREMENT_DISABLE(1);
        } else {
                const struct radv_subpass *subpass = cmd_buffer->state.subpass;
                uint32_t sample_rate = subpass ? util_logbase2(subpass->max_sample_count) : 0;