Skip to content

aux/vk: Always use dedicated allocation on desktop

Fixes CTS on nvidia.

Example code given by the driver devs in the nvidia forums was VkBool32 dedicatedAllocation = (memDedicatedReq.requiresDedicatedAllocation != VK_FALSE) || (memDedicatedReq.prefersDedicatedAllocation != VK_FALSE);

However on GTX 1080, nvidia 470.103 with

./conformance_cli "Timed Pipelined Frame Submission" -G Vulkan2

we are to create a VkImage with

DEBUG [create_image] create_image: Use dedicated allocation: 0 (preferred: 0, required: 0)

doing so causes the VkFence wait in vk_submit_cmd_buffer to fail randomly with either VK_TIMEOUT or VK_ERROR_DEVICE_LOST.

On AMD radv we are told to use dedicated allocation:

DEBUG [create_image] create_image: Use dedicated allocation: 1 (preferred: 1, required: 1)

Merge request reports