Skip to content

d3d12: a pipeline registers its shaders' literal S#s (they sampled through the fallback) - #2887

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
rafaelpssz:fix/literal-samplers
Nov 23, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
rafaelpssz:fix/literal-samplers

Conversation

@rafaelpssz

@rafaelpssz rafaelpssz commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Status (rebased on main 2d3369a4): round 43 merged this PR's main commit as 7be6847c, and 7b7d73f8 added the ps_m2_literal runner entry. What is left here is one small commit, 6a726e70: register_literal_samplers moves above pick_entry's comment, and its log line names what it counts, both from @zzEmmazz's review on #2906. One file, runtime/shims/d3d12_vulkan_device.cpp, +5/−4; d3d12_m2_textured passes (RTX 3060). The description below is the original one.

Claim: #2716 (new D3D item, found by TEST-524).

What was wrong

Some game shaders build their S# from immediates instead of loading it from a sampler table. One is the game's $PS_PassthroughCopy: 0x92, 0xC00000, 0x14500000, 0 = CLAMP_LAST_TEXEL, bilinear, mip point, MAX_LOD 12. The translator lists these per shader (literal_samplers in the index). Since no heap slot names such an S#, the runtime has to register it itself. docs/design.md said it does.

It didn't. rt::d3d12::register_samplers (#1169) is called only by d3d12_descriptor_test, and ShaderLibrary doesn't read literal_samplers at all. Such a shader's hash lookup therefore found the fallback sampler (index 0) and sampled with the wrong filter and address modes.

How it showed up

The TEST-524 draw is the real model, the game's VS, and $PS_PassthroughCopy through the D3D12 layer, on an RTX 3060 (driver 616.64, Vulkan SDK 1.4.363.1). It sampled a 64x64 coordinate-ramp texture and was compared with a bilinear CPU reference over 12,804 covered pixels:

worst error mean error channels over 0.002
main 0.0078 0.00195 18,616
this PR 0.00049 0.000102 0

On main every output value is a texel centre (a multiple of 1/128), which is point sampling.

How much of the game this affects

Census of the full translated corpus (26,501 shaders, literal_samplers per index entry, counts only): 6,114 shaders (23%) build at least one S# from immediates, including 3,788 PS (31% of all PS), 800 MS and 1,421 CS. They use only 19 distinct S#, among them trilinear (4,636 uses), border clamp (2,424), a depth-compare LESS_EQUAL sampler (2,318) and anisotropic ones. On main all of them sampled through the fallback. Table in the PR comments.

The change

  • ShaderEntry::literal_samplers (runtime/src/shader_library.h) is read from the index.
  • register_literal_samplers() (runtime/shims/d3d12_vulkan_device.cpp) is called by CreateGraphicsPipelineState for each stage that uses the bindless set, and by CreateComputePipelineState. It goes through bind_sampler, the same path CreateSampler and register_samplers use. It is idempotent, and a failure (no set, or a full sampler array) is logged once.
  • docs/design.md, the "Literal samplers" row: when the registration happens, the bug, and the test.

Test (no game files)

runtime/test/shaders/ps_m2_literal.asm is ps_m2 with its S# built from s_mov literals. In d3d12_m2_textured_test:

  • the index entry lists exactly those words;
  • before the PSO is created, bindless_hash_lookup of the S# key is 0 (the fallback);
  • after it is created, the lookup gives a sampler index.

On main the test fails at the "after" check (line 189: bindless_hash_lookup(device.p, key) != 0). With this change it passes.

Also passing on the RTX 3060: d3d12_descriptor, shader_library, d3d12_vulkan_device, d3d12_first_light, d3d12_translated_draw and d3d12_pipeline_library.

Thanks

By @rafaelpssz, with Claude Code (AI-assisted).

@tupacfan04

Copy link
Copy Markdown
Contributor

