Repository navigation
Merge main into #1958 and match the index parser's current lds_bytes message - #1
Open
crastinator wants to merge 206 commits into
Open
crastinator wants to merge 206 commits into
crastinator wants to merge 206 commits into
Conversation
…nchronization2 extensions The D3D12 layer and its GPU tests took only Vulkan 1.3 devices, for dynamicRendering and synchronization2. CrossOver's MoltenVK on macOS (1.2.10, the driver its Wine uses) is Vulkan 1.2 with VK_KHR_dynamic_rendering and VK_KHR_synchronization2, the same features under their extension names, so every Vulkan-backed test skipped there. src/vulkan13_features.h picks the core features on 1.3 and the two extensions on 1.2, and device_proc_or_khr falls back to the ...KHR entry points (vkCmdPipelineBarrier2KHR, vkCmdBeginRenderingKHR), which a 1.2 device serves instead of the core names. The translated shaders are SPIR-V 1.5 validated for Vulkan 1.2 already. On a 1.3 device the feature chain is the one it was. Tested in a CrossOver Preview arm64 bottle (FEX) on an Apple M2 Max, cross-built with clang-cl 22.1.8 and xwin: against main at the same commit, no test that passed fails, and d3d12_com, d3d12_multithread, d3d12_method_variants, d3d12_uav_clear, d3d12_debug_markers, d3d12_fence_timing, d3d12_sampler2, d3d12_typeless_rtv, d3d12_predicated_copy and depth24_convert now run and pass. Ten more now run and fail: comparisons with Wine's host D3D12, and MoltenVK 1.2.10 limits (vk_binary_occlusion and vk_overlapping_occlusion fail the same way natively on that driver and pass on MoltenVK 1.4.2). The 1.3 path of create_vulkan_device_standalone was not run on a 1.3 device here. AI-assisted. No game files.
The Radeon 8060S on AMD's Windows driver times out (TDR) on the crossing pattern of vk_overlapping_occlusion: a resolve recorded while an ordinary occlusion query is active, so vkCmdCopyQueryPoolResults with WAIT_BIT and the summing dispatch run while a query of the same pool is active (ItsNotRexed#1540, found with --bisect). Validation reports nothing before the hang. A resolve while a physical segment is active now ends that segment before the resolve and begins the next one after it; the logical query's range spans one more segment, so results are unchanged. A list that resolves inside a single active query takes the segment path too when the device can sum. The test adds a resolve inside one active query (default run and the new "active" bisect phase), gives the crossing schedule the extra segment end, and --bisect now detects a lost device by the queue timeline reading UINT64_MAX, since vkQueueWaitIdle succeeds after the reset on that driver.
# Conflicts: # runtime/shims/d3d12_vulkan_device.cpp # runtime/test/vk_test_device.h
…RDNA2 does (BUILD-161) docs/design.md narrowed the f16 of a typed d16 buffer load from the f32 decode with round to nearest even, and called that rounding inferred, not measured. tools/d16_format_probe.py measures it through tools/hw_oracle: every UNORM8, SNORM8, UNORM10, UNORM16 and SNORM16 value through buffer_load_format_d16_x, tbuffer_load_format_d16_x and buffer_load_format_x, in wave32 and wave64, against several candidate rules, with a 16_FLOAT load, the kept high half of d16_x and the staged inputs as controls. On an RX 6700 (gfx1031) the hardware rounds the exact quotient once, straight to f16. Rounding to f32 first is 1 ulp high on exactly four values (UNORM16 0xffaf and 0xffef, SNORM16 0x7ff7 and 0x8009); over every width up to 16 bits only two f32 quotients land on an f16 halfway point (0x3f7ff000, 0x3f7fb000). Gen.d16_norm_f16 takes the f16 below for those two, for normalized formats only. The f32 (non-d16) result was already right. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…copy queues; buffer UAV views and indirect dispatch state d3d12_m4_compute_test, through the proxy with D3D12 API only and two translator-output compute shaders (cs_m4_fill.asm, cs_m4_indirect.asm): a COPY queue streams an input buffer in, a COMPUTE queue waits on it and runs a compute PSO over a UAV table (structured buffer, raw buffers, an R32_UINT RWTexture2D), then ExecuteIndirect of a second PSO from arguments the first wrote (with a transition to INDIRECT_ARGUMENT and UAV barriers), and a COPY queue behind a cross-queue fence reads the results back. 1,924 words match the CPU reference with error 0. Layer gaps the test found, fixed: - CreateUnorderedAccessView of a buffer was a stub: structured and raw views are now a V# in the slot. - ExecuteIndirect of a dispatch ran whatever pipeline and root arguments the command buffer had bound; the command now carries the list's, as Dispatch does. - An image created in UNORDERED_ACCESS and first used by a shader was zero-filled by the first barrier or copy that named it, losing the shader's writes; images with a UAV view are now moved to GENERAL (zeroed) at the next submission. - COMPUTE and COPY command lists no longer log "unimplemented". Test infrastructure: vk_test_device.h can create more than one VkQueue; build.py gives a compute shader's FSSM program extra words (fssm-at/fssm-data from 0x148) so two compute shaders with the same group size get distinct hashes, and honours LEONIDA_SPIRV_TOOLS (as ItsNotRexed#1679) so the target builds under the Visual Studio generator. docs/d3d12_vulkan.md section 6: M4 synthetic part met; M3 row credits @whattheflop's ItsNotRexed#1584 measurement of fences in flight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re waiting on the child Review on ItsNotRexed#1707: without the marker the child would not use the reservation and could relaunch again, and a child left suspended would make the infinite wait hang. Both now end the child and return 1, as a failed reservation already did. AI-assisted. No game files.
psin.hexpat lays out a container as docs/psin.md describes it: the big-endian first-section offset, the instance-data block table (rows, the pppppppp end) and its blocks as raw bytes, the section chain, LSCH struct headers and members and LENM enums and values (header count by the fill-exact rule psin_index.py uses), the LSNS block table with opaque 16-byte records, the LRSC 0DRP version and root block, and the CHKS file size. A section past the end of a truncated stream is shown as raw bytes. tests/test_imhex_patterns.py builds a synthetic container from the invented schema in test_psin_index.py, checks it with psin_index.parse and psin_data.block_table, and when ImHex is installed compares the pattern's output with both, plus a container cut inside LENM.
…eIsPackagedProcess, XSystemGetAnalyticsInfo
The synchronization check launches the test executable itself, so pass the configured Wine or Proton command through its environment wrapper.
…t (D3D-189) The 8060S retest of c8ea00e (ItsNotRexed#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.
…efined extent (D3D-165)
DescriptorTable::erase backward-shifted the key's probe cluster, which moved other live entries, so BindlessSet::erase_key flagged the next flush as needing idle and every texture release ended in vkDeviceWaitIdle on the next submit. The shift is not needed: every lookup, on the CPU and in the translated shaders (rdna2spirv.py desc_probe), compares all eight probe slots and never stops at an empty one. Erase now empties only the key's own slot, and inserts reuse the hole. An erase uploads like an add (one slot, no idle). Replacing a live key's index, a relocating insert and table growth still require idle. Tests: descriptor_table_test checks that an erase in the middle of a cluster leaves every other slot byte-identical and marks one changed slot (it fails on the old erase); vk_bindless_test now expects no idle after an erase.
# Conflicts: # docs/design.md # tools/rdna2spirv.py
…mputePipelineState (RT-99) 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>
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>
…BUILD-468) 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.
…ions, ordered for other queues - 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>
# Conflicts: # runtime/shims/d3d12_vulkan_device.cpp # runtime/test/vk_test_device.h
After upgrading the Radeon 8060S from AMD driver 26.10.1 to 26.11.2 (ItsNotRexed#1540), vk_overlapping_occlusion still times out on main, and c8ea00e 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 3784aac 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.
…mats) PSV0 resource bindings give the structured UAVs with a counter and the typed buffer SRVs/UAVs; the listings give the MTBUF instruction formats and, for MUBUF *_format ops, where V# word 3 comes from in the access's basic block (literal, scalar load, computed, an earlier block or a shader input). Formats are checked against rdna2spirv.Gen.FORMATS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion 16 A literal V# word 3 with FORMAT 0 (an unbound descriptor) reads 0 on the hardware and in the translator, so it is not listed as a format the translator lacks. Row 16 gets the counts over the 1.0.2.1 corpus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/README.md # docs/i18n/README.md
# Conflicts: # docs/d3d12_vulkan.md
# Conflicts: # docs/i18n/README.md
# Conflicts: # docs/character_models.md
# Conflicts: # docs/design.md
…s CLI test, a tbuffer format example - vk_pipeline_check.cpp: ItsNotRexed#1826's --isolate-batch parsed with the val() helper ItsNotRexed#1735 replaced, so the checker didn't build; it now uses number() like the other options. - check_vk_pipeline_cli.cmake (ItsNotRexed#1735) matched "malformed JSON"; ItsNotRexed#1847's index parser names the file and position ("index.json: expected '{' at byte 0"), which the check now matches. - test_tbuffer_store: BUF_FMT_8_UINT stopped being an unsupported example once ItsNotRexed#1871 added the 8/16-bit UINT/SINT formats; it uses BUF_FMT_8_USCALED. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…four tools follow the repo rules - int_hw_probe: VOP3 clamp on the carry-out add/sub ops (ItsNotRexed#1831) and v_cvt_rpi/flr's exact floor(x+0.5) and NaN sign saturation (ItsNotRexed#1856) now translate as gfx1035 measured, so KNOWN_DIVERGENCES is empty. The known-divergence test reports a synthetic entry. shader_validation.md says so, and design.md loses the stale duplicate v_cvt_flr/rpi row a "both" merge left that still called them open. - docs/README.md: one Other languages line (fr, pt-BR, zh-CN, pl-PL, tr, ru, ja); docs/i18n/README.md: one row each for pt-BR and zh-CN (the newer). - anim_rigs, d16_format_probe, pe_shader_containers: text writes name newline="\n" (ItsNotRexed#1615); pe_shader_containers guards stdout (ItsNotRexed#1428). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… bad lds_bytes Since ItsNotRexed#1847 the parser names the file and where it stopped ("cannot use .../index.json: expected unsigned 32-bit lds_bytes at byte 37") and no longer says "malformed JSON", so after the merge the new lds_bytes cases failed although all three values were rejected with exit 2. They now match "index.json: expected", like the check above them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @Capi360, this fixes the one test that fails when ItsNotRexed#1958 is merged with current
main. Merging it intocodex/pipeline-workgroup-limitupdates ItsNotRexed#1958.What's broken: since ItsNotRexed#1847,
vk_pipeline_check's index parser names the file and where it stopped. For example:cannot use .../index.json: expected unsigned 32-bit lds_bytes at byte 37. It no longer says "malformed JSON".mainalready updated the check above yours, but the newlds_bytesloop still matches the old text. Sovk_pipeline_check_clifails after the merge, although all three bad values are rejected with exit 2:The fix:
main(4eb6155d), cleanly.index.json: expected, like the check above it.1.5stops after the1with "expected ',' or '}'", so a pattern naminglds_byteswouldn't match all three.Tested on AMD Radeon RX 6700 XT (gfx1031), RADV Mesa 26.3.1, Linux:
vk_pipeline_check_cliincluded.run_gpu_tests.py: 167/180, the skips as onmain.maxComputeSharedMemorySize= 65536), withcs_storeandlds_bytesset in its index: 65536 passes (1 modules ok), and 65537 givesMODULE FAIL cs_store (workgroup memory 65537 bytes exceeds maxComputeSharedMemorySize 65536), exit 1.No game files. AI-assisted (Claude Code).