[Mesa-dev] [PATCH] radv: enable timestampComputeAndGraphics

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Apr 14 21:30:24 UTC 2017


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Fri, Apr 14, 2017 at 11:24 PM, Grazvydas Ignotas <notasas at gmail.com> wrote:
> Commit bfee9866 "radv: Use RELEASE_MEM packet for MEC timestamp query."
> added WriteTimestamp handling for compute queues but forgot to flip
> the flag.
>
> Tested with DOOM (by me) and CTS (by Bas), but without verification
> that these tests actually use timestamps on compute queues.
>
> Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
> ---
>  src/amd/vulkan/radv_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
> index 12040a0..dd401f4 100644
> --- a/src/amd/vulkan/radv_device.c
> +++ b/src/amd/vulkan/radv_device.c
> @@ -650,11 +650,11 @@ void radv_GetPhysicalDeviceProperties(
>                 .sampledImageIntegerSampleCounts          = VK_SAMPLE_COUNT_1_BIT,
>                 .sampledImageDepthSampleCounts            = sample_counts,
>                 .sampledImageStencilSampleCounts          = sample_counts,
>                 .storageImageSampleCounts                 = VK_SAMPLE_COUNT_1_BIT,
>                 .maxSampleMaskWords                       = 1,
> -               .timestampComputeAndGraphics              = false,
> +               .timestampComputeAndGraphics              = true,
>                 .timestampPeriod                          = 1000000.0 / pdevice->rad_info.clock_crystal_freq,
>                 .maxClipDistances                         = 8,
>                 .maxCullDistances                         = 8,
>                 .maxCombinedClipAndCullDistances          = 8,
>                 .discreteQueuePriorities                  = 1,
> --
> 2.7.4
>
> _______________________________________________
> 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