Code read of e77a4f8a (I didn't build it). Looks right. literal_samplers is parsed defensively (entries that aren't 4-word arrays are skipped), and the S#s are registered at pipeline creation on both the graphics path (inside the bindless branch) and the compute path, so a shader that builds its S# from immediates now finds its own sampler instead of the index-0 fallback. Registration is idempotent, and a full sampler array is logged rather than failing pipeline creation, which suits a hint like this.

AI-assisted review (Claude Code).

@whattheflop

Copy link
Copy Markdown
Contributor

AI-assisted independent review of e77a4f8ad7f61ef1b1cd4e1d13c89bdb80a41aa4 against ec8ec4c9a46c6623f1a9c125afd3566da97f1e0c, using synthetic fixtures only.

  • On Windows 11 x64 with MSVC 19.38.33145, uv CPython 3.12.13, native llvm-mc 21.1.8 and Vulkan SDK 1.4.363.0, I built d3d12_m2_textured_test at both revisions. ctest -R '^(shader_library|descriptor_table|gfx10_descriptors)$' passed 3/3 on each. The stock M2 build produced four shaders at head and three at base. The three shared modules were byte-identical.
  • I fed the same generated spirv/index.json and synthetic fssm/ps_m2_literal.fssm to a CPU probe compiled against each revision. Both ShaderLibrary::find("ps", sha256_hex(fssm)) calls found ps_m2_literal with binding_count=3. Head preserved one exact four-word tuple. make_ssharp_key and hash_descriptor_key gave 0x606295d3. gfx10::decode and vulkan_sampler gave linear min/mag, nearest mip, clamp-to-edge on all axes, LOD 0–12. Base found the shader and had no literal_samplers field.
  • The GPU preflight found a shared translator validity issue. All modules passed spirv-val --target-env vulkan1.3, but spirv-dis shows that all three fragment modules use hash lookup results to index runtime image and sampler arrays without declaring SampledImageArrayDynamicIndexing. In ps_m2_literal these are the set-0 binding-0 and binding-1 OpAccessChain indices. This falls under VUID-StandaloneSpirv-SampledImageArrayDynamicIndexing-10128. The two shared fragment modules have the same omission at base. I stopped before Vulkan pipeline creation or submission.
  • The graphics path calls registration for each selected bindless stage. The compute path calls the same helper for its selected bindless entry. Both use DeviceState::bind_sampler, which deduplicates by the padded S# key. In the stock test, literal_pso is scoped to the before/after hash lookup, and both readbacks use heap-sampler PSOs. The independent result here covers CPU metadata and sampler decode plus the call paths by source inspection. The literal hash-table transition and literal sampled pixels have no GPU result from this run.

@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Thanks @whattheflop for the careful two-revision review.

