meta: parallel contributions are outpacing a shared development line #215

Closed
opened 2026-11-21 18:32:30 +00:00 by raulmoracode · 14 comments
raulmoracode commented 2026-11-21 18:32:30 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by raulmoracode on 2026-11-21T18:32:30Z.


Current integration work

Maintainer update, 23 Nov 2026.

Mainline engineering tasks

Task Status and ownership Completion
#670 · Preserve comparison sampling through the SPIR-V to HLSL bridge rwZephyr supplied the public reproducer and GPU readback and claimed the opt-in lowering and binding work. The original comparison binding stays in place and the host supplies the separate ordinary binding. The #656 ballot fix is on main. Reproduce DXC's diagnostic from source, preserve the selected comparison form's semantics, and match an independent compute readback on WARP and a capable GPU. Keep a wrong-reference control. Recount the same scan cohort separately.
#671 · Run the translated compute–mesh–pixel chain from a source-built PE entry grahamster2 claimed the one-frame integration. The PE-entry contract from #560 and the public GPU chain from #658 are on main. Native Windows, pe_map and AOT agree on the request, exit status and full frame for two palettes. The stale-texture control must fail the pixel comparison. Register the WARP fixture in both Windows presets.

Dependencies and work already underway

  • Single-frame PE-entry baseline. yummancito's #560 landed in 899785e after both Windows checks passed. The maintainer verification and independent RTX 3070 and WARP and AMD reports are on the PR. The baseline compares all 16,384 RGBA bytes and process exit, with mirrored-draw and unknown-request controls.
  • Persistent two-frame execution. RonLogic has a fork draft based on #560. It exercises two distinct frames on one device and queue. Acceptance requires the same two references in all three runners, a stale first-frame reference mismatch, and an early-failure case that publishes only the first frame.
  • Public mesh bridge. #553 and #559 are on main. The independent RX 9070 XT CBV swap verification is complete in #654. RonLogic has offered a source-built read-only MeshEXT fixture. Coordinate the read-only binding contract before starting overlapping work. Compare all output pixels for baseline, relocation and out-of-range cases and retain a stale-reference control. Report local stage measurements by stage and verification step.

Maintainer R0Y00 coordinates shared interfaces and merge order. Claim a step in the linked issue or PR by naming the interface and dependencies you expect to touch. Link evidence back here with the tested SHA, exact command, observed result and next open question. For smaller independent work, see the good first issue list.

The original integration proposal follows for context.


Problem

The repository is receiving more parallel changes than it has capacity to review, verify or integrate into a coherent direction. Each change is individually defensible under the current rule ("one pull request, one reviewable behavior"), but the rule says nothing about order. The result is breadth-first growth: many correct pieces, no vertical slice.

This is not a criticism of any contributor. It is a structural observation about the current throughput.

Evidence

Snapshot of main when this was written:

  • 25 open pull requests.
  • docs/experiments.md is edited by 17 of them.
  • CMakeLists.txt is edited by 11 of them.
  • tools/pe_map.cpp by 5, tests/offscreen_check.cpp by 4, tests/cpu/native_map_check.py by 4.

Recent examples of the resulting friction:

Observation Consequence
#183 (build a desktop xmem.dll) and #189 (serve the Bink shim from era_heap) pursue the same shim contract in different directions One of them has to be reframed after the other lands; effort is duplicated
A CI failure on #212 came from tests/intake/paths_check.py:118, which encoded "an unknown loader hash produces no findings" The contract lived only inside a test; a parallel change to the same behavior broke it
The three most recent merged PRs had no review comments before merge Review capacity is not keeping pace with submission
src/ contains one 32-line runtime file Every experiment re-implements its own shim, because there is no shared layer to extend

Risks

  1. Hidden contracts. When a behavior is only expressed by a test assertion, another contributor cannot see it. Changing the behavior then looks like a regression.
  2. Duplicate directions. Two PRs can implement the same missing piece in incompatible ways, and neither author knows until both are reviewed.
  3. Review depth. With 25 open PRs, the default becomes "does CI pass" rather than "is this the right change". CI does not run the hardware tests.
  4. Rebase churn. docs/experiments.md and CMakeLists.txt are edited by almost every PR, so every merge invalidates several branches.
  5. Breadth without a vertical slice. The README's central unverified claims (title CPU execution, startup, frame rate) are not moved by any single new experiment, and no experiment is required to connect to another.
  6. Evidence drift. docs/experiments.md grows faster than anyone can audit. Platform differences appear late, for example the Windows 10 in-box WARP failing pixel_aot_warp on the NLG NaN case.
  7. Incentive mismatch. Fast merges reward volume. Contributors optimise for what is rewarded.

Proposed change

A lightweight development line plus a merge rule. No code changes, no new process tooling.

Three milestones, in order:

  1. Loader usable. pe_map plus a shared shim contract, TLS data, forwarded exports. Completion: a source-built DLL maps with every import and export resolved through one documented interface.
  2. Measured startup. EXE entry point, a TLS value read on two threads, and an initialisation log compared with a normal Windows launch (#165).
  3. One real caller. Trace a higher-level caller into the Bink allocation path, as the README's CPU row asks.

Merge rule: every new pull request states which milestone it unblocks. If it unblocks none, it is welcome but goes to a visible later list rather than competing with the current milestone. The maintainer still decides what merges; the rule only makes the cost visible.

Two supporting practices:

  • A consolidation lane: the shared lowerer, the shim contract and the capability table (#166) are first-class work, not refactors to squeeze between features.
  • Review exchange: a contributor who opens a pull request reviews one outside their own area. This is a norm, not a gate.

Alternatives

  • Status quo. Keeps momentum, but the drift persists and the vertical slice stays absent.
  • Hard freeze on new experiments. Effective, but it risks losing the contributors who are currently active.
  • Area ownership. Clearer responsibility, but heavy for a project this size and it would slow down the people already doing the work.

Verification

The proposal works if, after two weeks:

  • the open pull request count stops growing;
  • most new pull requests name a milestone;
  • at least one milestone completion condition is met;
  • duplicate directions are caught before both are implemented.

None of this needs a bot or a new label. It can be written into CONTRIBUTING.md in one paragraph if the maintainer agrees.

Scope

  • No code changes, no test changes, no new dependency.
  • No retroactive closing of open pull requests.
  • No criticism of individual contributors; the examples include the author's own work.
  • No game files, dumps, distribution links or credentials.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6532787507 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218). Originally posted by [raulmoracode](https://github.com/raulmoracode) on 2026-11-21T18:32:30Z. --- ## Current integration work Maintainer update, 23 Nov 2026. ### Mainline engineering tasks | Task | Status and ownership | Completion | | --- | --- | --- | | #670 · Preserve comparison sampling through the SPIR-V to HLSL bridge | `rwZephyr` supplied the public reproducer and GPU readback and claimed the opt-in lowering and binding work. The original comparison binding stays in place and the host supplies the separate ordinary binding. The #656 ballot fix is on main. | Reproduce DXC's diagnostic from source, preserve the selected comparison form's semantics, and match an independent compute readback on WARP and a capable GPU. Keep a wrong-reference control. Recount the same scan cohort separately. | | #671 · Run the translated compute–mesh–pixel chain from a source-built PE entry | grahamster2 [claimed the one-frame integration](https://github.com/R0Y00/Xbox2Windows/issues/671#issuecomment-7084139376). The PE-entry contract from #560 and the public GPU chain from #658 are on main. | Native Windows, `pe_map` and AOT agree on the request, exit status and full frame for two palettes. The stale-texture control must fail the pixel comparison. Register the WARP fixture in both Windows presets. | ### Dependencies and work already underway - **Single-frame PE-entry baseline.** `yummancito`'s #560 landed in `899785e` after both Windows checks passed. The [maintainer verification](https://github.com/R0Y00/Xbox2Windows/pull/560#issuecomment-7084344423) and independent [RTX 3070 and WARP](https://github.com/R0Y00/Xbox2Windows/pull/560#issuecomment-7079761718) and [AMD](https://github.com/R0Y00/Xbox2Windows/pull/560#issuecomment-7083817737) reports are on the PR. The baseline compares all 16,384 RGBA bytes and process exit, with mirrored-draw and unknown-request controls. - **Persistent two-frame execution.** `RonLogic` has a [fork draft](https://github.com/RonLogic/Xbox2Windows/pull/1) based on #560. It exercises two distinct frames on one device and queue. Acceptance requires the same two references in all three runners, a stale first-frame reference mismatch, and an early-failure case that publishes only the first frame. - **Public mesh bridge.** #553 and #559 are on main. The independent RX 9070 XT CBV swap verification is complete in #654. `RonLogic` has [offered a source-built read-only MeshEXT fixture](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7082140867). Coordinate the read-only binding contract before starting overlapping work. Compare all output pixels for baseline, relocation and out-of-range cases and retain a stale-reference control. Report [local stage measurements](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7078989068) by stage and verification step. Maintainer `R0Y00` coordinates shared interfaces and merge order. Claim a step in the linked issue or PR by naming the interface and dependencies you expect to touch. Link evidence back here with the tested SHA, exact command, observed result and next open question. For smaller independent work, see the [good first issue list](https://github.com/R0Y00/Xbox2Windows/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). The original integration proposal follows for context. --- ## Problem The repository is receiving more parallel changes than it has capacity to review, verify or integrate into a coherent direction. Each change is individually defensible under the current rule ("one pull request, one reviewable behavior"), but the rule says nothing about **order**. The result is breadth-first growth: many correct pieces, no vertical slice. This is not a criticism of any contributor. It is a structural observation about the current throughput. ## Evidence Snapshot of `main` when this was written: - **25 open pull requests.** - `docs/experiments.md` is edited by **17 of them**. - `CMakeLists.txt` is edited by **11 of them**. - `tools/pe_map.cpp` by 5, `tests/offscreen_check.cpp` by 4, `tests/cpu/native_map_check.py` by 4. Recent examples of the resulting friction: | Observation | Consequence | |---|---| | #183 (build a desktop `xmem.dll`) and #189 (serve the Bink shim from `era_heap`) pursue the same shim contract in different directions | One of them has to be reframed after the other lands; effort is duplicated | | A CI failure on #212 came from `tests/intake/paths_check.py:118`, which encoded "an unknown loader hash produces no findings" | The contract lived only inside a test; a parallel change to the same behavior broke it | | The three most recent merged PRs had no review comments before merge | Review capacity is not keeping pace with submission | | `src/` contains one 32-line runtime file | Every experiment re-implements its own shim, because there is no shared layer to extend | ## Risks 1. **Hidden contracts.** When a behavior is only expressed by a test assertion, another contributor cannot see it. Changing the behavior then looks like a regression. 2. **Duplicate directions.** Two PRs can implement the same missing piece in incompatible ways, and neither author knows until both are reviewed. 3. **Review depth.** With 25 open PRs, the default becomes "does CI pass" rather than "is this the right change". CI does not run the hardware tests. 4. **Rebase churn.** `docs/experiments.md` and `CMakeLists.txt` are edited by almost every PR, so every merge invalidates several branches. 5. **Breadth without a vertical slice.** The README's central unverified claims (title CPU execution, startup, frame rate) are not moved by any single new experiment, and no experiment is required to connect to another. 6. **Evidence drift.** `docs/experiments.md` grows faster than anyone can audit. Platform differences appear late, for example the Windows 10 in-box WARP failing `pixel_aot_warp` on the NLG NaN case. 7. **Incentive mismatch.** Fast merges reward volume. Contributors optimise for what is rewarded. ## Proposed change A lightweight development line plus a merge rule. No code changes, no new process tooling. **Three milestones, in order:** 1. **Loader usable.** `pe_map` plus a shared shim contract, TLS data, forwarded exports. Completion: a source-built DLL maps with every import and export resolved through one documented interface. 2. **Measured startup.** EXE entry point, a TLS value read on two threads, and an initialisation log compared with a normal Windows launch (#165). 3. **One real caller.** Trace a higher-level caller into the Bink allocation path, as the README's CPU row asks. **Merge rule:** every new pull request states which milestone it unblocks. If it unblocks none, it is welcome but goes to a visible `later` list rather than competing with the current milestone. The maintainer still decides what merges; the rule only makes the cost visible. **Two supporting practices:** - A consolidation lane: the shared lowerer, the shim contract and the capability table (#166) are first-class work, not refactors to squeeze between features. - Review exchange: a contributor who opens a pull request reviews one outside their own area. This is a norm, not a gate. ## Alternatives - **Status quo.** Keeps momentum, but the drift persists and the vertical slice stays absent. - **Hard freeze on new experiments.** Effective, but it risks losing the contributors who are currently active. - **Area ownership.** Clearer responsibility, but heavy for a project this size and it would slow down the people already doing the work. ## Verification The proposal works if, after two weeks: - the open pull request count stops growing; - most new pull requests name a milestone; - at least one milestone completion condition is met; - duplicate directions are caught before both are implemented. None of this needs a bot or a new label. It can be written into `CONTRIBUTING.md` in one paragraph if the maintainer agrees. ## Scope - No code changes, no test changes, no new dependency. - No retroactive closing of open pull requests. - No criticism of individual contributors; the examples include the author's own work. - No game files, dumps, distribution links or credentials. _AI-assisted._
raulmoracode commented 2026-11-24 06:47:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by raulmoracode on 2026-11-21T18:34:01Z.


@R0Y00

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7067348963 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7067348963). Originally posted by [raulmoracode](https://github.com/raulmoracode) on 2026-11-21T18:34:01Z. --- @R0Y00
R0Y00 commented 2026-11-24 06:47:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T18:39:18Z.


Thanks for raising the integration question. #183 and #221 have landed. The one new shared milestone is #210: run the same source-built EXE natively and through static recompilation, then compare import arguments, output bytes and exit codes for two inputs. Implementation, independent Windows verification and review are all welcome on that same path. Independent contributions can continue under the existing merge criteria.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7067412836 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7067412836). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T18:39:18Z. --- Thanks for raising the integration question. #183 and #221 have landed. The one new shared milestone is #210: run the same source-built EXE natively and through static recompilation, then compare import arguments, output bytes and exit codes for two inputs. Implementation, independent Windows verification and review are all welcome on that same path. Independent contributions can continue under the existing merge criteria.
raulmoracode commented 2026-11-24 06:47:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by raulmoracode on 2026-11-21T18:42:23Z.


#210 is a good shared milestone. It is the first end-to-end comparison, and its completion condition can be checked rather than argued about. I will treat it as the line: independent verification and review on that path, including a Windows 10 19045 run with the full MSVC/SDK toolchain, since the current evidence is Windows 11.

One small guardrail from the original proposal is still worth keeping, and it does not restrict research: a new pull request states which milestone it serves. If it serves none, it can still be merged, but the cost is visible. That would have made duplicate directions show up before both were implemented.

I am not asking to close or delay anything that is already open, and I am happy to help with the #210 comparison or its Windows CI registration.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7067451128 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7067451128). Originally posted by [raulmoracode](https://github.com/raulmoracode) on 2026-11-21T18:42:23Z. --- #210 is a good shared milestone. It is the first end-to-end comparison, and its completion condition can be checked rather than argued about. I will treat it as the line: independent verification and review on that path, including a Windows 10 19045 run with the full MSVC/SDK toolchain, since the current evidence is Windows 11. One small guardrail from the original proposal is still worth keeping, and it does not restrict research: a new pull request states which milestone it serves. If it serves none, it can still be merged, but the cost is visible. That would have made duplicate directions show up before both were implemented. I am not asking to close or delay anything that is already open, and I am happy to help with the #210 comparison or its Windows CI registration. _AI-assisted._
R0Y00 commented 2026-11-24 06:47:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T18:53:36Z.


@raulmoracode, thanks for calling out the overlap. We’ll update the contributor guide and PR template. When claiming shared work, name the interface you expect to touch and link any work it depends on. When opening a PR, say which task it advances or which independent problem it solves.

Your Windows 10 build 19045 offer now has a merged reference. Please run #228 at c04e65a8a9c1a6881edaf4bdd283d35e39dac8ce in a clean checkout with x64 MSVC and the Windows SDK. From the repository root:

.\tools\dev.ps1
python -m venv out/pe-env
.\out\pe-env\Scripts\python.exe -m pip install -r requirements-dev.txt
cmake --preset dev
cmake --build --preset dev --target cpu_exe_original_lifted cpu_exe_inverted_lifted
ctest --preset dev --no-tests=error -R '^cpu_aot_exe_entry$' -V

For selector 0 the DLL should receive (0x100000303, 0xfffffffd), write 1103000000000000 and exit with 0x60d. For selector 1 the expected values are (0x30, 0x06), 3500000000000000 and 0x57. Both rows should report inversion detected. Please reply here with the Windows build, MSVC/SDK versions, commit and the two CTest rows, or the first failing command and diagnostic. That gives us an independent comparison on the same inputs as Windows CI.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7067592683 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7067592683). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T18:53:36Z. --- @raulmoracode, thanks for calling out the overlap. We’ll update the contributor guide and PR template. When claiming shared work, name the interface you expect to touch and link any work it depends on. When opening a PR, say which task it advances or which independent problem it solves. Your Windows 10 build 19045 offer now has a merged reference. Please run #228 at `c04e65a8a9c1a6881edaf4bdd283d35e39dac8ce` in a clean checkout with x64 MSVC and the Windows SDK. From the repository root: ```powershell .\tools\dev.ps1 python -m venv out/pe-env .\out\pe-env\Scripts\python.exe -m pip install -r requirements-dev.txt cmake --preset dev cmake --build --preset dev --target cpu_exe_original_lifted cpu_exe_inverted_lifted ctest --preset dev --no-tests=error -R '^cpu_aot_exe_entry$' -V ``` For selector 0 the DLL should receive (0x100000303, 0xfffffffd), write 1103000000000000 and exit with 0x60d. For selector 1 the expected values are (0x30, 0x06), 3500000000000000 and 0x57. Both rows should report inversion detected. Please reply here with the Windows build, MSVC/SDK versions, commit and the two CTest rows, or the first failing command and diagnostic. That gives us an independent comparison on the same inputs as Windows CI.
R0Y00 commented 2026-11-24 06:48:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T03:47:15Z.


A concrete change for concurrent CPU contributions landed in #444. A new translated MASM fixture can now register its differential CTest on its own first line (see CONTRIBUTING.md, under Share a reproducible finding). When resolving an existing CPU_FIXTURES insertion conflict, keep the registration in your fixture, using source or record mode as appropriate. Clean PRs with the existing mapping can land as written. This removes one shared edit from otherwise independent CPU changes.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7073778926 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7073778926). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T03:47:15Z. --- A concrete change for concurrent CPU contributions landed in #444. A new translated MASM fixture can now register its differential CTest on its own first line (see CONTRIBUTING.md, under Share a reproducible finding). When resolving an existing CPU_FIXTURES insertion conflict, keep the registration in your fixture, using source or record mode as appropriate. Clean PRs with the existing mapping can land as written. This removes one shared edit from otherwise independent CPU changes.
R0Y00 commented 2026-11-24 06:48:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T10:53:28Z.


The next comparison on the existing source-built EXE milestone is one observable draw from PE entry to exit. The current EXE already submits compute work under Windows, pe_map, and AOT, including allocation failure. We can reuse its import trace and cleanup checks.

  • Graphics review. descent81 has already submitted #544 (linked translated mesh and pixel stages) and #546 (interpolated vertex color). An independent reviewer can reproduce the two submitted heads on WARP or hardware, record the tested SHA and adapter, and report the first differing pixel or confirm the expected negative control. #544 moves a vertex and swaps output channels. #546 swaps vertex colors while keeping geometry fixed. Please put the review on the existing PR you tested.
  • CPU/GPU integration. Main development will connect a reviewed, source-built draw to the existing EXE. Acceptance is the same image under all three runners, matching import arguments, RGBA readback, release counts and exit code. Allocation failure must exit before drawing. A changed upload must visibly alter the expected output.
  • Pixel entry inputs. Main development will trace the 530 records identified in #545. Independent GPU contributors can help with a source-built D3D12 draw that distinguishes position X from Y at pixel centers. Include an asymmetric target or viewport, swapped X/Y as a failing control, and the input layout being tested. If you want to take the independent check, reply here with the fixture you plan to reuse. The production mapping stays with main development until the layout is established.

For float-to-integer work already under #360, please compare #438 and #540 against merged #545 before adding another implementation. Existing independent PRs can continue through normal review. Please link source-built fixtures and publish aggregate counts or test logs.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7078082828 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7078082828). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T10:53:28Z. --- The next comparison on the existing source-built EXE milestone is one observable draw from PE entry to exit. The current EXE already submits compute work under Windows, `pe_map`, and AOT, including allocation failure. We can reuse its import trace and cleanup checks. - **Graphics review.** descent81 has already submitted #544 (linked translated mesh and pixel stages) and #546 (interpolated vertex color). An independent reviewer can reproduce the two submitted heads on WARP or hardware, record the tested SHA and adapter, and report the first differing pixel or confirm the expected negative control. #544 moves a vertex and swaps output channels. #546 swaps vertex colors while keeping geometry fixed. Please put the review on the existing PR you tested. - **CPU/GPU integration.** Main development will connect a reviewed, source-built draw to the existing EXE. Acceptance is the same image under all three runners, matching import arguments, RGBA readback, release counts and exit code. Allocation failure must exit before drawing. A changed upload must visibly alter the expected output. - **Pixel entry inputs.** Main development will trace the 530 records identified in #545. Independent GPU contributors can help with a source-built D3D12 draw that distinguishes position X from Y at pixel centers. Include an asymmetric target or viewport, swapped X/Y as a failing control, and the input layout being tested. If you want to take the independent check, reply here with the fixture you plan to reuse. The production mapping stays with main development until the layout is established. For float-to-integer work already under #360, please compare #438 and #540 against merged #545 before adding another implementation. Existing independent PRs can continue through normal review. Please link source-built fixtures and publish aggregate counts or test logs.
RonLogic commented 2026-11-24 06:48:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T11:32:46Z.


I ran the independent SV_Position check on WARP and an RTX 4070 at 342969e. It reuses the existing full-screen triangle and RGBA32F readback with a 5×3 viewport at (2, 1) in an 8×8 target. The pixel inputs are TEXCOORD0, then SV_Position. Red and green report position X and Y.

Both adapters matched all 15 covered pixel centers and 49 clear pixels. Swapping X and Y failed at (2, 1), with (1.5, 2.5) observed against (2.5, 1.5) expected. The source and test command are in #552.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7078512469 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7078512469). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-22T11:32:46Z. --- I ran the independent `SV_Position` check on WARP and an RTX 4070 at `342969e`. It reuses the existing full-screen triangle and RGBA32F readback with a 5×3 viewport at (2, 1) in an 8×8 target. The pixel inputs are `TEXCOORD0`, then `SV_Position`. Red and green report position X and Y. Both adapters matched all 15 covered pixel centers and 49 clear pixels. Swapping X and Y failed at (2, 1), with `(1.5, 2.5)` observed against `(2.5, 1.5)` expected. The source and test command are in #552.
R0Y00 commented 2026-11-24 06:48:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T11:48:32Z.


The next GPU integration target is an entire shader stage. A Windows experiment used Leonida at f85582e2 as the external front end and SPIRV-Cross at 57e4efcc. All 26,503 archive records produced SPIR-V that passed Vulkan 1.2 validation. With stock HLSL emission, physical addressing was the first failure for 25,865 records and packed constant layout for 638.

With a local D3D12 binding prototype, the full vertex stage produced DXIL for 2,196 of 2,236 records; 2,144 built a pipeline on both the RTX 4060 Laptop and WARP. For the geometry stage, 195/195 produced DXIL and built pipelines on both adapters (four distinct compiled programs). A vertex program shared by two records drew two different triangles with a source-built pixel shader. On both adapters all 1,024 pixels matched the independent geometry reference in each draw, and reusing the first reference for the second draw detected 160 wrong pixels. Mesh, pixel and compute have only five sampled records each in this experiment. Pipeline creation and readback are tracked separately.

The bounded DWORD address window and its source-built positive and negative tests landed in #553. The whole-stage counts above used additional local prototype bindings. The next integration target is the complete mesh stage (9,282 records), with independent pixel readback before promoting the binding model. Contributors can help in parallel:

  • GPU reviewers can verify one source-built mesh + pixel pair that reads two distinguishable resources, swaps the descriptors, and checks the resulting pixels. Coordinate with #544 and #546 to reuse the existing fixtures.
  • Hardware reporters can run the #553 window test on AMD and report the commit, command, adapter, driver, Windows build, debug layer and result.
  • CPU/PE work can continue against the shared source-built EXE, with native, mapped and recompiled runs checking the same D3D12 workload and failure path.

The Windows audit used build 26200.9974, NVIDIA 32.0.16.1656 and WARP 10.0.26100.9818. The D3D12 debug layer was enabled. Merged regression and reproduction commands · CI run.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7078683712 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7078683712). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T11:48:32Z. --- The next GPU integration target is an entire shader stage. A Windows experiment used Leonida at f85582e2 as the external front end and SPIRV-Cross at 57e4efcc. All 26,503 archive records produced SPIR-V that passed Vulkan 1.2 validation. With stock HLSL emission, physical addressing was the first failure for 25,865 records and packed constant layout for 638. With a local D3D12 binding prototype, the full vertex stage produced DXIL for 2,196 of 2,236 records; 2,144 built a pipeline on both the RTX 4060 Laptop and WARP. For the geometry stage, 195/195 produced DXIL and built pipelines on both adapters (four distinct compiled programs). A vertex program shared by two records drew two different triangles with a source-built pixel shader. On both adapters all 1,024 pixels matched the independent geometry reference in each draw, and reusing the first reference for the second draw detected 160 wrong pixels. Mesh, pixel and compute have only five sampled records each in this experiment. Pipeline creation and readback are tracked separately. The bounded DWORD address window and its source-built positive and negative tests landed in #553. The whole-stage counts above used additional local prototype bindings. The next integration target is the complete mesh stage (9,282 records), with independent pixel readback before promoting the binding model. Contributors can help in parallel: - GPU reviewers can verify one source-built mesh + pixel pair that reads two distinguishable resources, swaps the descriptors, and checks the resulting pixels. Coordinate with #544 and #546 to reuse the existing fixtures. - Hardware reporters can run the #553 window test on AMD and report the commit, command, adapter, driver, Windows build, debug layer and result. - CPU/PE work can continue against the shared source-built EXE, with native, mapped and recompiled runs checking the same D3D12 workload and failure path. The Windows audit used build 26200.9974, NVIDIA 32.0.16.1656 and WARP 10.0.26100.9818. The D3D12 debug layer was enabled. [Merged regression and reproduction commands](https://github.com/R0Y00/Xbox2Windows/pull/553) · [CI run](https://github.com/R0Y00/Xbox2Windows/actions/runs/45017859965).
R0Y00 commented 2026-11-24 06:48:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T12:14:01Z.


The source-built mesh/pixel CBV swap mentioned above is now in #559. If you have an AMD adapter and would like to help, run the existing #559 mesh_cbv_order_hardware test, the #553 address-window hardware test, or both if your setup supports them. #559 should draw red at depth 0.5 and white at 0.625 after the swap, and reject the old color and depth references. #553 checks eight full-buffer results. Please put the tested SHA, exact command, adapter, driver, Windows build, debug-layer status, and first mismatch or capability skip on the PR you tested. Both fixtures are source-built.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7078966253 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7078966253). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T12:14:01Z. --- The source-built mesh/pixel CBV swap mentioned above is now in #559. If you have an AMD adapter and would like to help, run the existing #559 `mesh_cbv_order_hardware` test, the #553 address-window hardware test, or both if your setup supports them. #559 should draw red at depth 0.5 and white at 0.625 after the swap, and reject the old color and depth references. #553 checks eight full-buffer results. Please put the tested SHA, exact command, adapter, driver, Windows build, debug-layer status, and first mismatch or capability skip on the PR you tested. Both fixtures are source-built.
RonLogic commented 2026-11-24 06:48:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T16:31:32Z.


I can take a public, source-built regression for the SPIR-V-to-D3D12 mesh bridge if it fits the current plan. I have a local MeshEXT fixture that adds a read-only SRV mode to #553 and reuses the mesh readback harness from #557. The pinned SPIRV-Cross at 57e4efc emitted HLSL, DXC compiled ms_6_6, and the RTX 4070 and WARP matched all 1,024 pixels for each of four cases: baseline, relocated offsets, unaligned read, and a read outside the SRV. An old-image control rejected the relocated draw at every pixel. The working branch uses only source-built data.

