nvrhi icon indicating copy to clipboard operation
nvrhi copied to clipboard

Vulkan validation layer bufferDeviceAddress warning

Open aleieng opened this issue 3 years ago • 0 comments

VK validation layer reports:

WARNING: [Vulkan: location=0xfffffffff972dfbf code=0, layerPrefix='Validation'] Validation Error: [ VUID-VkMemoryAllocateInfo-flags-03331 ] Object 0: handle = 0x12f05f5af50, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xf972dfbf | If VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT is set, bufferDeviceAddress must be enabled. The Vulkan spec states: If VkMemoryAllocateFlagsInfo::flags includes VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT, the bufferDeviceAddress feature must be enabled (https://vulkan.lunarg.com/doc/view/1.3.224.1/windows/1.3-extensions/vkspec.html#VUID-VkMemoryAllocateInfo-flags-03331)

Adding .setBufferDeviceAddress(bufferAddressSupported) to vulkan12features in DeviceManager_VK.cpp fixed the problem.

aleieng avatar Sep 25 '22 01:09 aleieng