Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve message of UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout #8782

Closed
ziga-lunarg opened this issue Oct 30, 2024 · 1 comment
Closed
Assignees
Labels
Enhancement New feature or request

Comments

@ziga-lunarg
Copy link
Contributor

The message from UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout says something like:

UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout(ERROR / SPEC): msgNum: 1303270965 - Validation Error: [ UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout ] Object 0: handle = 0x12c4d7a3ea0, type = VK_OBJECT_TYPE_COMMAND_BUFFER; Object 1: handle = 0x68356000000af83e, type = VK_OBJECT_TYPE_IMAGE; | MessageID = 0x4dae5635 | vkQueueSubmit(): pSubmits[0].pCommandBuffers[0] command buffer VkCommandBuffer 0x12c4d7a3ea0[] expects VkImage 0x68356000000af83e[] (subresource: aspectMask VK_IMAGE_ASPECT_COLOR_BIT array layer 0, mip level 0) to be in layout VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL--instead, current layout is VK_IMAGE_LAYOUT_UNDEFINED.
    Objects: 2
        [0] 0x12c4d7a3ea0, type: 6, name: NULL
        [1] 0x68356000000af83e, type: 10, name: NULL

But it would be really helpful if it could tell me which is the actual command inside the command buffer that requires this layout, otherwise it is hard to track down.

@ziga-lunarg ziga-lunarg added the Enhancement New feature or request label Oct 30, 2024
@spencer-lunarg spencer-lunarg self-assigned this Oct 30, 2024
@spencer-lunarg
Copy link
Contributor

currently working on this right now, but for simplicity, closing this as found it is a duplicate of #5846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants