radv: enable timestampComputeAndGraphics
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 14 Apr 2017 20:59:28 +0000 (23:59 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 17 Apr 2017 18:21:35 +0000 (21:21 +0300)
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@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index 12040a04eb950b0e1f96bfc835d5768f2aa9cad4..dd401f4b0be99bc9df5c12821aca99165938498c 100644 (file)
@@ -652,7 +652,7 @@ void radv_GetPhysicalDeviceProperties(
                .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,