[Mesa-dev] [PATCH] radv: wait on the high 32 bits of timestamp queries

Bas Nieuwenhuizen basni at chromium.org
Wed Dec 5 10:49:43 UTC 2018


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Wed, Dec 5, 2018 at 11:43 AM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> In case we are unlucky if the low part is 0xffffffff.
>
> Fixes: 5d6a560a29 ("radv: do not use the availability bit for timestamp queries")
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_query.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
> index 550abe307a1..8c64c98ffaa 100644
> --- a/src/amd/vulkan/radv_query.c
> +++ b/src/amd/vulkan/radv_query.c
> @@ -1336,8 +1336,11 @@ void radv_CmdCopyQueryPoolResults(
>
>
>                         if (flags & VK_QUERY_RESULT_WAIT_BIT) {
> +                               /* Wait on the high 32 bits of the timestamp in
> +                                * case the low part is 0xffffffff.
> +                                */
>                                 radv_cp_wait_mem(cs, WAIT_REG_MEM_NOT_EQUAL,
> -                                                local_src_va,
> +                                                local_src_va + 4,
>                                                  TIMESTAMP_NOT_READY >> 32,
>                                                  0xffffffff);
>                         }
> --
> 2.19.2
>
> _______________________________________________
> 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