Vulkan icon indicating copy to clipboard operation
Vulkan copied to clipboard

Validation issue in shadowmappingomni sample

Open SRSaunders opened this issue 2 months ago • 2 comments

Turning validation on for the shadowmappingomni sample results in the following:

ERROR: [-608309547][VUID-vkCmdPipelineBarrier-pImageMemoryBarriers-02819] : vkCmdPipelineBarrier(): pImageMemoryBarriers[0].srcAccessMask (VK_ACCESS_HOST_WRITE_BIT) is not supported by stage mask (VK_PIPELINE_STAGE_ALL_COMMANDS_BIT). The Vulkan spec states: For any element of pImageMemoryBarriers, if its srcQueueFamilyIndex and dstQueueFamilyIndex members are equal, or if its srcQueueFamilyIndex is the queue family index that was used to create the command pool that commandBuffer was allocated from, then its srcAccessMask member must only contain access flags that are supported by one or more of the pipeline stages in srcStageMask, as specified in the table of supported access types (https://vulkan.lunarg.com/doc/view/1.4.328.1/mac/antora/spec/latest/chapters/synchronization.html#VUID-vkCmdPipelineBarrier-pImageMemoryBarriers-02819)

SRSaunders avatar Oct 31 '25 13:10 SRSaunders

Is this with the latest commit? I don't get that layer message with the latest SDK.

SaschaWillems avatar Nov 16 '25 13:11 SaschaWillems

@SaschaWillems sorry for the delay in responding but I was focused on a different project this past week.

I looked at this again today using the latest commit with SDK 1.4.328. I tested on both Win 11 and macOS. The validation error is the same on both platforms when running a debug build of shadowmappingomni with option "-v" selected.

My machine is an Intel CPU + AMD 6600XT GPU.

SRSaunders avatar Nov 23 '25 17:11 SRSaunders