Commit Graph

4696 Commits

Author SHA1 Message Date
8ec3ab82ae Merge pull request #1707 from Ash Hopkins 2026-11-22 09:48:07 -05:00
bf0ce0d062 Merge pull request #1706 from Ash Hopkins 2026-11-22 09:48:06 -05:00
c034e448c3 Merge pull request #1696 from SHAURYASANYAL3 2026-11-22 09:48:06 -05:00
f8ef313033 Merge pull request #1627 from nonverifiedperson 2026-11-22 09:48:05 -05:00
f38e203e7c Merge pull request #1622 from Ryx 2026-11-22 09:48:04 -05:00
00452cfaa3 Merge pull request #1615 from Ewann 2026-11-22 09:48:04 -05:00
b83f74f6d2 Merge pull request #1612 from mokkymiah 2026-11-22 09:48:03 -05:00
b9e91c2af8 Merge pull request #1398 from ezwinxdlmao 2026-11-22 09:48:00 -05:00
54e2fee2a9 Runtime: CreateCommandSignature refuses what the host refuses
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZ2Pr9JZJaj81r4m2MtQZk
2026-11-22 14:47:23 +00:00
c88423448e xgameruntime: serve XThreadingImpl and XErrorImpl through QueryApiImpl
A GDK title reaches XTaskQueue/XAsync/XThread/XError through
xgameruntime.lib thunks, not named imports: QueryApiImpl(class, class),
one vtable slot with `this` first, then Release. QueryApiImpl refused
every class, so none of those calls could work.

The slot order is xgameruntime-docs' Layout list after IUnknown, and is
measured: the thunks linked into the package's libHttpClient.GDK.dll and
XCurl.dll (disassembled, not run) call IXThreadingImpl slots 3-7 and 9-30
and IXErrorImpl slot 3, each with the argument shape of the documented
function at that position (docs/runtime_imports.md, "Class layouts,
measured").

- XThreadingImpl: 28 slots forwarded to third_party/xtaskqueue (the same
  code the named exports use), a per-thread time-sensitive flag, and the
  two private slots (XAsyncBeginAlloc, XTaskQueueIsEmpty) logged once.
- XErrorImpl: XErrorReport (the docs' "_unknown_" slot; HRESULT + string)
  logs and calls the XErrorSetCallback callback; XErrorSetOptions is S_OK.
- Process-wide singletons; QueryInterface answers IUnknown and the class.
- xgameruntime_test drives both slot by slot; tiny_gdk_load (under
  gta6rt --run) creates and closes a queue through slots 12 and 17.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:46:09 +00:00
023cdbb924 d3d12_vulkan_device_test: compare CreateCommandSignature refusals with the host
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZ2Pr9JZJaj81r4m2MtQZk
2026-11-22 14:44:52 +00:00
e608a1b992 d3d12: support typeless and castable RGBA8 RTVs on MSAA textures 2026-11-22 15:44:41 +01:00
4a20110919 GPU tests: vk_harness skips a device with fewer push-constant bytes than it pushes
vk_harness declared a 144-byte push-constant range (152 with
--mesh-compute) without checking maxPushConstantsSize. On a device with
128 bytes, the Vulkan minimum, that is invalid
(VUID-VkPushConstantRange-size-00298), and on an AMD Radeon 610M on
AMD's Windows driver ms_clip crashed (0xC0000005) and ms_w64x_ballot
under LEONIDA_W64_EMULATE=1 hung until the runner's timeout.

It now checks the limit once, right after it knows whether it runs a
--mesh-compute module, and exits 77 with "unsupported: need N push
constant bytes, device has M", as vk_texture_test (#862) and
vk_bindless_test/vk_image_fuzz (#1113) already do. The range and the
pushes use the same pc_bytes.
2026-11-22 14:44:30 +00:00
fb34337015 d3d12_translated_draw_test: rename the global extent (C4459 against vulkan_replay.h)
The test's global `constexpr UINT extent = 64` is hidden by a local `extent` in runtime/src/vulkan_replay.h,
so every MSVC build of the runtime prints `warning C4459: declaration of 'extent' hides global declaration`.
It came in with #907, whose earlier fix renamed the global `size` to `extent` for the same reason. The
global is now `target_extent`, a name nothing under runtime/ uses; the test is otherwise unchanged.

Tested on Windows 11 Pro 25H2, MSVC 14.51 + Ninja (scripts/build_runtime.ps1), RTX 5070 Ti / 621.24: the
build has no C4459 (main's 49x C4456 in vulkan_replay.h remain; #1743 handles them). d3d12_translated_draw_test
passes with validation off and on: three draws, 4064/4096 exact, 32 edge pixels, 0 VUIDs. Full ctest with
validation: 106/107; the one failure is d3d12_draw's bundle-blend check, which fails on main too (#1793).
No game files. AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:43:24 -05:00
27d94d0798 vk_descriptor_bench: --warmup-ms keeps the timed dispatch running for 300 ms before timing (TEST-277)
Five warm-up dispatches are too few to bring the GPU clocks up: with the old
default the first placement of --memory all read 30.4 us/1M (RTX 4050, 1k
uniform T# hit) against 23.3 for the same memory type measured warm. The new
--warmup-ms (default 300, 0 = off, --quick off) re-submits the command that is
about to be timed until the time has passed. Self-test covers the option.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 09:42:20 -05:00
3db0860727 runtime: graphics pipelines on a Vulkan 1.2 device through VK_EXT_extended_dynamic_state(2)
The graphics pipelines use the Vulkan 1.3 core dynamic states (primitive topology, primitive restart, vertex
binding stride) and their commands (vkCmdBindVertexBuffers2, vkCmdSetPrimitiveTopology,
vkCmdSetPrimitiveRestartEnable). On a Vulkan 1.2 device these come from VK_EXT_extended_dynamic_state and
VK_EXT_extended_dynamic_state2, with the same values and signatures. Vulkan13Features now enables both where
the device has them, and device_proc_or_khr also tries the EXT name. Without them a 1.2 device still works for
compute, and graphics pipelines are refused as before.

AI-assisted. No game files.
2026-11-22 14:42:14 +00:00
88eaac7c55 D3D-238: compare the valid heap neighbours on the arena-enabled device
compare_invalid_arguments runs on a device without the GPU address arena,
where every heap is E_NOTIMPL, so the ten valid-neighbour heap cases
mismatched the host's S_OK (RTX 5070 Ti and AMD iGPU run on PR #1820).
They move to compare_heap_neighbours, which runs on the standalone device
the CreateHeap tests use. The refusal cases stay in
compare_invalid_arguments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:41:45 +01:00
350328732a xgameruntime: conform XSystemAnalyticsInfo and XPackage APIs to GDK ABI specification 2026-11-22 20:11:42 +05:30
f2ba7831ae Tests: v_cvt_f16_f32 output modifiers, in the interpreter and on a GPU
ps_outmods_f16 has six results; each changes a word when its modifier is dropped, and two change when the omod is applied before the rounding.
2026-11-22 10:40:54 -04:00
2d27368bb0 bink_audio_test: a movie without audio tracks is a ctest skip, not a pass
It printed "SKIP (movie has no audio tracks)" and returned 0, so ctest counted
a run that checked nothing as passed (#1580 moved the unconfigured cases to 77
but not this one). Return 77, and check in test_ctest_registration.py that a
whole-test SKIP in a test registered with SKIP_RETURN_CODE 77 returns 77.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:40:17 +01:00
1b012a6287 check.py: cs_cvt_f32_sat skips, not fails, where the wave size can't be pinned
cvt_f32_sat_test runs cs_cvt_f32_sat once per input and counted every
truthy result as a wrong input. On a device that can't pin the wave size
the translator recorded (Apple under MoltenVK, subgroups 4..32),
compute_test returns unpinned_subgroup_skip's Skip, so the sweep reported
"16 of 16 inputs wrong, first 0x00000000: SKIP (...)" as a failure.

Return the Skip (or None for unsupported wave64) from the first dispatch;
every input would say the same.

AI-assisted.
2026-11-22 15:38:30 +01:00
Ryx
b9447f31fd Merge upstream/main into runtime/d3d189-occlusion-tdr; drop the occlusion pause
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.
2026-11-22 15:37:50 +01:00
2828e0c892 TEST-251: GPU checks of wave64 vertex shaders split into two 32-lane halves
RADV runs the VS stage as wave64 by default and as wave32 with
RADV_PERFTEST=gewave32, so w64_graphics.py now draws seven vs_w64_*
fixtures (tiers A, B and C) both ways and compares the words each vertex
stores to the heap. vs_w64_c_lane_id is the probe that the wave size
changed. vk_harness gets VKH_VERTICES to draw enough vertices to fill
waves. Checked on an RX 9070 XT (GFX1201) and a Ryzen 9800X3D iGPU
(GFX1036), RADV Mesa 26.3.1: 21/21.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:36:08 +03:00
c7801ac6fb Merge upstream main
# Conflicts:
#	docs/d3d12_vulkan.md
#	runtime/README.md
2026-11-22 09:35:55 -05:00
5314dffcef build.py: leave ps_ij_computed out under the PerVertexKHR fallbacks instead of failing the batch
Under LEONIDA_BARY_FALLBACK=1 or LEONIDA_F16_INTERP_FALLBACK=1 the
translator refuses ps_ij_computed (a computed I/J pair needs PerVertexKHR
inputs, which both fallbacks take away). build.py counted that as a
missing module and exited before publishing anything, so check.py then
reported 0 of 147. A Mac needs LEONIDA_F16_INTERP_FALLBACK=1 for the
two-step path, so that path never ran there, and the SKIP check.py gained
in #1680 was never reached.

Leave ps_ij_computed out under either fallback with a "not built" line,
as build.py already does for ms_/gs_ shaders. Without a fallback it is
built as before, and any other missing module still fails the batch.

AI-assisted.
2026-11-22 15:35:24 +01:00
537486c875 Merge remote-tracking branch 'fork/m4-synthetic-gate' into buffer-uav-typed-counter
# Conflicts:
#	docs/d3d12_vulkan.md
#	runtime/shims/d3d12_vulkan_device.cpp
2026-11-22 15:34:07 +01:00
f209d86b8f D3D12 layer: typed buffer UAVs and UAV counters (V# FORMAT, counter V# in the slot), d3d12_buffer_uav_test
CreateUnorderedAccessView on a buffer with a typed Format writes a typed V# (GFX10_FORMAT code, element size as
stride, element count, OOB_SELECT structured, the format's own DST_SEL), and a structured view with pCounterResource +
CounterOffsetInBytes writes a second raw 4-byte V# in the upper 16 bytes of the slot (a hypothesis for the console
contract, documented in section 3.4). The combinations D3D12 documents as invalid leave a null slot.

d3d12_buffer_uav_test runs two hand-written RDNA2 compute shaders through the translator (typed store/load/atomic on
five formats with NUM_RECORDS as the bound; append by 256 lanes and consume by 128 on a counter at offset 4096, read
back with CopyBufferRegion) against a CPU reference, then compares typed-buffer and counter clears with the host D3D12
runtime on the same adapter (LUID).

Depends on: #1791

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:33:50 +01:00
57f57a825f runtime: allow explicit Texture1D SRVs on 1D texture arrays to select slice 0 2026-11-22 15:33:25 +01:00
cd6e21be84 Translator: tbuffer_store_format_* with the instruction's format
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>
2026-11-22 16:33:18 +02:00
6933e0c99e Tests: synchronize vk_presenter_sync_test reader with condition_variable and join before EXPECT 2026-11-22 17:33:13 +03:00
e550c82375 d3d12_vulkan_device_test: #1674's tiled-texture wait uses a new fence value
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>
2026-11-22 09:32:25 -05:00
5c66e611f0 vk_pipeline_check: a missing, unreadable or empty index.json is an error, not an empty corpus (TEST-257)
read_index did not check that the stream opened and returned an empty index,
with no error, for an empty input, so a wrong directory exited 0 after checking
nothing. Both now set the error (exit 2, before Vulkan is loaded); a valid {}
stays an intentionally empty index. tests/test_vk_pipeline_check_index.py covers
missing, empty, whitespace-only, malformed and {} (no GPU needed).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 09:31:48 -05:00
c5edaf72f7 Add ps_mandelbrot: a divergent backward loop with EXEC masking
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>
2026-11-22 15:30:42 +01:00
9fd1aaed66 XDXR: CopyRaytracingAccelerationStructure (clone, compact) and postbuild sizes
CopyRaytracingAccelerationStructure and EmitRaytracingAccelerationStructure-
PostbuildInfo were not implemented, and the postbuild descs of
BuildRaytracingAccelerationStructure were ignored.

- CLONE and COMPACT copy the structure's bytes (MODE_COPY_AS). XDXR records
  are position-independent: node pointers count from the structure's start
  and a TLAS names its BLASes by address. The size comes from the source
  header, so a copy can follow a build in the same list; the destination
  resource bounds it.
- COMPACTED_SIZE and CURRENT_SIZE (MODE_POSTBUILD) are totalSizeIn64BNodes *
  64: a build is already exactly its layout's size. Written for
  EmitRaytracingAccelerationStructurePostbuildInfo and for each postbuild
  desc of a build, after it.
- New IR commands CopyAccelerationStructure and AccelerationStructurePostbuild.
  Serialization, deserialization and tools visualization are refused at
  replay. With LEONIDA_RT_AS=khr the postbuild descs stay ignored, as before.
- vk_xdxr_build_test: a clone of blas_random, its COMPACTED_SIZE (== layout
  size), a compaction into exactly that size with a guard word after it, and
  a clone of the refitted TLAS.
- d3d12_xdxr_rt_test: EmitRaytracingAccelerationStructurePostbuildInfo for
  both structures and a TLAS rebuild with a CURRENT_SIZE desc (all equal to
  the prebuild sizes), then COMPACT into a buffer of that size, checked as
  d3d12_blas_compacted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:29:57 +01:00
d38daa4e9b runtime: implement ID3D12Device1::CreatePipelineLibrary and ID3D12PipelineLibrary1 2026-11-22 15:26:27 +01:00
629bcb2d99 d3d12: map the 11 R8/R16 and A4B4G4R4 formats the host creates
vulkan_format() had no entry for R16_UINT, R16_SINT, R16_SNORM, R8_UINT,
R8_SINT, R8_SNORM, R8_TYPELESS, R16G16_UNORM, R16G16_SNORM,
R16G16B16A16_SNORM or A4B4G4R4_UNORM, so CreateCommittedResource refused
them with E_INVALIDARG and FORMAT_SUPPORT answered DXGI_ERROR_UNSUPPORTED
where native D3D12 creates them (item 1 of the FORMAT_SUPPORT finding in
#1380).

A4B4G4R4_UNORM keeps alpha in bits 0-3 and red in 12-15 (cleared and
read back on native D3D12, RX 9070 XT and WARP), which is Vulkan's
R4G4B4A4_UNORM_PACK16; its T# row reads that as W, Z, Y, X.

Copies get the formats' texel sizes, D16 copies pair with R16 SNORM/UINT/
SINT like the other R16_TYPELESS members, and the colour-resolve check
refuses every integer format by numeric class instead of a list that
missed R8/R16 and the SINT forms of R8G8B8A8, R32 and R32G32B32A32.

Tests: d3d12_vulkan_device creates each format (as the host does), copies
a 4x4 upload in and back out bit for bit, and clears an A4B4G4R4 render
target to R, G, B and A; d3d12_descriptor_test samples A4B4G4R4 through
a T# alongside B4G4R4A4 and B5G5R5A1.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:26:19 +01:00
499c608c0f test(d3d12): reset slot 67 PSOs before device refcount check in d3d12_compute_test 2026-11-22 19:56:14 +05:30
e0416ce29d vk_pipeline_check: --isolate runs batches in child processes and records a module that kills the driver as failed (TEST-248)
--isolate (POSIX only; an error on Windows) runs the check in child processes
over --isolate-batch modules at a time. A child killed by a signal has its
batch bisected to the module, which is reported as MODULE CRASH, counted as a
failed pipeline and makes the exit status 1; the rest is checked as usual.
Children share cache.bin one after another (atomic saves). The test hook
VK_PIPELINE_CHECK_SIMULATE_CRASH=<name substring>[:SIGNAL] raises a signal
before a matching pipeline is created, so tests/test_vk_pipeline_check_isolate.py
checks this with five hand-assembled compute shaders and no crashing driver.
Normal (non-isolated) output is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 09:25:47 -05:00
0a43f80940 Runtime: drop the Intel minimum-LOD rounding from D3D-219
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>
2026-11-22 15:25:47 +01:00
7baf4c21ac D3D-238: refuse the heap descriptions the host refuses in CreateHeap
CreateHeap checked only for a null description and a zero size. A shared
heap_desc_refusal now also refuses an alignment other than 0, 64 KiB and
4 MiB, a heap with all three DENY_* flags, and the heap properties that
heap_properties_refusal already refuses for committed resources (a type
outside the enum such as 0, a custom heap without a CPU page property or
memory pool, a non-custom heap with either). CreateHeap1, a stub until
now, wraps CreateHeap and refuses a protected session.

Tests: direct E_INVALIDARG/S_OK checks on the standalone device for both
methods, and host comparison cases in compare_invalid_arguments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:25:38 +01:00
d665490a68 runtime: check SeIncreaseBasePriorityPrivilege for global realtime queues (D3D-236) 2026-11-22 15:25:02 +01:00
ab55405c2c Tests: GPU coverage for ds_cmpst_b32 and the b64 LDS 2-address forms 2026-11-22 14:24:28 +00:00
63cd647bc7 runtime: keep the M3 occlusion oracle single-output (D3D-209)
Use a write-free single-output probe with the same rectangle and depth/stencil tests before the original MRT draw. Keep exact query and pixel comparisons and add first-pass isolation alongside the full test. AI-assisted with Codex.
2026-11-22 11:24:23 -03:00
088447e117 FSPX programs: translated by the shaders stage, found at run time by their kind-6 bytes (RT-99)
The FidelityFX DLL creates its compute pipelines from FSPX programs (docs/fspx.md): through slot 67 with the bare
kind-6 program, then through slot 62 with the DXBC container whose ACCC part holds the payload. Both ended in
E_INVALIDARG: the layer took only FSSM bytecode, the build never translated the DLL and the index had no key for it.

- make_game.py: the shaders stage unpacks the package's DLL with tools/fspx_unpack.py --disasm into
  <work>/shaders/fspx and translates it into <work>/shaders/spirv/fspx, with the same wave64 mode and fallback
  flags. The step is redone as a whole when the DLL, its tools, llvm-mc or the flags change (fspx_build.json,
  written last) and never makes the game's shaders run again.
- tools/shader_meta.py: an entry of a program without an FSSM blob gets fspx_code_sha256, the SHA-256 of
  fspx/<name>.code.
- runtime/src/shader_library.h: the library also loads <dir>/fspx/index.json and finds entries by
  fspx_code_sha256. compute_program() takes an FSSM program as before, the kind-6 bytes of an ACCC container or of a
  bare FSPX payload, and a bare kind-6 program recognized by its prologue; the directory is parsed with the DLL
  reader's rules and bounds-checked, so a malformed one is refused.
- create_compute: looks the program up by the key of its kind and uses those bytes as the code base.
- Tests: shader_library_test (parsing, malformed directories, lookup, the fspx folder), d3d12_fspx_compute_test
  (PSOs from both forms, a dispatch each, refused inputs) and tests/test_fspx_shaders_stage.py.
- Docs: the lookup in docs/fspx.md; slots 62 and 67 in d3d12_command_objects.md and d3d12_vulkan.md. The size the
  slot-67 description carries at +0x30 is kind 6's own size, read from the DLL's code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:22:54 -05:00
Ryx
7690b647a2 Runtime: restore the occlusion pause around a resolve (D3D-189)
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.
2026-11-22 15:21:49 +01:00
7f38b0755b Revert "Merge pull request #1779 from cobalt-pebble-804"
#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>
2026-11-22 09:21:42 -05:00
eebf85b60f Merge remote-tracking branch 'origin/main' into runtime-vulkan12-khr
# Conflicts:
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/test/vk_test_device.h
2026-11-22 14:21:37 +00:00
2d2eec9a75 M4 review: storage-image init only on shader-running non-copy submissions, 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>
2026-11-22 15:21:28 +01:00
8cc972b88b Merge remote-tracking branch 'origin/main' into shader-33-vs-inputs
# Conflicts:
#	runtime/test/shaders/check.py
2026-11-22 15:21:22 +01:00
ec9b6cf22b tools: text reports are written with LF line ends on every platform (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.
2026-11-22 14:20:30 +00:00