mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Fix wrong VkFormat in display image layout transition
VK_FORMAT_R8G8B8_UNORM was used in a layout transition for the display image, but it was created with VK_FORMAT_R8G8B8A8_UNORM. This mismatch could cause validation errors or rendering artifacts on strict drivers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
5a7ca49b66
commit
903de37ec7
@@ -1167,7 +1167,7 @@ static void render_display(PGRAPHState *pg, SurfaceBinding *surface)
|
||||
VK_IMAGE_LAYOUT_GENERAL);
|
||||
|
||||
pgraph_vk_transition_image_layout(pg, cmd, disp->image,
|
||||
VK_FORMAT_R8G8B8_UNORM,
|
||||
VK_FORMAT_R8G8B8A8_UNORM,
|
||||
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
|
||||
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user