The proposed interface is an optional read-only mode in tools/spirv_address_window.py and one optional CTest draw. The fixture targets the public bridge and descriptor bounds. Does this overlap with a fixture or binding change you already plan to publish from the whole-stage experiment? I will hold the PR until we settle that.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7082140867 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7082140867). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-22T16:31:32Z. --- I can take a public, source-built regression for the SPIR-V-to-D3D12 mesh bridge if it fits the current plan. I have a local MeshEXT fixture that adds a read-only SRV mode to #553 and reuses the mesh readback harness from #557. The pinned SPIRV-Cross at `57e4efc` emitted HLSL, DXC compiled `ms_6_6`, and the RTX 4070 and WARP matched all 1,024 pixels for each of four cases: baseline, relocated offsets, unaligned read, and a read outside the SRV. An old-image control rejected the relocated draw at every pixel. The working branch uses only source-built data. The proposed interface is an optional read-only mode in `tools/spirv_address_window.py` and one optional CTest draw. The fixture targets the public bridge and descriptor bounds. Does this overlap with a fixture or binding change you already plan to publish from the whole-stage experiment? I will hold the PR until we settle that. AI-assisted.
RonLogic commented 2026-11-24 06:48:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T17:09:43Z.


I’m prototyping a follow-up to #560. The same source-built EXE requests two distinct frames on one D3D12 device and queue, with exact readback references through native Windows, pe_map, and AOT. The controls reuse the first frame’s shader input and fail before the second submission. The existing draw_request/draw_frame imports and single-frame cases are preserved.

The draft on my fork targets the exact #560 head, so its diff contains just the follow-up. All five focused CTest entries passed in Debug and Release on RTX 4070 and WARP. Is anyone already working on persistent draw state for this fixture?

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7082625167 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7082625167). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-22T17:09:43Z. --- I’m prototyping a follow-up to #560. The same source-built EXE requests two distinct frames on one D3D12 device and queue, with exact readback references through native Windows, pe_map, and AOT. The controls reuse the first frame’s shader input and fail before the second submission. The existing draw_request/draw_frame imports and single-frame cases are preserved. The [draft on my fork](https://github.com/RonLogic/Xbox2Windows/pull/1) targets the exact #560 head, so its diff contains just the follow-up. All five focused CTest entries passed in Debug and Release on RTX 4070 and WARP. Is anyone already working on persistent draw state for this fixture?
R0Y00 commented 2026-11-24 06:48:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T12:15:58Z.


The local external-frontend experiment has finished the mesh, pixel and compute stages on Windows. The bridge uses Leonida f85582e, SPIRV-Cross 57e4efcc, the same BRIDGE_WINDOW=4 profile, and Windows SDK 10.0.26100.0 DXC with SM 6.6 and native 16-bit types. The machine ran Windows 11 build 26200.9974 with the D3D12 debug layer enabled, an RTX 4060 Laptop GPU on 32.0.16.1656 and WARP 10.0.26100.9818.

