Repository navigation
Conversation
|
Tested Independent Windows/D3D12 check on exact head
The counts were identical on both adapters and both backends. For example, 16_UNORM Not tested Real-title smoke runs, full workspace test suite, other channel widths, and image format loads. The exhaustive probe covers single-channel 16-bit buffer inputs. AI use OpenAI Codex (GPT-6 family, exact variant unavailable) prepared and ran the temporary probe, checked the outputs, and drafted this report. |
|
Tested Independent Intel Arc A770 verification for #2026 on clean PR head
7 passed, 0 failed, 0 ignored, 0 skipped across seven processes. The rounding regression checked 64 UNORM and 64 SNORM output halves per backend.
Not tested Exhaustive GPU output, other normalized channel widths, D16 image loads, the parent commit, the full workspace suite, and retail-title smoke runs. AI use Codex ( |
|
Diff audit on Remaining before merge:
|
d7bd990 to
66d3cde
Compare
A D16 buffer format load packed a UNORM / SNORM channel with f32tof16 of the decoded f32: two roundings, the second toward zero on D3D12. RDNA2 rounds code / (2^w - 1) once to nearest even, so about half of all codes came back one unit in the last place low (16_UNORM 0x0801: 0x2800 for 0x2801). That value's binary expansion repeats the w-bit code, so its first 32 bits, floor((code << 32) / (2^w - 1)), decide the rounding and a tie cannot happen. Both paths; checked against exact rounding for every code at w = 2..16. xcl-dev#2026 (XCL-BT-020's third item). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
66d3cde to
83d3d05
Compare
|
Tested
The two blocks below can be copied into Regression run in the PR description. A comment by itself does not satisfy XCL's description check. main: PR head: Not tested
AI use OpenAI Codex (GPT-6, exact variant not exposed in this session) ran the tests and smoke comparisons and drafted this report from their logs. |
|
A run with vkd3d-proton as the host D3D12 (DXIL → SPIR-V through dxil-spirv, then the NVIDIA Vulkan driver), so the DXIL goes through a different compiler than the native-Windows runs here: this PR's test passes. Tested
Not tested
AI use
|
Part of #2026 (XCL-BT-020's third item, #1488). The image half follows in a second PR.
A D16 buffer format load packed a UNORM / SNORM channel with
f32tof16of the decoded f32. That's two roundings, and on D3D12 the second one rounds toward zero. RDNA2 roundscode / (2^w − 1)once, to nearest even. So about half of all codes came back one unit in the last place low: 16_UNORM0x0801gave0x2800, where RDNA2 gives0x2801.What is in it
recomp/emit.rs:norm16_repandd16_fmtin the prelude. The FormatLoad D16 channel goes throughd16_fmtinstead off32tof16.round(f · (2^w − 1)).code / (2^w − 1)has a binary expansion that repeats thew-bit code. So its first 32 bits,floor((code << 32) / (2^w − 1)), decide the rounding, and a tie can't happen.|v| / (2^(w−1) − 1)and adds the sign.f32tof16.dxil/lower_mem.rs: the same asLw::d16_fmt, at the three D16 format-load sites.recomp/tests.rs:gpu_buffer_d16_loads_of_16_bit_norms_round_once, with 64 lanes each loading their own 16_UNORM and 16_SNORM code, against exact single rounding.Tested
norm16_rep/d16_fmtagainst exact rational rounding: every code atw= 2…16, UNORM and SNORM, with the decoded value off by up to ±2 ULP (524,272 checks). No mismatches.main5ce558f(rebased; Recompiler: direct DXIL cache entries change when its sources do #1947 now keys the translated cache on thegpu/dxilsources, so there is noTRANSLATOR_VERSIONbump):mainfails with 57 of 128 halves one ULP low (for example 16_SNORM0x5b5b:0x39b5, want0x39b6). This branch passes, withXCL_DIRECT_DXIL=0and1.gpu_tests (--skip gpu_sparse_vram), with the whole stack (Recompiler: D16 format loads of UNORM / SNORM data round once to nearest #2027, Recompiler: D16 image reads of UNORM / SNORM texels round once to nearest #2030, Recompiler: D16 image loads of 32-bit integer texels saturate to 16 bits #2042): 135 passed withXCL_DIRECT_DXIL=0; with1, 134 passed and 1 failed,gpu_image_get_resinfo_1d_array, which fails the same way onmain5ce558f(Direct DXIL: image_get_resinfo of a 1D array gives the layers in y #2046 fixes it).dxil::andbuffer_formatunits: 138 passed.Regression run
I have no retail title here. Could someone with one post the
xcl-smokeblocks formainand this head?Not tested: AMD, titles. Conflicts with #1977 in the same packing expressions (it saturates the integer side, this changes the float side); whichever merges second keeps both.
AI-assisted (Claude Code). Synthetic tests only.
🤖 Generated with Claude Code