On the two open points:

  • GPU result for literal-sampled pixels. That's in TEST-524: first light with a texture — the real model through a game PS that samples a T# #2906 (TEST-524), which stacks on this PR. The game's own $PS_PassthroughCopy (literal S# 0x92, 0xC00000, 0x14500000, 0) draws a coordinate ramp through the D3D12 layer on an RTX 3060. Over 12,804 pixels the worst error is 0.00049 with this commit (bilinear, as the S# says) and 0.0078 without it (point-sampled through the fallback, every value a texel centre, 18,616 channels over 0.002). ps_m2_literal here only pins the registration (no key before the PSO, an index after it); TEST-524: first light with a texture — the real model through a game PS that samples a T# #2906 is the pixel check.
  • SampledImageArrayDynamicIndexing. Confirmed on my build: ps_m2_literal.spv declares RuntimeDescriptorArray but not SampledImageArrayDynamicIndexing, although it indexes bindings 0 and 1 with hash-lookup results. As you say, ps_m2 / ps_m2_uoff have the same omission on main, so it's translator-wide, not something this PR introduces. For the record, d3d12_m2_textured_test under LEONIDA_VK_VALIDATION=1 (Vulkan SDK 1.4.363.1, RTX 3060) exits 0 with no validation message, so the current layers don't flag VUID-10128 at run time. It's still a real spec violation, and worth its own finding: in the coordination issue since you found it. Happy to post it if you'd rather not.

@FaKL-Code

Copy link
Copy Markdown
Contributor

Tested e77a4f8 (merged onto main 77444fa) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: partial pass. The build and regressions are checked, but not the new test.

  • Clean merge; RelWithDebInfo build with no warnings that main doesn't have.
  • ctest -j 4 (all but loader): 120/120 pass, the same 8 skips as main. That includes shader_library, which parses the index with the new literal_samplers field.
  • loader run on its own: pass.
  • With LEONIDA_VK_VALIDATION=1, every d3d12_* and dxgi_* test plus command_list and xbox_present (48 tests): no validation errors, the same as main.
  • Not covered: this PC has no llvm-mc. CMake reports that d3d12_m2_textured_test and the other .asm-built tests are not built, so the new ps_m2_literal case and the register_literal_samplers path did not run here. Someone with LLVM_MC set should run d3d12_m2_textured.

AI-assisted (Claude).

@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Thanks @FaKL-Code. That covers the regressions on a second NVIDIA card: 120/120, and 48 tests clean under validation.

The gap you name is covered here, with LLVM_MC set (llvm-mc from winlibs LLVM), on an RTX 3060 (driver 616.64, Vulkan SDK 1.4.363.1):

  • d3d12_m2_textured passes with ps_m2_literal: no key before its PSO, a sampler index after it.
  • With the main version of d3d12_vulkan_device.cpp it fails at line 189: bindless_hash_lookup(device.p, key) != 0.
  • Under LEONIDA_VK_VALIDATION=1 the test exits 0.

The pixel-level check of the same path is #2906, which draws through a game PS whose S# is a literal.

@JRamos1993

Copy link
Copy Markdown
Contributor

Tested e77a4f8 merged onto main 1628210 on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:

  • Full ctest: 130/130.
  • d3d12_m2_textured: passes 20 of 20 runs, and passes under LEONIDA_VK_VALIDATION=1 with 0 validation messages.
  • Warnings: none new in the files this PR changes.

AI-assisted (Claude Code).

rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 22, 2026
…ples a T# (TEST-524)

d3d12_first_light_textured_test draws the first-light mesh through the
D3D12 layer with the game's VS and $PS_PassthroughCopy, picked by census
(780 of 12,101 PS do one image_sample and nothing else; 148 of those link
with the VS). The PS loads its T# through the table pointer in s8 and
samples with a literal S#; the root signature puts a one-SRV table at
s8:s9 behind eight padding constants.

first_light.py --texture ramp writes texture.bin, a 64x64 coordinate ramp
(texel (x, y) holds its own centre, so bilinear sampling gives back the
UV), and expected.raw, the CPU reference at every covered pixel's UV.

RTX 3060: 12,804 pixels, the same coverage as d3d12_first_light, worst
channel error 0.00028 against a 0.002 tolerance; point sampling is off by
up to 1/128, which is what this draw gave before ItsNotRexed#2887.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 22, 2026
…ples a T# (TEST-524)

d3d12_first_light_textured_test draws the first-light mesh through the
D3D12 layer with the game's VS and $PS_PassthroughCopy, picked by census
(780 of 12,101 PS do one image_sample and nothing else; 148 of those link
with the VS). The PS loads its T# through the table pointer in s8 and
samples with a literal S#; the root signature puts a one-SRV table at
s8:s9 behind eight padding constants.

first_light.py --texture ramp writes texture.bin, a 64x64 coordinate ramp
(texel (x, y) holds its own centre, so bilinear sampling gives back the
UV), and expected.raw, the CPU reference at every covered pixel's UV.

RTX 3060: 12,804 pixels, the same coverage as d3d12_first_light, worst
channel error 0.00028 against a 0.002 tolerance; point sampling is off by
up to 1/128, which is what this draw gave before ItsNotRexed#2887.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 22, 2026
…s harness path

Since the rebase onto 7e1aecf, --texture ramp exited with a TypeError:
write_textured_inputs stored "texture": "ramp" and files["texture"],
which harness_env reads as the --dds dict. The ramp's keys are now
layer_texture*; a unit test feeds harness_env a ramp manifest (fails on
the old keys). The vk_harness tests skip a ramp folder, which only the
D3D12-layer test can draw. docs/first_light.md §7: the command names its
--out, and the count without ItsNotRexed#2887 is 19,041 channels (measured here and
on three other GPUs). Found by @zzEmmazz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Two cleanups reported by @zzEmmazz on #2906, now in this PR:

  • pick_entry's comment had ended up above register_literal_samplers. The helper now comes first, so each comment sits on its own function.
  • The log line ended in "words" while it printed how many literal S#s the shader has. It now says so.

d3d12_m2_textured and d3d12_descriptor pass (RTX 3060).

rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 22, 2026
…ples a T# (TEST-524)

d3d12_first_light_textured_test draws the first-light mesh through the
D3D12 layer with the game's VS and $PS_PassthroughCopy, picked by census
(780 of 12,101 PS do one image_sample and nothing else; 148 of those link
with the VS). The PS loads its T# through the table pointer in s8 and
samples with a literal S#; the root signature puts a one-SRV table at
s8:s9 behind eight padding constants.

first_light.py --texture ramp writes texture.bin, a 64x64 coordinate ramp
(texel (x, y) holds its own centre, so bilinear sampling gives back the
UV), and expected.raw, the CPU reference at every covered pixel's UV.

RTX 3060: 12,804 pixels, the same coverage as d3d12_first_light, worst
channel error 0.00028 against a 0.002 tolerance; point sampling is off by
up to 1/128, which is what this draw gave before ItsNotRexed#2887.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 22, 2026
…s harness path

Since the rebase onto 7e1aecf, --texture ramp exited with a TypeError:
write_textured_inputs stored "texture": "ramp" and files["texture"],
which harness_env reads as the --dds dict. The ramp's keys are now
layer_texture*; a unit test feeds harness_env a ramp manifest (fails on
the old keys). The vk_harness tests skip a ramp folder, which only the
D3D12-layer test can draw. docs/first_light.md §7: the command names its
--out, and the count without ItsNotRexed#2887 is 19,041 channels (measured here and
on three other GPUs). Found by @zzEmmazz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafaelpssz

Copy link
Copy Markdown
Contributor Author

How much of the game this affects. This is a census of the full translated corpus on my 1.0.2.1 copy (spirv/index.json, 26,501 translated shaders, literal_samplers per entry), counts only.

  • 6,114 shaders (23%) build at least one S# from immediates. All of them sampled through the fallback on main.
    • By stage: 3,788 PS (31% of all 12,101 PS), 800 MS, 1,421 CS and 105 VS.
    • Per shader: 1,327 have one literal S#; 1,811 have five; up to 8.
  • Only 19 distinct literal S# exist, so the per-pipeline registration stays tiny. The most used ones, and what the fallback lost:
uses S# words what it asks for
4,636 0x92 0xC00000 0x18500000 0 clamp, bilinear, linear mip (trilinear)
3,744 0x0 0xC00000 0x18500000 0 wrap, trilinear
3,722 0x92 0xC00000 0x14500000 0 clamp, bilinear, point mip (the TEST-524 PS)
2,424 0x1B6 0xC00000 0x18500000 0 border (clamp mode 6), trilinear
2,318 0x3092 0xC00000 0x18500000 0 clamp, trilinear, depth compare LESS_EQUAL (a comparison sampler)
1,710 0x0 0xC00000 0x14500000 0 wrap, bilinear, point mip
242 + 47 + 22 + 21 …0x18F0… anisotropic (2x–4x)

So on main roughly a third of the game's pixel shaders filtered with the wrong sampler. That includes 2,318 uses of a comparison sampler, likely shadow-map PCF, which then compare-sampled through an ordinary sampler. After this PR each of those words is registered when a pipeline that uses it is created.

@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Thanks @Vonsek, an RDNA2 iGPU and a Blackwell card on 5cd7fe73 cover two drivers this PR hadn't been run on. You're in Thanks.

ItsNotRexed added a commit that referenced this pull request Nov 23, 2026
ItsNotRexed added a commit that referenced this pull request Nov 23, 2026
#2887 added the fixture to the M2 build; with no entry in OTHER_HARNESS the GPU suite reported it as
"no checker defined".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 23, 2026
…ples a T# (TEST-524)

d3d12_first_light_textured_test draws the first-light mesh through the
D3D12 layer with the game's VS and $PS_PassthroughCopy, picked by census
(780 of 12,101 PS do one image_sample and nothing else; 148 of those link
with the VS). The PS loads its T# through the table pointer in s8 and
samples with a literal S#; the root signature puts a one-SRV table at
s8:s9 behind eight padding constants.

first_light.py --texture ramp writes texture.bin, a 64x64 coordinate ramp
(texel (x, y) holds its own centre, so bilinear sampling gives back the
UV), and expected.raw, the CPU reference at every covered pixel's UV.

RTX 3060: 12,804 pixels, the same coverage as d3d12_first_light, worst
channel error 0.00028 against a 0.002 tolerance; point sampling is off by
up to 1/128, which is what this draw gave before ItsNotRexed#2887.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 23, 2026
…s harness path

Since the rebase onto 7e1aecf, --texture ramp exited with a TypeError:
write_textured_inputs stored "texture": "ramp" and files["texture"],
which harness_env reads as the --dds dict. The ramp's keys are now
layer_texture*; a unit test feeds harness_env a ramp manifest (fails on
the old keys). The vk_harness tests skip a ramp folder, which only the
D3D12-layer test can draw. docs/first_light.md §7: the command names its
--out, and the count without ItsNotRexed#2887 is 19,041 channels (measured here and
on three other GPUs). Found by @zzEmmazz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…names what it counts

pick_entry's comment had ended up above the new helper, and the log line
ended in "words" while printing the number of literal S#s. Reported by
@zzEmmazz on ItsNotRexed#2906.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 23, 2026
…ples a T# (TEST-524)

d3d12_first_light_textured_test draws the first-light mesh through the
D3D12 layer with the game's VS and $PS_PassthroughCopy, picked by census
(780 of 12,101 PS do one image_sample and nothing else; 148 of those link
with the VS). The PS loads its T# through the table pointer in s8 and
samples with a literal S#; the root signature puts a one-SRV table at
s8:s9 behind eight padding constants.

first_light.py --texture ramp writes texture.bin, a 64x64 coordinate ramp
(texel (x, y) holds its own centre, so bilinear sampling gives back the
UV), and expected.raw, the CPU reference at every covered pixel's UV.

RTX 3060: 12,804 pixels, the same coverage as d3d12_first_light, worst
channel error 0.00028 against a 0.002 tolerance; point sampling is off by
up to 1/128, which is what this draw gave before ItsNotRexed#2887.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 23, 2026
…s harness path

Since the rebase onto 7e1aecf, --texture ramp exited with a TypeError:
write_textured_inputs stored "texture": "ramp" and files["texture"],
which harness_env reads as the --dds dict. The ramp's keys are now
layer_texture*; a unit test feeds harness_env a ramp manifest (fails on
the old keys). The vk_harness tests skip a ramp folder, which only the
D3D12-layer test can draw. docs/first_light.md §7: the command names its
--out, and the count without ItsNotRexed#2887 is 19,041 channels (measured here and
on three other GPUs). Found by @zzEmmazz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Rebased the stack on main 2d3369a4, after round 43:

