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:
izzy2lost
2026-04-08 02:35:00 -04:00
co-authored by Claude Sonnet 4.6
parent 5a7ca49b66
commit 903de37ec7
+1 -1
View File
@@ -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);