Live D3D12 Debug Layer on NVIDIA (0a43566): 1,791x ID 538 (COPY_DEST root SRVs), 706x ID 646 (UAV-in-SRV tables), plus strict-driver state hazards #36
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@owsware on GitHub · 2026-11-25 23:57 UTC · original
Context
Open PR #5 cleans up the synthetic
replaytest fixture errors (ID 538,ID 1003), but live gameplay underVICTORY_D3D12_DEBUG=1on commit0a43566still emits severity-1 validation errors.Measured on RTX 5080 (driver
576.80, Windows 11 Build22631,-Safe+VICTORY_LATE_WAIT_LISTS=32+VICTORY_SKIP_PIPELINES=none,154.9 s,11.3 fps/88.2 ms/frame, zero crashes):72118,160GetResourceAllocationInfo:4KBalignment requested on textures with mip0 >64KB(A8_UNORM1024x1024/2048x2048,R9G9B9E5_SHAREDEXP1280x720)53811,791SetComputeRootShaderResourceViewreading buffer inD3D12_RESOURCE_STATE_COPY_DEST (promoted from COMMON)6461706SetComputeRootDescriptorTableParameter[1]Range[0](D3D12_DESCRIPTOR_RANGE_TYPE_SRV) bound toUAVdescriptor971221Load*Pipelinecold cache misses82027ClearRenderTargetViewclear value mismatch62216CreateComputeShader:WaveSize 64 > 32(tracked in separate Wave32 issue)25323CreateInputLayoutwith0elements101322CreateDescriptorHeapNumDescriptors4194304and2097152Tier-3 warnings(Note:
ID 523,ID 527, andID 1003did not appear in this live debug run.)1. Live
ID 538(1,791x) — Compute Root SRV ReadingCOPY_DESTDebug output:
Code paths where
CopyBufferRegionpromotes aCOMMONbuffer toCOPY_DESTwithout always transitioning back toNON_PIXEL_SHADER_RESOURCEbeforeSetComputeRootShaderResourceView:crates/victory-gpu/src/host.rs:4270-4302:CopyBufferRegion(&shadow.buffer, ...)runs, thenif own.is_none() && before.is_some() && !ranges.is_empty()transitionsCOPY_DEST -> NON_PIXEL_SHADER_RESOURCE, skipping transitions in other branches beforeSetComputeRootShaderResourceView(1, shadow.buffer...).crates/victory-gpu/src/host/send.rs:277-293:CopyBufferRegion(&shadow.buffer, ...)promotesshadow.buffertoCOPY_DEST, and only transitions toNON_PIXEL_SHADER_RESOURCEwhenhashed && (!copy.runs.is_empty() || copy.pairs.1 > 0).crates/victory-gpu/src/indirect.rs:511-546:record_clamp_asassumessrc/countstay inCOMMON/GENERIC_READ, which breaks if a copy earlier on the same list promoted the buffer toCOPY_DEST.2. Live
ID 646(706x) —UAVDescriptor in ComputeSRVRangeDebug output spans both direct guest descriptor slots (
424490,604470) and dynamic table slots (735198,767041,818502,906461):Mixed guest descriptor ranges mirrored via
HostHeap::mirroror cloned viaState::tables(draw.rs:3385,host.make_at) can containUAVviews (unordered = true) inside a root signature range typed strictly asD3D12_DESCRIPTOR_RANGE_TYPE_SRV.3. Additional Strict-Driver / Multi-Pass Hazards Noted
While auditing
0a43566against NVIDIA D3D12 behavior:crates/victory-gpu/src/list.rs:1418):clear_dsvcallslist.twin_use(record.resource, false, true)right beforeClearDepthStencilViewwithout resolving shader-written depth planes into the depth resource beforehand. If a queued depth resolve runs at list close, it can overwrite a partialClearDepthStencilView, causing subsequent equal-depth passes to reject cleared pixels.R9G9B9E5_SHAREDEXPcastability onR32_UINT(ID 28): Strict D3D12 drivers triggerDXGI_ERROR_INVALID_CALLdevice removal if anR9G9B9E5_SHAREDEXPSRV is created over anR32_UINTUAV resource without verifyingOPTIONS12castable format list support or using a separate typed alias texture + bit-preservingCopyResource.R8_UINT): Open PR #20 clearsBlendEnablefor integer render targets only on its RDNA1 mesh-to-compute fallback path; strict drivers also requireBlendEnable = falseper integer RTV on the main graphics/mesh pipeline path (pipeline/host.rs).ID 523): EnsureUAVresource barriers referencing textures withoutD3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESSfall back to a global (pResource = NULL) UAV barrier so list close cannot failE_INVALIDARG.~1 TiBof virtual VA (DXGI_ERROR_DRIVER_INTERNAL_ERRORrisk on high-alias workloads); bounding sparse alias reservations to element-aligned view windows ([FirstElement..end]) reduces virtual VA footprint dramatically (~52 GiBvs ~997 GiBobserved in earlier NVIDIA runs).