mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
radv: Enable global bo list if 1.2 features are used.
These features require the global bo list and the existing code only checked if the extensions which were promoted to 1.2 are enabled. Found by inspection. Cc: mesa-stable Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15701>
This commit is contained in:
parent
7fd1955412
commit
80a7ed273a
1 changed files with 9 additions and 1 deletions
|
|
@ -3124,6 +3124,7 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
bool attachment_vrs_enabled = false;
|
||||
bool image_float32_atomics = false;
|
||||
bool vs_prologs = false;
|
||||
bool global_bo_list = false;
|
||||
|
||||
/* Check enabled features */
|
||||
if (pCreateInfo->pEnabledFeatures) {
|
||||
|
|
@ -3184,6 +3185,12 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
vs_prologs = true;
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES: {
|
||||
const VkPhysicalDeviceVulkan12Features *features = (const void *)ext;
|
||||
if (features->bufferDeviceAddress || features->descriptorIndexing)
|
||||
global_bo_list = true;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
@ -3230,7 +3237,8 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
/* With update after bind we can't attach bo's to the command buffer
|
||||
* from the descriptor set anymore, so we have to use a global BO list.
|
||||
*/
|
||||
device->use_global_bo_list = (device->instance->perftest_flags & RADV_PERFTEST_BO_LIST) ||
|
||||
device->use_global_bo_list = global_bo_list ||
|
||||
(device->instance->perftest_flags & RADV_PERFTEST_BO_LIST) ||
|
||||
device->vk.enabled_extensions.EXT_descriptor_indexing ||
|
||||
device->vk.enabled_extensions.EXT_buffer_device_address ||
|
||||
device->vk.enabled_extensions.KHR_buffer_device_address ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue