docs: record gpu_alias_window_hardware on an RDNA 2 adapter #1407

Merged
Asimmimx merged 1 commit from upstream-pr/1414 into main 2026-11-24 11:16:46 +00:00
Asimmimx commented 2026-11-24 11:00:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T11:00:01Z.


Change

Records the first physical-adapter result for gpu_alias_window_hardware in docs/experiments.md. Until now the section only had a WARP measurement; the hardware variant had returned 77 because no adapter was visible.

On an AMD Radeon RX 6600 (RDNA 2) the existing-heap buffer gets GPU base 0x300076000 on every run. That address is 4 KiB aligned, with low 16 bits 0x6000, so the fixture fails at its first acceptance check, the CPU and GPU window bases are 64 KiB aligned. A local run with the three low-16-bit checks reporting instead of failing shows that the rest of the window contract holds on this adapter.

The patch only adds the measurement. It does not change the fixture or its policy. The open question is for the fixture's author and the GPU reviewer: is the low-16-bit identity of CPU and GPU addresses a requirement of the desktop window policy, so that this adapter is out of scope, or should acceptance rest on window-relative offsets alone? The new paragraph records that this is not decided.

Verification

Commit 429a8b92 (main), dev preset (Debug), Windows 11 Pro build 26300.9974, Visual Studio 18 (MSVC 19.51.36260), Windows SDK 10.0.26100.0, Python 3.12.10.

ctest --preset dev --no-tests=error -R '^gpu_alias_window_(hardware|warp)$' -V

Three runs:

Test Adapter Result GPU base
gpu_alias_window_hardware AMD Radeon RX 6600, vendor 1002, device 73ff, driver 32.0.21045.29003, debug layer enabled, 0 errors / 0 warnings Failed 3/3: the CPU and GPU window bases are 64 KiB aligned 0x300076000 every run (gpu_page_aligned=0)
gpu_alias_window_warp Microsoft Basic Render Driver 10.0.26100.9818, debug layer enabled Passed 3/3 0x200000000

The CPU base was 64 KiB aligned on every run and varied with ASLR.

Local experiment, not committed. I changed the three checks that compare the low 16 bits to print their result instead of throwing. These are the aligned window bases, the identical page offsets (pages 0 to 2) and the identical offset of the unaligned span. The hardware variant then passed 3/3:

EXPERIMENT the CPU and GPU window bases are 64 KiB aligned: DOES NOT HOLD
EXPERIMENT the CPU and GPU page offsets are identical: DOES NOT HOLD   (x3)
EXPERIMENT the unaligned CPU and GPU page offsets are identical: DOES NOT HOLD
negative outside=E_BOUNDS (0x8000000b) gpu=0x0 submitted=0
negative alignment=E_INVALIDARG (0x80070057) gpu=0x0 submitted=0
negative uncommitted=ERROR_INVALID_ADDRESS (0x800701e7) submitted=0
negative uncommitted_open=E_INVALIDARG (0x80070057) alias=empty
gpu_alias_window pages=2 offset=0x11234 bytes=0x1e000 relative_identity=yes roundtrip=yes negative_readback=unchanged mismatches=0
debug_errors=0 debug_warnings=0

After the experiment I restored the original source and rebuilt offscreen_check. The original test fails again as above.

Docs checks: python -B tests/docs_links_check.py (16 Markdown files, 322 links) and python -B tests/bidi_controls_check.py both passed.

Evidence and follow-up

No new fixture. The result comes from the existing source-built fixture tests/gpu_alias_window.cpp.

Other hardware results from the same full run on this RX 6600, not part of this PR:

  • gpu_alias_lookup_writes_hardware: the array-atomics probe reads 256, not 64, in all four buffers, and the title-address fixture itself has mismatches 0. This is the result recorded for two RDNA 4 adapters in #369, now on RDNA 2.
  • cpu_placed_dxr_hardware: in the direct Windows ray control, the float at bytes 12 to 15 reads 0x3f7fffff (1 ULP below 1.0) instead of exactly 1.0f. dxr_placed_build_hardware reports Placed BLAS/TLAS ray output differs from hit7@1, miss, masked miss. I have not checked whether the two failures share a cause.

I can post these on the relevant issues if that helps.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture. (No new fixture. WARP is the control, and the experiment kept all four negative controls.)
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6580273371 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1414). Originally posted by [Asimmimx](https://github.com/Asimmimx) on 2026-11-24T11:00:01Z. --- ## Change Records the first physical-adapter result for `gpu_alias_window_hardware` in `docs/experiments.md`. Until now the section only had a WARP measurement; the hardware variant had returned 77 because no adapter was visible. On an AMD Radeon RX 6600 (RDNA 2) the existing-heap buffer gets GPU base `0x300076000` on every run. That address is 4 KiB aligned, with low 16 bits `0x6000`, so the fixture fails at its first acceptance check, `the CPU and GPU window bases are 64 KiB aligned`. A local run with the three low-16-bit checks reporting instead of failing shows that the rest of the window contract holds on this adapter. The patch only adds the measurement. It does not change the fixture or its policy. The open question is for the fixture's author and the GPU reviewer: is the low-16-bit identity of CPU and GPU addresses a requirement of the desktop window policy, so that this adapter is out of scope, or should acceptance rest on window-relative offsets alone? The new paragraph records that this is not decided. ## Verification Commit `429a8b92` (`main`), `dev` preset (Debug), Windows 11 Pro build 26300.9974, Visual Studio 18 (MSVC 19.51.36260), Windows SDK 10.0.26100.0, Python 3.12.10. ```powershell ctest --preset dev --no-tests=error -R '^gpu_alias_window_(hardware|warp)$' -V ``` Three runs: | Test | Adapter | Result | GPU base | |---|---|---|---| | `gpu_alias_window_hardware` | AMD Radeon RX 6600, vendor `1002`, device `73ff`, driver 32.0.21045.29003, debug layer enabled, 0 errors / 0 warnings | Failed 3/3: `the CPU and GPU window bases are 64 KiB aligned` | `0x300076000` every run (`gpu_page_aligned=0`) | | `gpu_alias_window_warp` | Microsoft Basic Render Driver 10.0.26100.9818, debug layer enabled | Passed 3/3 | `0x200000000` | The CPU base was 64 KiB aligned on every run and varied with ASLR. **Local experiment, not committed.** I changed the three checks that compare the low 16 bits to print their result instead of throwing. These are the aligned window bases, the identical page offsets (pages 0 to 2) and the identical offset of the unaligned span. The hardware variant then passed 3/3: ```text EXPERIMENT the CPU and GPU window bases are 64 KiB aligned: DOES NOT HOLD EXPERIMENT the CPU and GPU page offsets are identical: DOES NOT HOLD (x3) EXPERIMENT the unaligned CPU and GPU page offsets are identical: DOES NOT HOLD negative outside=E_BOUNDS (0x8000000b) gpu=0x0 submitted=0 negative alignment=E_INVALIDARG (0x80070057) gpu=0x0 submitted=0 negative uncommitted=ERROR_INVALID_ADDRESS (0x800701e7) submitted=0 negative uncommitted_open=E_INVALIDARG (0x80070057) alias=empty gpu_alias_window pages=2 offset=0x11234 bytes=0x1e000 relative_identity=yes roundtrip=yes negative_readback=unchanged mismatches=0 debug_errors=0 debug_warnings=0 ``` After the experiment I restored the original source and rebuilt `offscreen_check`. The original test fails again as above. Docs checks: `python -B tests/docs_links_check.py` (16 Markdown files, 322 links) and `python -B tests/bidi_controls_check.py` both passed. ## Evidence and follow-up No new fixture. The result comes from the existing source-built fixture `tests/gpu_alias_window.cpp`. Other hardware results from the same full run on this RX 6600, not part of this PR: - `gpu_alias_lookup_writes_hardware`: the array-atomics probe reads 256, not 64, in all four buffers, and the title-address fixture itself has mismatches 0. This is the result recorded for two RDNA 4 adapters in #369, now on RDNA 2. - `cpu_placed_dxr_hardware`: in the direct Windows ray control, the float at bytes 12 to 15 reads `0x3f7fffff` (1 ULP below 1.0) instead of exactly `1.0f`. `dxr_placed_build_hardware` reports `Placed BLAS/TLAS ray output differs from hit7@1, miss, masked miss`. I have not checked whether the two failures share a cause. I can post these on the relevant issues if that helps. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. (No new fixture. WARP is the control, and the experiment kept all four negative controls.) - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted (Claude Code).
upstream-sync closed this pull request 2026-11-24 12:02:49 +00:00
tedin7 commented 2026-11-24 12:02:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T11:07:10Z.

Review: COMMENTED


Reviewed at commit 10ab5f9b (docs/experiments.md, 1 file, +16/-0):

  • Records gpu_alias_window_hardware behavior on AMD Radeon RX 6600 (RDNA 2, vendor 1002, device 73ff, driver 32.0.21045.29003, Windows 11 build 26300.9974) vs passing gpu_alias_window_warp (10.0.26100.9818), cleanly scoped and title-neutral.
  • Linux checks on 10ab5f9b: git diff --check clean; tests/docs_links_check.py passed (16 Markdown files, 322 links); tests/bidi_controls_check.py passed (1181 files).
  • Pure docs change; no Win2025 build required.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6038086323 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1414#pullrequestreview-6038086323). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T11:07:10Z. **Review:** COMMENTED --- Reviewed at commit `10ab5f9b` (`docs/experiments.md`, 1 file, +16/-0): - Records `gpu_alias_window_hardware` behavior on AMD Radeon RX 6600 (RDNA 2, vendor `1002`, device `73ff`, driver `32.0.21045.29003`, Windows 11 build 26300.9974) vs passing `gpu_alias_window_warp` (`10.0.26100.9818`), cleanly scoped and title-neutral. - Linux checks on `10ab5f9b`: `git diff --check` clean; `tests/docs_links_check.py` passed (16 Markdown files, 322 links); `tests/bidi_controls_check.py` passed (1181 files). - Pure docs change; no Win2025 build required.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1407
No description provided.