Vulkan-ValidationLayers icon indicating copy to clipboard operation
Vulkan-ValidationLayers copied to clipboard

False positive when using descriptor buffers: UNASSIGNED-Descriptor index out of bounds

Open cyanreg opened this issue 1 year ago • 4 comments

Although the layer explicitly warns that no validation will be performed when using descriptor buffers, GPU assisted validation still results in errors for basic storage buffers in descriptors:

Validation Error: [ UNASSIGNED-Descriptor index out of bounds ] Object 0: handle = 0x55d6a51bf2e0, type = VK_OBJECT_TYPE_QUEUE; Object 1: handle = 0x55d6a52b6e80, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0x68698324 | vkCmdDispatch(): (set = 0, binding = 0) Index of 0 used to index descriptor array of length 0.

The code to replicate this can be found here: https://github.com/cyanreg/ldpc_matrix_opt/commit/d0693c6b590866c654b77008d2cbce8e1110589d Just run ./build/src/lmo after compiling (requires my fork of ffmpeg to build).

Silencing the issue would be a fix, though proper support for descriptor buffers would be most optimal. Are there any plans to add support?

cyanreg avatar Jul 24 '24 12:07 cyanreg

@cyanreg what version of Validation Layers were you using? ToT or an SDK build?

spencer-lunarg avatar Jul 24 '24 13:07 spencer-lunarg

git master from 5 days ago (69d78b7b4404f76be557df4b14cda6f97f672c2c).

cyanreg avatar Jul 24 '24 13:07 cyanreg

@cyanreg thanks, wanted to make sure it wasn't an old SDK version... currently backed up by things I need to do, but will try to find time to take a look into this, thanks again for reporting this and giving a example to help reproduce it.

spencer-lunarg avatar Jul 24 '24 13:07 spencer-lunarg

Ping.

cyanreg avatar Sep 22 '24 03:09 cyanreg

sorry, we have since disabled GPU-AV for Descriptor Buffers. We need to completely re-work how we track things and just not something I feel I will get to in the near future

spencer-lunarg avatar Nov 07 '24 19:11 spencer-lunarg