upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authortraeb0n <masonbartelme@gmail.com>2026-11-21 21:55:19 -0600
committertraeb0n <masonbartelme@gmail.com>2026-11-21 21:55:19 -0600
commitd868cba00f381fba3cd5efc475b1740a639f42e1 (patch)
tree970a5089fa6102f3726749ff6e346f8cb44dcfee /runtime/src/main.cpp
parent4a36bb19979b611f525d027f92e0fefad1626546 (diff)
Runtime: barriers into PREDICATION cover conditional rendering's read
D3D12_RESOURCE_STATE_PREDICATION is the same bit as INDIRECT_ARGUMENT (and SYNC/ACCESS_PREDICATION the same as EXECUTE_INDIRECT / INDIRECT_ARGUMENT), and the layer mapped that bit only to INDIRECT_COMMAND_READ at DRAW_INDIRECT. vkCmdBeginConditionalRenderingEXT reads the predicate with CONDITIONAL_RENDERING_READ at the CONDITIONAL_RENDERING stage, so ResolveQueryData -> COPY_DEST to PREDICATION barrier -> SetPredication had no dependency from the copy's write to the predicate read (and none the other way before the next resolve). With the extension enabled (the only case those flags are valid), vulkan_access and vulkan_barrier_scope now add the conditional-rendering access and stage for that bit; GENERIC_READ, which contains it, gets them too. The replay passes the flag from its conditional-rendering entry points. d3d12_vulkan_device_test now enables conditional rendering on its device and runs an occlusion query resolved into a predicate: EQUAL_ZERO skips a clear, NOT_EQUAL_ZERO runs one, and the predicate is resolved into again after the read, once through legacy barriers and once through enhanced buffer barriers. d3d12_state_map_test checks both mappings with and without the extension. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions