Skip to content

Shaders: lower untracked mask operands and descriptor-only GetDimensions (#585, #786) - #18

Open
LAKSHYA-cmd-tech wants to merge 85 commits into
mainfrom
feature/shader-untracked-masks-and-dimensions
Open

LAKSHYA-cmd-tech wants to merge 85 commits into
mainfrom
feature/shader-untracked-masks-and-dimensions

Conversation

@LAKSHYA-cmd-tech

Copy link
Copy Markdown
Owner

Backports PR Marvisak#585 (by FibbS6). Lowers untracked v_cndmask_b32 and carry-in VALU ops via lane_bit, and lowers descriptor-only GetDimensions queries using UsedResource metadata. Resolves root causes reported in Issue Marvisak#786.

n-romanovich and others added 30 commits November 24, 2026 04:14
A descriptor picked without a branch, as the compiler does when it
hoists both loads (invariant memory) and turns the if/else into a
select, reaches the resource instruction through s_cselect_b64 per half
(or s_cselect_b32 / s_cmov per dword). None of its dwords is then a
load, so tracking stopped with "a descriptor neither loaded nor built"
and the whole program, and every draw using it, was dropped.

Such words are now split by the SCC value they all read: what each is
when SCC is set (S0) and when it is clear (S1, or the old destination
for s_cmov), with words not selected the same on both sides, and each
side traced on its own into a new Source::Select. Selections with
different conditions stop, and a choice that mixes two descriptors
still stops as "a descriptor changed after loading". The lowering picks
the heap index of the two loaded descriptors by SCC and creates one
heap handle, as a phi of loaded descriptors already does per edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
A descriptor held in VGPRs is used through a waterfall loop: each pass
reads the first active lane's dwords with v_readfirstlane_b32, compares
them with every lane's own (v_cmp_eq), runs the access with the lanes
that match and repeats for the rest. Tracing stopped at the readfirstlane
results ("a descriptor neither loaded nor built").

The tracer now follows the read lanes' dwords to where each lane gets its
own: global_load_dword* from a table or heap at a per-lane address (an
image descriptor's two x4 loads lined up), or a v_cndmask_b32 choice per
lane between such sources (e.g. two s_load descriptors). Other sources
fail naming them (LDS read, buffer load, phi, input, computed VGPRs).
The loop's compares of those reads with their own dwords are recorded.

Lowering gives the access each lane's heap index (its load address over
the descriptor size, or a per-lane select of indices) with
createHandleFromHeap's nonUniformIndex set, lowers the recorded
readfirstlanes as the lane's own dword and their compares as true, so
the loop runs once with all lanes. Wave32 and wave64 are tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
… reads

Host copies of title buffers start in the common state and relied on
implicit promotion, which allows a buffer to be written (unordered access)
or read in a list, not both. The world's 174 MB heap is both: the argument
clamp and title passes write it, draws read vertices and indices from it.
indirect.rs also moved the argument buffer from unordered access to
indirect arguments and back after every execution, whatever state the
buffer was really in.

Each list now tracks the state of every host copy it uses (BufferStates):
reads (vertex, index, constant, shader resource, arguments) in GENERIC_READ,
shader writes in UNORDERED_ACCESS, with a transition where the use changes.
The list's prelude moves each buffer from common to its first state and the
list moves it back before closing, so state never leaks into the next list
of a submission. indirect::execute replaces the fixed UAV <-> INDIRECT_ARGUMENT
barriers.

Refs Marvisak#199, Marvisak#264.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The title's descriptor writes and texture releases reach the host at
once, from its own threads, while the host runs a submission for most of
a second in the world. A descriptor slot rewritten then dropped the
resource it held, and a released title texture dropped its host copy,
while the running submission still read them: device-removed data showed
a page fault inside a freed 1024x1024 BC7 texture, about 65 s into the
world (DXGI_ERROR_DEVICE_HUNG, RX 7600).

Those objects now go to a retired list tagged with the submission count
and are dropped when that submission has been waited for (at once if
none is running).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZ9pSD61BBk7E79WkryEQA
The world's peak counted 3,630 host textures, 8.9 GB, against a 7 GB
video memory budget on an 8 GB card: the driver moves the excess to
system memory, where it counts against the commit limit. A texture the
title makes and the GPU never uses (no view, target, copy or barrier)
now costs nothing; the creation state and clear value are kept for the
copy made on first use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZ9pSCvCZuokASx7f59sAG
The resource tally in `victory translate` matched every `Source` variant
by hand, so the new `Select`, `Fetched` and `Lanes` kinds left it
non-exhaustive and `cargo check -p victory` failed. A fetched descriptor
is counted with the loaded ones; selections and per-lane choices are
never leaves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
A root SRV is a bare GPU address: nothing bounds what a shader reads
through it. Vertex fetch reads its stream through a root SRV with no
record limit, and a mesh shader read past the end of the buffer's host
copy into memory the host had already freed (the "inside freed texture"
device removal after the fix for #59: the fault lay just past the copy's
end, in the gap where released textures had been).

Each root SRV is now a one-descriptor table holding a raw view of the
host copy from the root address to the copy's end, made once per address
per list in the heap's dynamic slots; reads past the end return zero, as
for any bounded view. A root SRV the title did not set, or one with no
host copy, gets a null raw view (an unset table is undefined). Addresses
not on 16 bytes, which a raw view cannot start at, read zeros and are
logged once. VICTORY_ROOT_SRV_DIRECT=1 restores root descriptors.
…a waterfall loop

A descriptor read with v_readfirstlane_b32 was traced to each lane's
own dwords wherever it was, so a first-lane read outside a loop, or one
without the v_cmp_eq that hands every lane its turn, sampled for lanes
the program skipped (reported on the PR with the back edge of the
fetched waterfall test replaced by s_nop).

Now:
- a compare counts only when it and the v_readfirstlane it reads are in
  one loop (each block reaches the other);
- every descriptor read from the first lane needs each of its dwords
  compared that way, or translation stops with "a descriptor read from
  the first lane outside a waterfall loop".

Two tests cover the missing back edge and the missing compare.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
A waterfall loop whose descriptor dwords are VGPR phis stopped with "a
descriptor read from the first lane of a phi" (294 programs of the
title on Marvisak#307, all at if/else joins of two s_load_dwordx4 descriptors
copied into VGPRs). An EXEC if/else leaves two phis per dword: the
flow block's joins an arm's dwords with what lanes that skipped the arm
held before (inputs, unrelated loads and arithmetic in the title), the
join after the other arm picks per path. Only lanes that never read the
descriptor bring those other values, so tracing every edge fails.

Tracing (resource::track now takes the program's per-lane form):
- per-lane phis of one block are traced on each edge into it that the
  lanes accessing the descriptor can take, from structure's lane
  conditions (new Structured::reach, the exits' conditions, and
  Bools::meet, a read-only satisfiability check); the trace starts from
  what holds in the access's block. Edges no such lane takes are None
  in the new Source::LanePhi { block, args };
- every per-lane write it follows (v_mov_b32 copies, v_cndmask_b32,
  global_load_dword*) must run in all those lanes: a guarded one fails
  with "a per-lane descriptor written where some lanes may keep the old
  one". On Marvisak#307 an else arm without its s_cbranch_execz traced as the
  second descriptor for every lane;
- a loop header's phi fails with "a descriptor read from the first lane
  of a phi at a loop header", words defined after the join with "a
  descriptor partly joined by control flow"; without the per-lane form
  (structurisation failed) the join is refused.

Lowering computes each traced edge's heap index at its predecessor's end
(through lane_heap_index, so loads, per-lane loads, choices and nested
joins work), joins them with a phi (0 on untaken edges) and makes the
handle non-uniform. The waterfall compares need no change.

Tests: the if/else of two loaded image descriptors, a join of a per-lane
load and a v_cndmask choice, nested arms choosing a buffer descriptor
with lanes that skip both and do not load (pruned only by the access's
condition), a loop header phi, and an unskipped else arm. On Marvisak#307's head
the three join programs fail with "...of a phi" and the unskipped arm is
traced as one descriptor for all lanes. On an RTX 5070 and WARP, each
lane reads its own arm's texture or buffer; the shaders pass dxil.dll
1.8.2502.11. Reversing the phi's inputs fails validation, flipping the
heap index fails the GPU check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n review

The previous commit proves that a loop's compares select the lanes of
the access and that its retry keeps exactly the lanes still waiting.
Every failure of that proof was reported with one reason. They now say
which part failed:

- the access is in no single-block loop ending in s_cbranch_execnz;
- the loop is nested in another or split over blocks;
- the compares do not select the access's lanes;
- the retry does not keep the lanes still waiting.

Without the per-lane form the proof cannot run. Nothing is emitted then,
and that failure is the one reported, as before.

Tests, all hand-assembled:

- the case ifBars reported on upstream PR Marvisak#566 (the compares never
  narrow EXEC), an access under a further mask, a retry that keeps other
  lanes than those waiting, a wave64 retry of one half: refused, each
  with its reason;