Stage Archive records Desktop DXIL RTX pipeline WARP pipeline Output checked on both
Mesh 9,282 8,096 7,971 8,096 1
Pixel 12,101 9,019 9,009 8,692 848
Compute 2,689 1,513 1,488 1,508 12

Counts refer to archive occurrences. The output column requires a draw or dispatch, readback against an independent reference on both adapters, and a negative control. Identical DXIL and identical fixture inputs can reuse a measurement. The output-checked records cover 1 distinct mesh DXIL binary, 35 pixel binaries and 10 compute binaries. Other records have no output-correctness result here.

  • Of the 1,630 previously timed-out RTX mesh records, 1,505 produced a pipeline on retry, 123 reached the extended 120-second limit, and 2 hit the 1,400 MiB per-process limit. DXC had 156 errors and 1,030 timeouts across the whole mesh stage.
  • Pixel had 1,390 explicit frontend errors, 1,655 DXC errors and 37 DXC timeouts. During pipeline creation, 10 records timed out on RTX and 327 reached the memory cap on WARP.
  • Compute had 807 explicit frontend errors and one frontend timeout, followed by 212 DXC errors and 156 DXC timeouts. During pipeline creation, 25 records timed out on RTX and 5 reached the memory cap on WARP.

DXC had a 90-second budget and pixel/compute pipeline creation had a 45-second budget under parallel load. No attempted pipeline returned an explicit creation error. SPIRV-Cross reported the same HLSL lowering gap for BallotBitExtract on 1,361 pixel and 807 compute records.

