Commit Graph

1 Commits

Author SHA1 Message Date
ab4fb22ce0 vulkan: NVIDIA workarounds for barriers inside conditional rendering and MSAA attachment clears
From Eden/Yuzu's driver-bug list, which the Blueshell renderer in Hookshot runs into:

- NVIDIA's proprietary driver does not handle a pipeline barrier recorded inside a conditional rendering scope. With barriers_outside_predication (on for that driver, LEONIDA_BARRIERS_OUTSIDE_PREDICATION=0/1 overrides), emit ends the title's predicate scope around each barrier and begins it again (detail::outside_predication). A D3D12 barrier is never predicated.

- vkCmdClearAttachments on a multisampled attachment can lock NVIDIA's GPU up. A rect clear of a multisampled view that covers the whole mip and every layer, with no predicate open, is now the image clear (same result). A partial one is logged once.

predication_barrier_test is new. replay_query_predication_test, replay_clear_gate_test, replay_texture_barrier_test and vk_command_replay_test pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:18:32 -05:00