- the waterfall LLVM writes for GFX10 and later (a v_cmpx_eq chain, the
  retry as todo & !EXEC, also folded into s_andn2_wrexec) is accepted in
  wave32 and wave64, and each lane samples its own texture on the GPU;
- one loop per operand, the sampler's inside the resource's, is refused
  by name. The console gives each lane its own pair there; following the
  outer loop's reads into the inner block is left for later.

Other per-lane work in a waterfall loop is still taken to run once for
each lane; marked as a shortcut.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… names

A buffer read whose element stride is not known at translation takes a
raw handle and a byte offset from the runtime stride table. The handle
was of the slot the title's view is in, and a raw handle over a
structured or typed view is undefined in D3D12: for the load of
[index 2, offset 4] an RTX 5070 reads dword 21 of a structured view of
12 bytes (dword 7 asked for) and dword 36 of one of 16 bytes or a typed
RGBA32F one (dword 9 asked for), where a Radeon and WARP read the bytes
asked for. No handle of another kind is right everywhere either: with a
structured handle whose declared stride differs from the view's, the RTX
5070 addresses by the view's stride and the Radeon and WARP by the
declared one.

The table's entry per slot is now a StrideEntry of two dwords: the
stride, and the heap slot holding a raw view of the bytes the slot's
view reads (none: the slot's own view is raw), with the bytes from that
raw view's start to the view's first byte (raw views start on 16 bytes
on the host). The shader reads, stores and runs atomics through a raw
handle of the slot named, so the handle's kind always matches the view.
RawWindow gives the host the raw view for a byte range.

The GPU side writes the new entries without raw slots yet, which reads
as before.

The test binds raw, structured (12, 16, 20 bytes) and typed (RGBA32F,
R32_UINT) views, as shader views for the load and as unordered access
views for the store and the atomics, with their raw views beside them,
on the hardware adapter and WARP; a second one takes the descriptor
from a join of two loads.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The programs that read a buffer without a known stride pick its heap
slot at run time, so the runtime stride table has to be looked up by the
slot the shader computes, and the view in it can differ from one thread
group to the next.

A new test loads the heap slot from a buffer per thread group (a scalar
load whose offset is the loaded value), with a structured view of 12
bytes in one slot and one of 16 bytes in the other: the four lanes of
each group read the bytes of the view their group chose, in one dispatch
and again with the choice swapped. A lane reading past the three
elements of the first view reads zero, not the buffer's next bytes.

The test host's raw views now cover a window of the buffer (as
RawWindow gives the host for a view's elements) rather than all of it,
which is what ends the read there; the view kinds test takes its raw
views and entries from the same function, with views starting 4 and 12
bytes into their raw views.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ide reads

A shader that reads a buffer without knowing its stride takes a raw
handle of the slot the runtime stride table names. The host heap now
makes that slot: when it makes a structured or typed buffer view (for a
shader or for unordered access), it also makes a raw view of the same
bytes of the same host copy in a pool of 65,536 slots after the dynamic
ones, and writes the slot, the stride and the bytes from the raw view's
start to the view's first byte (raw views start on 16 bytes) into the
slot's entry. A raw view keeps its own slot. The raw view ends with the
view's last element, so reads past it give zeros.

The entry and the raw view are written wherever the slot's descriptor
is (tables made for a draw, title slots a draw reads through a table,
slots made null), so they are as current as the descriptor; a slot made
again reuses its raw view slot, and one made null, raw or constant, or
a dynamic slot given back, returns it to the pool. Views the host
cannot make raw (starting off a dword of the copy, or with the pool
full) point at a null raw view and are logged once.

The test makes placed structured, typed and raw views in a host heap
and runs the translated program of victory-shader's run-time slot test
on it: each thread group reads the bytes of the view in the slot it
chose, zeros past the view's end, and the new view's bytes after the
slots are made again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
main moved under Marvisak#307 and this branch. One conflict, in the test module of
emit/lower.rs: the imports take both sides' names (Marvisak#117's `half_shift`
beside `Lowered`), and Marvisak#117's `scalar_bit_tests_lower` sits after this
branch's waterfall tests. No code outside the test module was touched by
hand. A merge rather than a rebase so Marvisak#307's commits keep their ids.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
main moved under Marvisak#193 and this branch. One conflict, in
HostHeap::new (descriptor/host.rs): Marvisak#336 tries the heap with DYNAMIC
dynamic slots, then with MIN_DYNAMIC, then capped, and records the range it
got in `dynamic`; this branch puts ALIASES raw-view slots after the dynamic
ones. Both kept: each attempt asks for the alias slots too, the capped
count leaves room for them, the lease bitmap has `extra` entries as on
main, and `alias_base` stays `count + extra`. A merge rather than a rebase
so Marvisak#193's commits keep their ids.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…clamps, and non-multiple-of-4 stride refusal
BastienRodz and others added 26 commits November 24, 2026 10:23
…st case