One local mesh program was drawn through this same bridge with two controlled matrix bindings and a source-built pixel shader. Swapping the guest descriptors moved its triangle four pixels right. Both draws covered 276 pixels; all 1,024 pixels matched the CPU raster reference per draw and per adapter. Keeping the old reference for the swapped draw caught 172 differences on both RTX 4060 Laptop and WARP.

The independent public test in #559 has passed all four CI jobs and landed in c4d5e8e. Two separate upload resources are exchanged at the root CBVs. The vertex depths change from 0.5 to 0.625 and the colors from red to white. Both the stale-color and stale-depth controls fail for the expected reason. AMD contributors can run ctest --preset dev --no-tests=error -R "^mesh_cbv_order_" -V and post the adapter, driver, Windows build, commit, debug layer and results. This test runs entirely from the public source.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7078989068 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7078989068). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T12:15:58Z. --- The local external-frontend experiment has finished the mesh, pixel and compute stages on Windows. The bridge uses Leonida f85582e, SPIRV-Cross 57e4efcc, the same `BRIDGE_WINDOW=4` profile, and Windows SDK 10.0.26100.0 DXC with SM 6.6 and native 16-bit types. The machine ran Windows 11 build 26200.9974 with the D3D12 debug layer enabled, an RTX 4060 Laptop GPU on 32.0.16.1656 and WARP 10.0.26100.9818. | Stage | Archive records | Desktop DXIL | RTX pipeline | WARP pipeline | Output checked on both | |---|---:|---:|---:|---:|---:| | Mesh | 9,282 | 8,096 | 7,971 | 8,096 | 1 | | Pixel | 12,101 | 9,019 | 9,009 | 8,692 | 848 | | Compute | 2,689 | 1,513 | 1,488 | 1,508 | 12 | Counts refer to archive occurrences. The output column requires a draw or dispatch, readback against an independent reference on both adapters, and a negative control. Identical DXIL and identical fixture inputs can reuse a measurement. The output-checked records cover 1 distinct mesh DXIL binary, 35 pixel binaries and 10 compute binaries. Other records have no output-correctness result here. - Of the 1,630 previously timed-out RTX mesh records, 1,505 produced a pipeline on retry, 123 reached the extended 120-second limit, and 2 hit the 1,400 MiB per-process limit. DXC had 156 errors and 1,030 timeouts across the whole mesh stage. - Pixel had 1,390 explicit frontend errors, 1,655 DXC errors and 37 DXC timeouts. During pipeline creation, 10 records timed out on RTX and 327 reached the memory cap on WARP. - Compute had 807 explicit frontend errors and one frontend timeout, followed by 212 DXC errors and 156 DXC timeouts. During pipeline creation, 25 records timed out on RTX and 5 reached the memory cap on WARP. DXC had a 90-second budget and pixel/compute pipeline creation had a 45-second budget under parallel load. No attempted pipeline returned an explicit creation error. SPIRV-Cross reported the same HLSL lowering gap for `BallotBitExtract` on 1,361 pixel and 807 compute records. One local mesh program was drawn through this same bridge with two controlled matrix bindings and a source-built pixel shader. Swapping the guest descriptors moved its triangle four pixels right. Both draws covered 276 pixels; all 1,024 pixels matched the CPU raster reference per draw and per adapter. Keeping the old reference for the swapped draw caught 172 differences on both RTX 4060 Laptop and WARP. The independent public test in #559 has passed all four CI jobs and landed in c4d5e8e. Two separate upload resources are exchanged at the root CBVs. The vertex depths change from 0.5 to 0.625 and the colors from red to white. Both the stale-color and stale-depth controls fail for the expected reason. AMD contributors can run `ctest --preset dev --no-tests=error -R "^mesh_cbv_order_" -V` and post the adapter, driver, Windows build, commit, debug layer and results. This test runs entirely from the public source.
rwZephyr commented 2026-11-24 06:48:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T19:06:44Z.


#670 now has a source-built sampler-split prototype and independent readback on edc2e54e7e75fcd7c0f13e98b47ba119d9a08268. The transformed fixture validated, compiled, and matched the two depth comparisons, ordinary sample, and all 13 guard words on RX 9070 XT and WARP. The wrong reference detected one mismatch on each. The full commands and source are in the linked issue. The open interface question is which component allocates the extra sampler slot and passes it to the host. AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7084117304 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7084117304). Originally posted by [rwZephyr](https://github.com/rwZephyr) on 2026-11-22T19:06:44Z. --- #670 now has a [source-built sampler-split prototype and independent readback](https://github.com/R0Y00/Xbox2Windows/issues/670#issuecomment-7084115150) on `edc2e54e7e75fcd7c0f13e98b47ba119d9a08268`. The transformed fixture validated, compiled, and matched the two depth comparisons, ordinary sample, and all 13 guard words on RX 9070 XT and WARP. The wrong reference detected one mismatch on each. The full commands and source are in the linked issue. The open interface question is which component allocates the extra sampler slot and passes it to the host. AI-assisted.
grahamster2 commented 2026-11-24 06:48:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by grahamster2 on 2026-11-22T19:08:34Z.


I've claimed #671, the translated compute–mesh–pixel chain run from the PE entry (claim: https://github.com/R0Y00/Xbox2Windows/issues/671#issuecomment-7084139376). One shared provider edit: #560's test-only tests/cpu/shim_draw_provider.cpp gets three new X2W_SHIM_DRAW_CASE values (chain0, chain1, chain-stale) that dispatch to a new file, tests/cpu/shim_chain_gpu.cpp. The draw_request/draw_frame signatures, the EXE and the AOT import table stay unchanged, and so do mesh_entry_draw.cpp and offscreen_check. This stacks on #560 and goes in after it. It's separate from RonLogic/Xbox2Windows#1, which changes shim_draw_gpu.cpp. If that lands first, I'll rebase onto it.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7084141442 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/218#issuecomment-7084141442). Originally posted by [grahamster2](https://github.com/grahamster2) on 2026-11-22T19:08:34Z. --- I've claimed #671, the translated compute–mesh–pixel chain run from the PE entry (claim: https://github.com/R0Y00/Xbox2Windows/issues/671#issuecomment-7084139376). One shared provider edit: #560's test-only `tests/cpu/shim_draw_provider.cpp` gets three new `X2W_SHIM_DRAW_CASE` values (`chain0`, `chain1`, `chain-stale`) that dispatch to a new file, `tests/cpu/shim_chain_gpu.cpp`. The `draw_request`/`draw_frame` signatures, the EXE and the AOT import table stay unchanged, and so do `mesh_entry_draw.cpp` and `offscreen_check`. This stacks on #560 and goes in after it. It's separate from RonLogic/Xbox2Windows#1, which changes `shim_draw_gpu.cpp`. If that lands first, I'll rebase onto it.
Sign in to join this conversation.
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#215
No description provided.