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

Missing validation: Transitioning an image before binding memory to it is illegal #2289

@hrydgard

Description

@hrydgard

As described in the title.

When initializing a texture image, I use vkCmdPipelineBarrier to transition it to from UNDEFINED to TRANSFER_DST_OPTIMAL before vkCmdCopyBufferToImage, which should be a normal way to go about things. However, I accidentally did this before binding memory to the image. Turns out most implementations don't care, as presumably any transition from UNDEFINED is generally a no-op apart from possibly updating a bit of metadata. Intel's ANV Linux driver did care though, and promptly crashed.

The validation layers didn't catch this, but probably should - seems like an easy case to detect.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions