radv: change queue family order in radv_get_physical_device_queue_family_properties

Fixes: 748b7f80ef ("radv: Move sparse binding into a dedicated queue.")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26428>
This commit is contained in:
Lynne 2023-11-30 16:41:53 +01:00 committed by Marge Bot
parent 42dd48e933
commit aff59c63eb

View file

@ -2110,16 +2110,6 @@ radv_get_physical_device_queue_family_properties(struct radv_physical_device *pd
}
}
if (*pCount > idx) {
*pQueueFamilyProperties[idx] = (VkQueueFamilyProperties){
.queueFlags = VK_QUEUE_SPARSE_BINDING_BIT,
.queueCount = 1,
.timestampValidBits = 64,
.minImageTransferGranularity = (VkExtent3D){1, 1, 1},
};
idx++;
}
if (pdevice->instance->perftest_flags & RADV_PERFTEST_VIDEO_DECODE) {
if (pdevice->rad_info.ip[pdevice->vid_decode_ip].num_queues > 0) {
if (*pCount > idx) {
@ -2134,6 +2124,16 @@ radv_get_physical_device_queue_family_properties(struct radv_physical_device *pd
}
}
if (*pCount > idx) {
*pQueueFamilyProperties[idx] = (VkQueueFamilyProperties){
.queueFlags = VK_QUEUE_SPARSE_BINDING_BIT,
.queueCount = 1,
.timestampValidBits = 64,
.minImageTransferGranularity = (VkExtent3D){1, 1, 1},
};
idx++;
}
*pCount = idx;
}