On an RTX 3060: test_first_light.py 40 passed, 8 skipped; d3d12_m2_textured passes; the textured draw with a game texture passes.

@evilclanker9000

Copy link
Copy Markdown
Contributor

Tested 6a726e7 on Windows 11 (MSVC BuildTools 2022, Ninja, RelWithDebInfo, -j 4; no Vulkan validation layer installed), one GPU at a time, device line confirmed: AMD Radeon RDNA2 iGPU (driver 26.10.1) and NVIDIA RTX 5080 (driver 616.92). Ran ctest -R "^(d3d12_descriptor|d3d12_m2_textured|d3d12_translated_draw|shader_library|d3d12_vulkan_device)$" (the D3D12 sampler/shader-library tests around the changed path): pass on both GPUs, 5/5 each. No game files.

AI-assisted.

@raxjinn

raxjinn commented Nov 23, 2026

Copy link
Copy Markdown

Tested 6a726e70 (no merge with main) on Windows 11 Pro 10.0.26200, NVIDIA GeForce RTX 3080 (Ampere), driver 621.35, MSVC 14.44.35207, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, Ninja, RelWithDebInfo, llvm-mc 21.1.8 (WSL): pass.

  • ctest -R "^d3d12_m2_textured$": pass, 1/1.
  • Note: the functional change is already on main as 7be6847 ("d3d12: a pipeline registers its shaders' literal S#s"). From the merge base (2d3369a) to this head, the diff only moves the pick_entry comment and changes the log_once text. With that diff reverted, d3d12_m2_textured still passes, so a GPU run cannot tell the two apart. A code read is enough for what is left.

@oVolkra

oVolkra commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 6a726e7 (merged onto main 98fa503) on RTX 3060, driver 617.14, Windows 11: pass

Ran: ctest, ctest with LEONIDA_VK_VALIDATION=1, the unregistered *_test.exe, and run_gpu_tests.py native and with LEONIDA_W64_EMULATE=1. Failures that also happen on main 98fa503 are excluded: d3d12_clear (format mismatch vs WARP, see #521).

AI-assisted: the build and test run were done with Claude Code on my machine; the numbers above are its unedited output.

@ItsNotRexed
ItsNotRexed merged commit 769d0e5 into ItsNotRexed:main Nov 23, 2026
0 of 4 checks passed
rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 23, 2026
…ples a T# (TEST-524)

d3d12_first_light_textured_test draws the first-light mesh through the
D3D12 layer with the game's VS and $PS_PassthroughCopy, picked by census
(780 of 12,101 PS do one image_sample and nothing else; 148 of those link
with the VS). The PS loads its T# through the table pointer in s8 and
samples with a literal S#; the root signature puts a one-SRV table at
s8:s9 behind eight padding constants.

first_light.py --texture ramp writes texture.bin, a 64x64 coordinate ramp
(texel (x, y) holds its own centre, so bilinear sampling gives back the
UV), and expected.raw, the CPU reference at every covered pixel's UV.

RTX 3060: 12,804 pixels, the same coverage as d3d12_first_light, worst
channel error 0.00028 against a 0.002 tolerance; point sampling is off by
up to 1/128, which is what this draw gave before ItsNotRexed#2887.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 23, 2026
…s harness path

Since the rebase onto 7e1aecf, --texture ramp exited with a TypeError:
write_textured_inputs stored "texture": "ramp" and files["texture"],
which harness_env reads as the --dds dict. The ramp's keys are now
layer_texture*; a unit test feeds harness_env a ramp manifest (fails on
the old keys). The vk_harness tests skip a ramp folder, which only the
D3D12-layer test can draw. docs/first_light.md §7: the command names its
--out, and the count without ItsNotRexed#2887 is 19,041 channels (measured here and
on three other GPUs). Found by @zzEmmazz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants