main took db421e6f (the bisect mode) and D3D-162's statistics segments, which
conflicted with this branch in vulkan_replay.h, d3d12_vulkan.md and the test.
The 8060S retest on driver 26.11.2 (#1540) failed 7690b647 3/3: the earlier
c8ea00e4 passes were not reproducible, and a TDR also breaks unrelated tests
until the GPU recovers. With no evidence that the pause helps, vulkan_replay.h
and d3d12_vulkan.md are main's, and the branch keeps only the diagnostics:
--no-draw, --no-resolve, the active phase, the single-query resolve case, and
a lost-device check that now reads is_device_lost() and the gate semaphore
(main removed VulkanContext::retire_timeline). The draw schedule follows main's
statistics lists, then replace and the single case.
tbuffer_store_format_* and its d16 forms were Unsupported, though every
tbuffer_load_format_* form translates. They now go through buffer_store
with the instruction's format, as the loads go through
buffer_load_format:
- only that format is encoded, with no branch on the V#'s FORMAT;
- the bounds check uses its element size;
- a V# whose FORMAT is 0 (INVALID) still disables the store, as measured.
(@Vonsek covers the MTBUF loads and @opit80 the raw MUBUF accesses
through such a V#.)
The format parsing the loads did inline becomes mtbuf_format(), shared by
both: no modifier is GFX10's default BUF_FMT_8_UNORM, and a format
FORMATS has no encoder for stays Unsupported. read_before_write_vgprs
now counts a tbuffer store's data VGPRs as reads, as for buffer_store.
cs_tbuffer_store.asm stores into 13 sentinel-filled regions through V#s
whose format differs from the instruction's or is 0, and reads them
back. Every
expected word was measured by running the same body natively on a
Radeon 680M (gfx1035, RDNA2); wave32 and wave64 gave the same 52 words:
- the instruction's format decides the encoding, the element and the
bounds;
- components the format has but the store doesn't give are 0, and extra
ones are dropped;
- the default format is one byte, and its neighbours are kept;
- a FORMAT-0 V# leaves the region untouched.
check.py and run_gpu_tests.py compare the dump. The semantic fixture
runs through the interpreter in tests/semantic/test_tbuffer_store.py,
which fails on the old translator (Unsupported). It also fails on
versions that take the bounds from the V#'s element (5 words differ),
take the format from the V#, fill missing components with anything
but 0 (1 word), or drop the FORMAT-0 guard (2 words).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The standalone-device block signals its fence 5, 6, 7, 8. #1674's tiled placed-texture readback signalled 7 again,
so SetEventOnCompletion returned at once and the block read the readback buffer before the copy (line 4995). It
now waits on 8 and the next block on 9.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pixel shader that iterates z = z^2 + c per lane until it escapes or 64
rounds pass. Escaped lanes drop out of EXEC, s_cbranch_execz leaves the loop
once all lanes are out, and EXEC is restored before the export. check.py and
run_gpu_tests.py compare every pixel's iteration count with a pure-Python
float32 model (mul/add/sub only, no FMA, so the model is exact).
Tested on main 003e7812: run_gpu_tests.py 131/171 on RTX 5070 Ti (40
skipped) and 162/171 on AMD Radeon integrated graphics (9 skipped, run by
the d3d12 draw tests). AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rounding the view's minLod to the nearest level fixed point-filtered
samples on drivers that use minLodInteger, but integer texel fetches
and gathers use floor(minLod) on every driver, as D3D11.3 5.8 also
requires for ld and gather4. With a 0.75 clamp the rounded view gave
1.0, so a Load of mip 0 would read zero. No single view value is right
for both, so the sampling fix belongs in the translator (a MinLod image
operand on sample ops only). This keeps the bindless capacity fix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After upgrading the Radeon 8060S from AMD driver 26.10.1 to 26.11.2 (#1540),
vk_overlapping_occlusion still times out on main, and c8ea00e4 with the pause
passes every run (--bisect, --gated, the full test, and under validation) in
about 0.1 s. The earlier "every phase hangs" retest was a broader occlusion
bug in 26.10.1 that 26.11.2 fixed, so the revert in 3784aacc is undone.
The comment and docs now cite the 26.11.2 measurement. --no-draw and
--no-resolve stay; the crossing and single schedules match the split again.
#1779 (the #895 rebase) writes placeholder ShaderView records (kind, resource id, offset) into CBV/SRV/UAV slots
and adds a second CreateConstantBufferView next to #1729's, so the runtime no longer compiled. main's descriptor
slots hold GFX10 V#/T# words that translated shaders read; #1729's CBV already writes the raw buffer V#.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The zero-fill/GENERAL init of images with a UAV view no longer drains on a copy
queue or in a submission that runs no dispatch or draw; every other queue's next
submission waits on the initializing one's progress semaphore.
- storage_pending_ is a set (UAV descriptors are rewritten every frame).
- write_buffer_uav: FirstElement and element count are checked against
Width / unit, so the byte range cannot overflow.
- docs: M4 row names the remaining limitation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
open(path, "w") without newline= turns each \n into \r\n on Windows, so the same JSON report, manifest or assembly
listing was CRLF there and LF elsewhere. 91 text-mode writes (open, os.fdopen, Path.write_text) under tools/, scripts/,
make_game.py and runtime/test/shaders/ now pass newline="\n". tests/test_text_write_line_endings.py reads the source
with ast and fails for a writer that forgets it; CONTRIBUTING.md names the convention.
AI-assisted (Claude), on behalf of dev-ewann.
Name all four pointer and size pairs in the XboxNativeComputePipelineStateDesc
struct as kinds 0, 1, 6, 7 per docs/fspx.md and name the slot
DeserializeComputePipelineStateX in slot_name, matching the DLL's messages.
This prepares the description struct for the runtime FSPX resolver follow-up.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Xbox device slot 67 takes (desc, riid, out) with IID_ID3D12PipelineState and a console-only
descriptor with the root signature at +0x00 and code blob pointer/size at +0x28/+0x30.
Previously it logged and returned E_NOTIMPL.
Route it to CreateComputePipelineState on the PC device (slot 11) like slot 62, mapping the
console descriptor to D3D12_COMPUTE_PIPELINE_STATE_DESC. On the Vulkan device this resolves
through the translator via fssm_program and ShaderLibrary.
- Implement proxy_create_compute_pipeline_from_native_code in d3d12_xs_device.cpp
- Update device_proxy_test to verify slot 67 thunk, compute PSO creation over WARP, and argument checks
- Update d3d12_compute_test to verify slot 67 compute PSO creation on the Vulkan device
- Update documentation in d3d12_command_objects.md and d3d12_vulkan.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 8060S retest of c8ea00e4 (#1540) loses the device in every phase that runs
a hardware occlusion query, including nested and binary, which never resolve
inside an active query, and active with the pause applied. Only unwritten, with
no hardware query, passes. So the resolve-while-active rule did not fix it;
vulkan_replay.h and docs/d3d12_vulkan.md go back to main.
Every hanging phase both draws inside a query (an attachmentless rendering
scope inside a query begun outside rendering) and resolves through the copy
and compute helpers. --no-draw leaves every query empty and --no-resolve never
copies or sums results, so the four combinations tell the two apart. The
bisect run prints which switches are on.
The resolve inside one active query stays in the default run and as the
"active" phase; the crossing schedule is back to three segment ends.