mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-12 09:38:20 +02:00
radv: report timestampPeriod correctly
The kernel returns frequency in kHz, so to convert to nanosecond interval that Vulkan uses the dividend should be 1000000.0 and not 100000.0. This fixes the GPU graph in DOOM and matches the amdgpu-pro blob. Fixes:f4e499ec79"radv: add initial non-conformant radv vulkan driver" Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commit1b2fe7ce45)
This commit is contained in:
parent
375cc332bb
commit
795287c66e
2 changed files with 2 additions and 2 deletions
|
|
@ -570,7 +570,7 @@ void radv_GetPhysicalDeviceProperties(
|
|||
.storageImageSampleCounts = VK_SAMPLE_COUNT_1_BIT,
|
||||
.maxSampleMaskWords = 1,
|
||||
.timestampComputeAndGraphics = false,
|
||||
.timestampPeriod = 100000.0 / pdevice->rad_info.clock_crystal_freq,
|
||||
.timestampPeriod = 1000000.0 / pdevice->rad_info.clock_crystal_freq,
|
||||
.maxClipDistances = 8,
|
||||
.maxCullDistances = 8,
|
||||
.maxCombinedClipAndCullDistances = 8,
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ struct radeon_info {
|
|||
uint32_t compute_rings;
|
||||
uint32_t vce_fw_version;
|
||||
uint32_t vce_harvest_config;
|
||||
uint32_t clock_crystal_freq;
|
||||
uint32_t clock_crystal_freq; /* in kHz */
|
||||
|
||||
/* Kernel info. */
|
||||
uint32_t drm_major; /* version */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue