diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 21:39:58 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 21:39:58 -0500 |
| commit | 40b393aeaf2c0ba008bfca4de5454b5026e0d971 (patch) | |
| tree | 133ca82494a506c48e840559c36b70ae08c6a82c /runtime/test/command_list_test.cpp | |
| parent | acef4fa6b5911a846abeb29300a55a13ae821a58 (diff) | |
| parent | 7ae1dd3de34f1542242bc8ccfc80d9b97d20cc01 (diff) | |
Merge main into RT-WAVE64-GRAPHICS-TIER (#1008)
main (273b3bdf9, from #984) already reads index.json `wave64_graphics`
(ShaderEntry::wave64_graphics), decides tier A/B wave64 VS/PS/GS with
graphics_partition_invariant() in subgroup_size.h, and replaces the
width warning for them with a line saying the device's size is exact
(report_subgroup_unavailable), documented in docs/d3d12_vulkan.md. That
is this pull request's change in another form, so main's form stays.
- docs/d3d12_vulkan.md (conflict, subgroup size section): main's text
kept; it already describes the tier A/B case.
- runtime/src/shader_library.h, runtime/src/subgroup_size.h: main's
form kept; the pull request's wave64_graphics_halves field and
graphics_halves outcome dropped as duplicates of
ShaderEntry::wave64_graphics and graphics_partition_invariant().
- runtime/test/subgroup_size_test.cpp: the pull request's index.json
block kept and moved to main's API: the tier is read through
ShaderLibrary, A and B are partition invariant, C, an unknown tier and
a non-string are not, and the size decision is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/command_list_test.cpp')
| -rw-r--r-- | runtime/test/command_list_test.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/test/command_list_test.cpp b/runtime/test/command_list_test.cpp index 4367df6ec..ea81503e6 100644 --- a/runtime/test/command_list_test.cpp +++ b/runtime/test/command_list_test.cpp | |||
| @@ -99,15 +99,19 @@ int main() { | |||
| 99 | CHECK(!list.barrier(BufferBarrier{y::copy, y::vertex_shading, a::copy_dest, a::vertex_buffer, 0})); | 99 | CHECK(!list.barrier(BufferBarrier{y::copy, y::vertex_shading, a::copy_dest, a::vertex_buffer, 0})); |
| 100 | CHECK(list.barrier(TextureBarrier{y::none, y::render_target, a::no_access, a::render_target, l::undefined, | 100 | CHECK(list.barrier(TextureBarrier{y::none, y::render_target, a::no_access, a::render_target, l::undefined, |
| 101 | l::render_target, 9, all, texture_barrier_discard})); | 101 | l::render_target, 9, all, texture_barrier_discard})); |
| 102 | CHECK(!list.barrier(TextureBarrier{y::all, y::all, a::common, a::common, l::common, l::undefined, 9, all, 0})); | 102 | // Into UNDEFINED: the contents are no longer needed (WARP closes such a list, d3d12_close_parity_test). |
| 103 | CHECK(list.barrier(TextureBarrier{y::depth_stencil, y::none, a::depth_stencil_write, a::no_access, | ||
| 104 | l::depth_stencil_write, l::undefined, 9, all, 0})); | ||
| 103 | CHECK(!list.barrier(TextureBarrier{y::all, y::all, a::common, a::common, l::common, l::common, 9, all, 0x2})); | 105 | CHECK(!list.barrier(TextureBarrier{y::all, y::all, a::common, a::common, l::common, l::common, 9, all, 0x2})); |
| 104 | CHECK(!list.barrier(TextureBarrier{y::all, y::all, a::common, a::common, l::common, l::common, 9, | 106 | CHECK(!list.barrier(TextureBarrier{y::all, y::all, a::common, a::common, l::common, l::common, 9, |
| 105 | {0, 1, 0, 0, 0, 1}, 0})); // zero layers | 107 | {0, 1, 0, 0, 0, 1}, 0})); // zero layers |
| 106 | CHECK(list.close()); | 108 | CHECK(list.close()); |
| 107 | CHECK(list.commands().size() == 4); | 109 | CHECK(list.commands().size() == 5); |
| 108 | CHECK(std::get<GlobalBarrier>(list.commands()[1]).sync_before == y::split); | 110 | CHECK(std::get<GlobalBarrier>(list.commands()[1]).sync_before == y::split); |
| 109 | CHECK(std::get<BufferBarrier>(list.commands()[2]).resource == 7); | 111 | CHECK(std::get<BufferBarrier>(list.commands()[2]).resource == 7); |
| 110 | CHECK(std::get<TextureBarrier>(list.commands()[3]).flags == texture_barrier_discard); | 112 | CHECK(std::get<TextureBarrier>(list.commands()[3]).flags == texture_barrier_discard); |
| 113 | CHECK(std::get<TextureBarrier>(list.commands()[4]).layout_before == l::depth_stencil_write && | ||
| 114 | std::get<TextureBarrier>(list.commands()[4]).layout_after == l::undefined); | ||
| 111 | 115 | ||
| 112 | // Copies: D3D12's own call rules (aligned footprints; degenerate boxes and DEFAULT-heap | 116 | // Copies: D3D12's own call rules (aligned footprints; degenerate boxes and DEFAULT-heap |
| 113 | // CopyResource self-copies are accepted as no-ops and must not record Vulkan commands). | 117 | // CopyResource self-copies are accepted as no-ops and must not record Vulkan commands). |