[Mesa-dev] [PATCH 8/8] radv/gfx10: emit DISABLE_CONSERVATIVE_ZPASS_COUNTS

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Jul 12 13:55:03 UTC 2019


r-b for the series

On Fri, Jul 12, 2019 at 12:17 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_cmd_buffer.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
> index dacd8c8d803..86b5c812405 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -1993,10 +1993,12 @@ void radv_set_db_count_control(struct radv_cmd_buffer *cmd_buffer)
>         } else {
>                 const struct radv_subpass *subpass = cmd_buffer->state.subpass;
>                 uint32_t sample_rate = subpass ? util_logbase2(subpass->max_sample_count) : 0;
> +               bool gfx10_perfect = cmd_buffer->device->physical_device->rad_info.chip_class >= GFX10 && has_perfect_queries;
>
>                 if (cmd_buffer->device->physical_device->rad_info.chip_class >= GFX7) {
>                         db_count_control =
>                                 S_028004_PERFECT_ZPASS_COUNTS(has_perfect_queries) |
> +                               S_028004_DISABLE_CONSERVATIVE_ZPASS_COUNTS(gfx10_perfect) |
>                                 S_028004_SAMPLE_RATE(sample_rate) |
>                                 S_028004_ZPASS_ENABLE(1) |
>                                 S_028004_SLICE_EVEN_ENABLE(1) |
> --
> 2.22.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list