Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

VK_ACCESS_HOST_WRITE_BIT needed when layout is VK_IMAGE_LAYOUT_PREINITIALIZED #1141

Closed
qnope opened this issue Nov 10, 2016 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@qnope
Copy link
Contributor

qnope commented Nov 10, 2016

Validation layers gives me the following warning when I want to transition one image layout from PREINITIALIZED with srcAccessMask = 0:

validation layer: Source AccessMask 0 [None] must have required access bit 16384 [VK_ACCESS_HOST_WRITE_BIT] when layout is VK_IMAGE_LAYOUT_PREINITIALIZED, unless the app has previously added a barrier for this transition.

In the spec it is write :

For host writes to be seen by subsequent command buffer operations, a pipeline barrier from a source of VK_ACCESS_HOST_WRITE_BIT and VK_PIPELINE_STAGE_HOST_BIT to a destination of the relevant device pipeline stages and access types must be performed. Note that such a barrier is performed implicitly upon each command buffer submission, so an explicit barrier is only rarely needed

Since the barrier should be done implicitly when I submit the commandBuffer, this message from the validation layers should not exist.

The initial discussion was in : HOST_WRITE useful or validation layers wrong?

@mark-lunarg
Copy link
Collaborator

Fixed by pr #1142 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants