You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vulkan: Fix HDR render pass mismatch and pipeline barrier
Fix render pass / framebuffer format mismatch when rendering through
the SDR offscreen buffer in HDR mode. The filter chain's final pass
and the frame render pass were using vk->render_pass (A2B10G10R10)
while the offscreen buffer framebuffer was created with
vk->sdr_render_pass (B8G8R8A8), causing a Vulkan validation error.
Select the correct render pass at frame time based on
use_offscreen_buffer, and rebuild the filter chain's final pass
pipeline to use the SDR render pass both at shader preset load and
at swapchain recreation.
Also fix an incorrect srcStageMask in the image layout transition
after the HDR pipeline: SHADER_READ_BIT requires FRAGMENT_SHADER_BIT,
not COLOR_ATTACHMENT_OUTPUT_BIT.
0 commit comments