scratch_layout took 16 bytes of alignment slack per extra slot off the
capacity before counting vertices, so a layout that fits exactly (two
slots of 8 and 12 bytes in 120, no padding needed) was refused, and in
8 MiB a few rectangles of room were lost. It now starts from the
unpadded vertex count and steps down a rectangle at a time until the
padded regions fit. Reported by DarX-Oren on Marvisak#346.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rewrite pass read the title's records after the clamp and relied on
the clamp having written its bounds back in place. It now applies the
same bounds itself (2^24 vertices, 2^26 vertex instances), so a clamp
that writes elsewhere (Marvisak#242) cannot bring back unbounded counts.

f32_to_half in the expand shader or-ed the rounded mantissa into the
exponent, losing a rounding carry when the exponent is odd (1.99995
became 1.0); it now adds it, as Marvisak#260 does for primitive.rs.

The module notes also say that, with vertex inputs, the vertex id is
the expanded one, from an allocated start whose order between records
may change from run to run.

Reported by marquezinii on Marvisak#346.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rewrite pass already writes records at or past the title's count as
empty draws, so ExecuteIndirect does not need the count: it now runs all
records from the list's own arguments buffer, with no count buffer. The
rectangle path then changes the state of no title buffer: the count's
host copy was moved to INDIRECT_ARGUMENT and back around the draw, which
a buffer-state tracker such as Marvisak#458 or Marvisak#334 may have moved elsewhere,
and which the draw's own shaders may need in another state (reported by
claude-GTA6 on Marvisak#346: a device removal with Marvisak#458 stacked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…w does

Marvisak#418 made primitive::f32_to_half write half subnormals, rounded to even,
where it flushed them to zero; the expand shader's copy of it still
flushed, so a fourth corner below 2^-14 differed between the CPU and GPU
paths. The shader now rounds them the same way. The byte-for-byte GPU
test gets a rectangle whose half fourth corner is 2^-16 (a subnormal);
with the old flush the test fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f32_to_half added 0x1000 before dropping the low 13 mantissa bits, so a
value exactly halfway between two halves always rounded up: 1 + 2^-11
packed as 0x3c01 instead of 0x3c00. fuzeofficlal measured it in native
draws of the direct path on RTX 5090 and WARP (10 of 16 reference pixels
before, 16 of 16 after) and wrote the fix (c256b97 on their fork): the
retained bit decides halfway cases. Applied to primitive.rs and to the
expand shader's copy, so the direct and indirect paths keep agreeing.

primitive.rs gets a test of both midpoints; the byte-for-byte GPU test
gets a fourth corner of 1 + 2^-11, and fails with the old rounding in
the shader.

Co-Authored-By: fuzeofficlal <fuzeofficlal@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under Wine and Proton, D3DCompile is vkd3d-shader, which has no Load on
RWByteAddressBuffer (E5005) and ignores the RootSignature attribute, so
the expander did not compile there and indirect rectangles stayed
dropped (reported by Exorion1er on Marvisak#346, with GE-Proton11-12).

The two passes now read and write buffers as 32-bit words through
(RW)StructuredBuffer<uint>, and their root signatures (eight root
constants, then root descriptors) are serialized in code instead of
coming from the shader. The bindings and the arithmetic are unchanged.
Checked with vkd3d-compiler 2.1 (the vkd3d-shader GE-Proton11-12 ships):
the old shaders fail with the reported E5005 at 25:25; the new ones
compile, and with their bytecode the byte-for-byte GPU test passes on
vkd3d-proton.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A compute program whose root signature does not fit the 16 user SGPRs
finds its arguments through a spill table: s[0:1] holds a pointer (high
dword masked to 40 bits, usually copied to s2/s3 first) to a table of
the user data, and the program s_loads descriptors and constants from
it. Table dword k is user SGPR 16 + k. The translator only knew
addresses that come from the declared root layout, so every such
program failed with "an address in an SGPR that is no root parameter".

For compute programs whose root layout lies entirely at user SGPR 16 and
above, loads from that pointer with a constant offset become s_mov_b32
copies of the user SGPRs the dwords stand for, before the SSA is built,
so resource tracking and lowering see what they see for ordinary root
arguments. Only straight-line code from the pointer's set-up is
rewritten (tags are dropped at branch targets and on any overwrite of
the pointer registers); other loads stay loads.

On the title's world shaders this took the "SGPR that is no root
parameter" failures from 34 programs to 4 in one run. Other failures
that were hidden behind it now show (address not from a root parameter,
root UAV or typed root view, an address from a phi...). Whether the
translated programs render correctly has not been checked beyond that.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The spill-table rewrite turned each load into `s_mov_b32 sK, s(16+k)`,
which reads what the register holds at that point. A program that has
already written SGPRs 16 and up (the destination of an earlier table
load, say) then reads the wrong root argument, with no refusal.

The program now first copies the user SGPRs its table loads stand for
into a block of SGPRs it never reads or writes, and the loads read that
block. Without such a block below VCC, or when a branch can return to
the program's entry, nothing is rewritten.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ol (Marvisak#704, Marvisak#193)

Lower unknown-stride structured buffer views to dynamically aliased
raw SRVs on host descriptor heaps, backed by the runtime stride table
at STRIDE_SPACE=3 (register space 3, keeping register space 2 for root constant addresses).
Closes Marvisak#193, Marvisak#704.
…arvisak#255)

Closes Marvisak#255 for non-indexed draws.
Indirect draws with the console's rectangle-list topology (17) now
run on the host instead of being dropped (~250 drops/frame in GTA VI).
Expands rectangle vertices on the GPU using two compute passes
(rect_rewrite and rect_expand) before ExecuteIndirect, seamlessly
integrated with multi-arg prefix constants clamp.
… on first use (Marvisak#431, Marvisak#557)

- Defers freeing host textures and slot resources until running GPU submissions complete, eliminating DXGI_ERROR_DEVICE_HUNG / DRED page faults inside freed textures.
- Lazily creates host copies on first use via OnceLock, cutting host texture memory in half and preventing excess paging to system memory.
Closes Marvisak#557.
…rvisak#493)

- Binds root SRVs as one-descriptor tables holding raw views bounded to their host copy's end (raw_at).
- Out-of-bounds reads safely return zero instead of faulting into adjacent memory or unmapped holes.
- Integrates with dynamic slot lease reclamation via take_dynamic.
Closes Marvisak#493.
In crates/victory-gpu/src/list.rs (state::targets), OMSetRenderTargets with RTsSingleHandleToDescriptorRange != 0 previously dereferenced *handles even when NumRenderTargetDescriptors == 0, stepped from a null first handle (0) into unmapped low addresses (0x80, 0x100, ...), did unchecked u64 addition on first + 128 * i, and did not cap count at D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT (8).

Extract state::target_handles to:
- return empty without reading handles when count == 0 or handles is null,
- keep all slots 0 when a single-range call starts at handle 0,
- use checked_add(128 * i) with 0 fallback on overflow, and
- cap count at 8 simultaneous render targets.

Add synthetic regression test list::tests::om_set_render_targets_guards_empty_and_null_single_ranges (crashes with STATUS_ACCESS_VIOLATION before the fix, passes after; also confirms host D3D12 accepts NumRenderTargetDescriptors = 0 with RTsSingleHandleToDescriptorRange = TRUE and a non-null pointer).

Synthetic tests only (no game data). Prepared with Google Antigravity.
XMemVirtualAlloc with the 32-bit address flag has to fit below 4 GiB, where
Windows also puts the host's own memory first (it allocates bottom up). With
a large pipeline cache read at startup, the driver's, heap and cache memory
left 22 MB there, in pieces of at most 14 MB, when Grand Theft Auto VI asked
for a 185 MB 32-bit placeholder; the request was refused
(ERROR_NOT_ENOUGH_MEMORY) and the title stopped at an assertion
(+0x19f4f58). The D3D12 debug layer's memory did the same.

`low_guards::install`, at the start of `run`, reserves the free space below
4 GiB but the lowest 256 MB (left to the host). A 32-bit request that finds
no room releases the smallest guard that fits it (else the largest) and
tries again, then guards what is still free of it.

Tested: the new test releases a guard, takes part of the hole and checks the
rest is guarded again. In the title (RTX 2080, a build with a large cache):
without this the startup failed 2 of 3 times; with it, 5 of 5 starts passed,
3.7 GB below 4 GiB kept for the title.
Under the Microsoft x64 ABI, COM methods returning a struct larger than 8 bytes by value receive a caller-allocated hidden return pointer (after `this`) and must return that pointer in RAX.

ID3D12Heap::GetDesc, ID3D12Resource::GetDesc, ID3D12CommandQueue::GetDesc, and ID3D12DescriptorHeap::GetDesc returned (), leaving RAX undefined, unlike GetCustomHeapProperties and GetResourceAllocationInfo.

Return `out` from all four methods and cover the return pointer and null output pointer handling with synthetic unit tests.
… reads (Marvisak#334)

- Introduces BufferStates tracking per list in host.rs: transitions title buffer host copies between GENERIC_READ and UNORDERED_ACCESS.
- Eliminates fixed UAV <-> INDIRECT_ARGUMENT barrier thrashing in indirect.rs, resolving NVIDIA vertex buffer UNORDERED_ACCESS crashes (Marvisak#199, Marvisak#264).
- Resets all used buffer states back to COMMON at HostList::close.
Closes Marvisak#334.
Derive the read span from the original footprint, while requiring a backing buffer large enough for the whole footprint. Preserve the box-relative byte offsets when a GPU copy rebases an unaligned source. Covers the boxed-copy case reported by DrDarkDK in Marvisak#785.
…ts (Marvisak#780, Marvisak#352)

- Stream names PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE so D3D12 pipeline library does not refuse mesh PSO loads with E_INVALIDARG/972.
- Renames mesh library prefix to 'mesh triangles'.
- Zeros unused RTVFormats beyond NumRenderTargets to prevent cache description mismatches.
- Cleans InputLayout.pInputElementDescs to null when inputs is empty.
Closes Marvisak#780. Refs Marvisak#352, Marvisak#264.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0f92e692-a0b9-402b-9518-a2f2fb97b3c6
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.