Commit Graph

5744 Commits

Author SHA1 Message Date
8572c483bd Docs: the packed sample addresses row covers the extra arguments 2026-11-21 22:11:02 -04:00
8de6eb2875 Tests: vk_texture_test dref checks depth compare samples on a GPU 2026-11-21 22:10:21 -04:00
3dde44ecb2 Merge current main and isolate the A8 and R8 view descriptors 2026-11-21 23:09:05 -03:00
1fe06f8916 Merge pull request #698 from nicolas 2026-11-21 21:08:43 -05:00
0aa84a4490 Merge pull request #697 from SirAmong 2026-11-21 21:08:43 -05:00
6ad7bd17a1 Merge pull request #695 from SirAmong 2026-11-21 21:08:42 -05:00
11627a3975 Merge pull request #687 from nicolas 2026-11-21 21:08:41 -05:00
f68f8d5211 Merge pull request #686 from Tal Swicegood 2026-11-21 21:08:41 -05:00
69cb90ca32 Merge pull request #683 from Rafael 2026-11-21 21:08:40 -05:00
816a4e5c20 Merge pull request #678 from ismailchaka1 2026-11-21 21:08:40 -05:00
a3fc24f55d Merge pull request #675 from nicolas 2026-11-21 21:08:39 -05:00
1abfc432ad Merge pull request #668 from ismailchaka1 2026-11-21 21:08:37 -05:00
c043350916 Merge pull request #666 from SirAmong 2026-11-21 21:08:37 -05:00
460d23c335 Merge pull request #654 from AlxcBTW 2026-11-21 21:08:34 -05:00
4d0fb38834 Merge pull request #650 from Kam471 2026-11-21 21:08:34 -05:00
c77944a465 Merge pull request #647 from SirAmong 2026-11-21 21:08:33 -05:00
a3eef919b7 Merge pull request #645 from SirAmong 2026-11-21 21:08:33 -05:00
720639adbf Merge pull request #639 from FJBP-code 2026-11-21 21:08:33 -05:00
9ccadeaeaf Merge pull request #622 from SirAmong 2026-11-21 21:08:33 -05:00
36da56b1d9 Merge pull request #610 from AlxcBTW 2026-11-21 21:08:32 -05:00
89f19af545 chore: merge upstream 3D target and RGB9E5 coverage
Keep both packed and volume textures in the bindless readback test. Place the volume upload beyond the UINT texture so the RGB9E5 upload cannot overwrite its first depth slice.
2026-11-22 03:08:17 +01:00
6e1e5c5ce0 Refresh B5G5R5A1 sampling coverage after RGB9E5 support merged 2026-11-21 23:07:59 -03:00
4e1de429fd Runtime: add opt-in D3D12 call tracing 2026-11-22 03:07:36 +01:00
4b1bb248fa Docs: reconcile feature queries after the FORMAT_INFO merge 2026-11-22 02:06:26 +00:00
0b312b05c6 Runtime: report DXGI format plane counts through CheckFeatureSupport 2026-11-22 02:06:26 +00:00
527e41c2d3 Runtime: report DXGI format plane counts through CheckFeatureSupport 2026-11-22 02:06:26 +00:00
fb4a2f8b0e docs: d3d12_vulkan.md push constants on Intel Arc are not 128 B everywhere (PROC-22)
An Arc B580 (Battlemage) on Windows 11, driver 32.0.101.9175, reports
maxPushConstantsSize = 256 (#166, rtrexmass), so D3D-14's uniform-buffer
fallback never engages there. The doc said Intel Arc (Alchemist, Battlemage)
exposes 128. Section 8.1 and open question 13 now say the figure depends on
the OS or driver and name the missing piece (an Arc run on Linux/ANV); the
Linux/ANV cause itself is stated as a guess, not a finding.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 21:04:00 -05:00
7fc9d562ca Keep every link when decoding chained Ogg Opus to WAV 2026-11-21 19:03:53 -07:00
6d2303e0a7 Merge remote-tracking branch 'origin/main' into shader-36-gather-wrap
# Conflicts:
#	scripts/run_gpu_tests.py
#	tests/test_shader_checks.py
2026-11-22 03:02:50 +01:00
a71caa846f Merge remote-tracking branch 'origin/main' into bpw32-main
# Conflicts:
#	runtime/test/shaders/check.py
2026-11-22 03:02:48 +01:00
57f98f79e6 docs: stale GPU-verified rows, runner note, duplicated section, pipeline_check and valu_fuzz docstring (PROC-21)
From SuarezPM's list in #634, each point checked against main first:
- design.md: ps_scc_mask32 is no longer "not run on a GPU yet" (it passes on
  an RTX 4050 native and emulated, a Radeon 740M and, per #634, an RTX 2060
  SUPER); ps_med3_mods, the nine ps_f16_* fixtures and ms_v5_workgroup also
  pass on the RTX 4050 and the Radeon 740M.
- shader_validation.md: the GPU runners are no longer "future work" (names
  the four tools); the 16-bit/memory section was duplicated verbatim (lines
  269-292 and 335-358), the second copy is removed.
- pipeline_check.md: vk_pipeline_check does create graphics pipelines
  (vkCreateGraphicsPipelines); what it does not do is draw with them.
- valu_fuzz.py: the mem family generates dword..dwordx4 only; the docstring
  listed byte and short forms that MEM_OPS never produces.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 21:02:36 -05:00
edefec5dff docs: permlane FI=0 credits both measurements and says the fuzzer still tags it hyp (PROC-19 review)
Review of #645: the RDNA2 run is aslan2142's and the RDNA3.5 run is
AlxcBTW's, and tools/crosslane_fuzz.py still calls the FI=0 inactive-source
case unmeasured and files it as hyp_only regardless of what the translator
does, so the text no longer ties that classification to the translator.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 21:00:34 -05:00
a518a2bbf2 docs: testing.md image_load row describes this runtime's real mechanism (PROC-16 review)
Second review of #622: the runtime never reads an image's size out of a T#.
A T# that was not registered (hand-built or zeroed) misses the descriptor
hash table, gets index 0, and index 0 is a 1x1 image of zeros, so even
pixel (0,0) reads 0 here. The "(0,0) only" pattern is from the reporter's own
layer and is now labelled as a report, not reproduced.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 21:00:03 -05:00
bffc4942f3 docs: textures.md step 1 names ASSET-38 and no longer closes step 3 (PROC-18 review)
Review of #647: #576 only closes step 1 (the BC6H/BC7 block rebuilders), not
step 3 (BC6H/BC7 pixel decoders for ttpf_mips.py check), and its tracker ID
is ASSET-38 (ASSET-5 is the old #156 ID its description uses).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:59:32 -05:00
33059d6b63 D24_UNORM_S8_UINT byte-exact on GPUs without D24
The layer stores D24 as D32_SFLOAT_S8_UINT where the GPU has no D24 (the
Radeon 880M, AMD generally). Footprint copies of the depth plane now convert
through a compute pass: an upload turns the 24-bit words into the nearest
floats of d / 16777215, a readback quantises floats back (float multiply by
16777215, round to nearest even, as WARP and AMD's D3D12 driver do) and writes
0 in the unspecified top byte. Clears store the float of the quantised value,
so a texture reads back as D3D's quantisation of the clear value.

- src/depth24.h, vulkan_depth24.h, depth24_convert.comp (+ compiled SPIR-V):
  reference conversion, the converter (pipeline, scratch, descriptors freed
  once the submission completes) and the shader.
- vulkan_replay.h: depth24_as_float binding flag, convert jobs prepared with the
  list and run around the copy, depth clear value.
- depth24_convert_test: all 16777216 words to float and back, 16777216 float
  patterns against the reference, a pitched copy; d3d12_depth24_compare.h:
  5215 clear values (whole-view and rectangle) against the host.
- d3d12_copy_compare.h: the D24 case now compares upload and readback with the
  host instead of only the bit-preserving copies.

Depends on #610.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:53:51 +01:00
bc8e604cf4 Avoid descriptor table growth with a bounded slot relocation 2026-11-21 19:53:23 -06:00
e04eb2a4c3 docs: measure descriptor lookup on Apple M3 Max (D3D-56) 2026-11-21 18:53:19 -07:00
12f1dc5a48 runtime: depth-stencil views of a multisample texture array's slice range (D3D-79 part 1)
CreateDepthStencilView refused D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY, so the descriptor held an
empty TargetView and any clear through it failed when the list was recorded. Multisample textures
have one mip, so the view is {resource, mip 0, FirstArraySlice, ArraySize}; the replay already
checks the range against the image and clears through a view of those layers.

d3d12_vulkan_device_test: a 4-layer 4x multisampled D32 texture, a view of slices 1-2 captures
that range and its clear replays; a view of slices 3-4 is refused at execute
(invalid_subresource). D3D12 can't copy a multisampled texture to a buffer, so the cleared
values are not read back. Without the change the test fails at the captured-range check.

docs/d3d12_vulkan.md: drop the duplicated RTV/DSV bullet and list the new dimension. The 1D and
1D-array DSVs need 1D textures first (D3D-63, #561).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:51:42 -03:00
69e3be8bc5 Runtime: depth-plane shader-resource views of depth-stencil textures
R24_UNORM_X8_TYPELESS (D24S8) and R32_FLOAT_X8X24_TYPELESS (D32S8) views
were refused ("view format not supported for this texture: 46") and wrote
a null descriptor, so shadow maps and depth reads of these textures found
nothing. They now write a T# of the texture's own depth format
(8_24_UNORM, X24_8_32_FLOAT) with the depth in R, which set 0 views
through the depth aspect.

d3d12_descriptor_test checks both formats next to their stencil views:
same address, the depth format's code, R from X.

Depends on: #668
2026-11-22 01:49:06 +00:00
6b101b24e2 Fail pipeline checks when shader modules or pipelines fail 2026-11-21 18:46:11 -07:00
df9039e64d feat(runtime): bind single-sampled 3D texture SRVs
Volume depth belongs in the T# depth field, while its Vulkan view has a single array layer. Route matching descriptors through the existing 3D binding so a shader can select W slices and use a view-relative mip.
2026-11-22 02:45:57 +01:00
f165a13ff8 D3D-56: sweep all entries in wave-uniform cases and report unique keys 2026-11-22 02:45:53 +01:00
ed7e1ead05 D3D-61: keep alpha-only texture sampling distinct from R8 2026-11-21 22:44:35 -03:00
dd201e794e Runtime: shader-resource views of the stencil plane (D3D-75)
PlaneSlice 1 of a depth-stencil texture, viewed as X24_TYPELESS_G8_UINT
or X32_TYPELESS_G8X24_UINT, now writes an 8_UINT T# (the format of the
console's separate stencil surface) at the texture's address, with the
eight bits in G and R, B, A as 0, 0, 1, as D3D12 returns them. set 0
views it in the image's own format with the stencil aspect.

A plane past 1, plane 1 of a texture without stencil, or another view
format stays a null descriptor with a log. d3d12_descriptor_test decodes
both stencil formats and checks the refusals.
2026-11-22 01:44:24 +00:00
6495f43fec docs: design.md contract rows for the SAD, sext/flbit and lerp ops (PROC-20)
#544, #549 and #577 merged without a row in the contract table, which
AGENTS.md asks for. One row per group, each with the semantics (checked
against the RDNA2 ISA pseudocode), what is not handled (clamp on the SAD and
lerp ops) and how it was confirmed (the CPU tests added by the PR); none is
GPU-checked.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:44:05 -05:00
2b7c576eb6 docs: testing.md image_load row names the right mechanism (PROC-16 review)
The row said the shader bounds-checks image_load against the T# size. The
translator lowers image_load to OpImageFetch/OpImageRead and never compares
coordinates with the T# width/height; it is the runtime that takes the image
size from the T# (stored as size - 1), so a zeroed descriptor is a 1x1 image.
Wording from rafaelpssz's review of #622.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:42:36 -05:00
016f39c484 Merge pull request #650 from Kam471
# Conflicts:
#	docs/textures.md
2026-11-21 20:39:07 -05:00
fc92d7cc33 Merge pull request #647 from SirAmong 2026-11-21 20:39:05 -05:00
dfb2b191a3 Merge pull request #645 from SirAmong 2026-11-21 20:39:05 -05:00
d7bceb8b9c Merge pull request #643 from Vonsek
# Conflicts:
#	docs/d3d12_vulkan.md
2026-11-21 20:39:05 -05:00