nvk: Disable non-graphics timestamp queries

We can support this in the future, but we don't implement it just yet.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36651>
This commit is contained in:
Mel Henning
2025-08-06 13:55:21 -04:00
committed by Marge Bot
parent 9c6d6daf1b
commit 2bd5639152
+6 -1
View File
@@ -1634,7 +1634,12 @@ nvk_GetPhysicalDeviceQueueFamilyProperties2(
vk_outarray_append_typed(VkQueueFamilyProperties2, &out, p) {
p->queueFamilyProperties.queueFlags = queue_family->queue_flags;
p->queueFamilyProperties.queueCount = queue_family->queue_count;
p->queueFamilyProperties.timestampValidBits = 64;
if (queue_family->queue_flags & VK_QUEUE_GRAPHICS_BIT) {
p->queueFamilyProperties.timestampValidBits = 64;
} else {
/* TODO: Timestamps on non-graphics queues */
p->queueFamilyProperties.timestampValidBits = 0;
}
p->queueFamilyProperties.minImageTransferGranularity =
(VkExtent3D){1, 1, 1};