Summary: | vkCmdCopyImage - Double Optimize | ||
---|---|---|---|
Product: | Mesa | Reporter: | Michael Hübner <superschneider> |
Component: | Drivers/Vulkan/intel | Assignee: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Status: | RESOLVED INVALID | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | jason |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Renderdoc - Source Image
Renderdoc - Target Image Array Copy example |
Description
Michael Hübner
2018-06-28 06:31:18 UTC
Unfortunately, there is not nearly enough information in this bug report for us to be able to do anything with it. Could you provide some example code or something that shows off the bug? Also, please run with the validation layers and ensure that there are no errors. Created attachment 140393 [details]
Renderdoc - Source Image
This is the source image. It is already loaded into my application, where I select a few images, which are then assembled to an image array. It is created with VK_IMAGE_TILING_OPTIMAL through an staging buffer and with vkCmdCopyBufferToImage.
Created attachment 140394 [details]
Renderdoc - Target Image Array
This is the target image array, where the source image is copied to vkCmdCopyImage.
Created attachment 140395 [details]
Copy example
This is my copy function. It is written in rust, if there are any questions about how things work, just ask them.
Here's your problem:
> command_buffer.set_image_layout(
> image,
> VK_IMAGE_LAYOUT_UNDEFINED,
> VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
> subresource_range.clone(),
> );
The UNDEFINED layout doesn't mean "I don't know", it means "undefined contents". Transitioning an image from UNDEFINED to anything may discard or corrupt its contents.
Ah wow, I thought it is more something like "I don't care". Thank you very much. This issue is no issue anymore and can be closed. Sorry for inconvenience. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.