Repository navigation
GPU: emit null buffer SRV/UAV when descriptor names a buffer with null resource - #57
Conversation
…l resource When a title creates a null buffer view (resource == 0, ViewDimension == BUFFER), buffer_bytes(0) returns None, so null_for() fell through to null_like() / null_view() (or a 2D texture UAV) and emitted a 2D texture descriptor into a slot where a shader expects a buffer. Check desc[1] == 1 (D3D12_SRV_DIMENSION_BUFFER / D3D12_UAV_DIMENSION_BUFFER) in null_for() for both View::Shader and View::Unordered so null buffer views get a matching null buffer descriptor.
|
Verified
AI-assisted. |
|
Tested on different hardware. The world-entry device removal still happens here, and the breadcrumbs say it is not the descriptor case this patch fixes. Hardware / system
What happens
Why this hang is not the case the patch fixes
Patch review Reading Other host rejects in the same run (possibly NVIDIA-specific, mentioning in case they matter for #54/#55):
Data: full |
…PipelineStateX (console caches): E_NOTIMPL, cleared out, named
GPU: emit null buffer SRV/UAV when descriptor names a buffer with null resource
Fixes a
DXGI_ERROR_DEVICE_HUNGon a world mesh draw (f0c7efd2aceb2aaa,Srv s1+16: buffer None).Cause
When the title creates a null buffer SRV or UAV (
resource == 0withViewDimension == BUFFER,desc[1] == 1),buffer_bytes(0)returnsNone, sonull_for()fell through tonull_like()/null_view()(orD3D12_UAV_DIMENSION_TEXTURE2D) and wrote a 2D texture descriptor into a slot where the shader expects a buffer.Fix
Check
desc.is_some_and(|d| d[1] == 1)innull_for()for bothView::ShaderandView::Unorderedso null buffer views get a matching null buffer descriptor.Verification
cargo test -p victory-gpu: 36/36 passed.mesh f0c7efd2aceb2aaano longer hangs the GPU and the world advances ~70+ frames further.