Shader: prove the packed screen-position input for a fullscreen composite #1622

Open
opened 2026-11-24 15:26:00 +00:00 by R0Y00 · 12 comments
R0Y00 commented 2026-11-24 15:26:00 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T15:26:00Z.


Part of #870. The final composite splits a live-in vector register into low/high 16-bit coordinates. In the current diagnostic translation that register starts at zero, so the sample coordinate stays fixed across the screen. The original input metadata for this pipeline has not yet been identified.

Claim. Open for a shader/graphics ABI contributor. Coordinate in #874 and reply here before starting. Local main development retains the executable rerun.

Deliverable. Establish how the runtime associates pixel input-enable/address masks with the exact PSO and passes them to the translator. Reuse the existing source-built gradient experiment (13×7, FXC/DXC, hardware/WARP, two register layouts). The fixture is available on main at 141617bb via PR #1634, tested at 198e4e16. The open contribution is to prove the input-mask source for the exact PSO and connect it to translation. Document the mapping evidence and the behaviour for missing or contradictory metadata. Avoid a shader-key special case or a fixed register number.

Acceptance. Add a reproducible CTest and run ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V. Check each pixel against its own coordinates, include a wrong-register control and conflicting masks. Record the fixture revision and results. The graded fixture and provenance of the two masks are separate deliverables. No dependency on the 1D SRV PR.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6585269330 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T15:26:00Z. --- Part of #870. The final composite splits a live-in vector register into low/high 16-bit coordinates. In the current diagnostic translation that register starts at zero, so the sample coordinate stays fixed across the screen. The original input metadata for this pipeline has not yet been identified. **Claim.** Open for a shader/graphics ABI contributor. Coordinate in #874 and reply here before starting. Local main development retains the executable rerun. **Deliverable.** Establish how the runtime associates pixel input-enable/address masks with the exact PSO and passes them to the translator. Reuse the existing source-built gradient experiment (13×7, FXC/DXC, hardware/WARP, two register layouts). The fixture is available on `main` at `141617bb` via [PR #1634](https://github.com/R0Y00/Xbox2Windows/pull/1634), tested at `198e4e16`. The open contribution is to prove the input-mask source for the exact PSO and connect it to translation. Document the mapping evidence and the behaviour for missing or contradictory metadata. Avoid a shader-key special case or a fixed register number. **Acceptance.** Add a reproducible CTest and run `ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V`. Check each pixel against its own coordinates, include a wrong-register control and conflicting masks. Record the fixture revision and results. The graded fixture and provenance of the two masks are separate deliverables. No dependency on the 1D SRV PR.
RenzoWit35 commented 2026-11-24 16:03:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-24T15:39:42Z.


I don't have title inputs, so I can't prove the mask source for the exact pipeline myself. I can take the title-neutral half if that is useful: a scanner under tools/startup/ that derives each pixel shader's live-in register contract from its code (registers read before written, interpolation pairs, 16-bit splits), then tests every candidate word pair in the shader header and pipeline description against that contract across a whole request directory or capture, and ranks locations by how many pipelines they are consistent with. It would come with a Python CTest on synthetic blobs with decoy words and a wrong-location control. It takes the register layout from the address mask and reports enable/address differences instead of assuming they are equal. Running it on real captures stays with you or anyone who has them. If someone with inputs wants the whole issue, they should take it instead.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136400484 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136400484). Originally posted by [RenzoWit35](https://github.com/RenzoWit35) on 2026-11-24T15:39:42Z. --- I don't have title inputs, so I can't prove the mask source for the exact pipeline myself. I can take the title-neutral half if that is useful: a scanner under `tools/startup/` that derives each pixel shader's live-in register contract from its code (registers read before written, interpolation pairs, 16-bit splits), then tests every candidate word pair in the shader header and pipeline description against that contract across a whole request directory or capture, and ranks locations by how many pipelines they are consistent with. It would come with a Python CTest on synthetic blobs with decoy words and a wrong-location control. It takes the register layout from the address mask and reports enable/address differences instead of assuming they are equal. Running it on real captures stays with you or anyone who has them. If someone with inputs wants the whole issue, they should take it instead.
MasterDomino commented 2026-11-24 16:03:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:41:55Z.


I can cover the input side that needs local records, alongside @RenzoWit35's title-neutral scanner. I have one local input with the pixel-stage records (12,101 PS records, the same population as #711), RX 9070 XT + WARP, and I can run the scanner on those records and report aggregates only (no names, hashes or disassembly).

Concretely, record-side only:

  • locate where the pixel input-enable / input-address masks (SPI_PS_INPUT_ENA / SPI_PS_INPUT_ADDR) or their equivalent live in the shader record (the FSSM image around the code, the XDAT entries, PSV0/ISG1), and report how consistently a candidate location matches each shader's live-in register contract;
  • run @RenzoWit35's scanner over the same records once it exists and post the ranking as counts;
  • report contradictory or missing metadata as its own bucket.

I won't touch the executable rerun or the runtime/translator wiring, which stay with main development. @R0Y00, is this split useful, or would you rather keep the record analysis local too? I'll wait for your answer before starting.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136461775 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136461775). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T15:41:55Z. --- I can cover the input side that needs local records, alongside @RenzoWit35's title-neutral scanner. I have one local input with the pixel-stage records (12,101 PS records, the same population as #711), RX 9070 XT + WARP, and I can run the scanner on those records and report aggregates only (no names, hashes or disassembly). Concretely, record-side only: - locate where the pixel input-enable / input-address masks (`SPI_PS_INPUT_ENA` / `SPI_PS_INPUT_ADDR`) or their equivalent live in the shader record (the FSSM image around the code, the XDAT entries, PSV0/ISG1), and report how consistently a candidate location matches each shader's live-in register contract; - run @RenzoWit35's scanner over the same records once it exists and post the ranking as counts; - report contradictory or missing metadata as its own bucket. I won't touch the executable rerun or the runtime/translator wiring, which stay with main development. @R0Y00, is this split useful, or would you rather keep the record analysis local too? I'll wait for your answer before starting. AI-assisted.
R0Y00 commented 2026-11-24 16:03:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T15:55:36Z.


Yes, please proceed with that split. @RenzoWit35, take the scanner with source-built or synthetic positive, decoy, and wrong-location controls. Report enable/address disagreements and keep candidate-mask agreement distinct from proof of packed VGPR ordering. @MasterDomino, take the local record cross-check and share aggregate matches, contradictions, and missing-data counts only. Please keep the underlying inputs and per-record details local. #1634 is already preparing the gradient fixture, so coordinate against that fixture and leave runtime wiring to main development.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136842808 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136842808). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T15:55:36Z. --- Yes, please proceed with that split. @RenzoWit35, take the scanner with source-built or synthetic positive, decoy, and wrong-location controls. Report enable/address disagreements and keep candidate-mask agreement distinct from proof of packed VGPR ordering. @MasterDomino, take the local record cross-check and share aggregate matches, contradictions, and missing-data counts only. Please keep the underlying inputs and per-record details local. #1634 is already preparing the gradient fixture, so coordinate against that fixture and leave runtime wiring to main development.
MasterDomino commented 2026-11-24 16:03:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:59:27Z.


Thanks, starting the local record cross-check now.

I'll keep the inputs and per-record details local and post only aggregate counts: matches, contradictions (including enable/address disagreements) and missing data. Candidate-mask agreement will be reported as agreement, not as proof of packed VGPR ordering. I'll check against the #1634 gradient fixture's register layouts, and once @RenzoWit35's scanner lands I'll run it over the same records and post its ranking as counts too. I'm leaving runtime and translator wiring to main development.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136943770 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136943770). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T15:59:27Z. --- Thanks, starting the local record cross-check now. I'll keep the inputs and per-record details local and post only aggregate counts: matches, contradictions (including enable/address disagreements) and missing data. Candidate-mask agreement will be reported as agreement, not as proof of packed VGPR ordering. I'll check against the #1634 gradient fixture's register layouts, and once @RenzoWit35's scanner lands I'll run it over the same records and post its ranking as counts too. I'm leaving runtime and translator wiring to main development. AI-assisted.
MasterDomino commented 2026-11-24 17:02:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T16:09:48Z.


Record-side cross-check, first pass. Source: one local input (12,101 PS records, the same population as #711), LLVM 15.0.7 disassembly. All counts are aggregates. The inputs, scripts and per-record details stay local.

Method

  • Contract from code. For each record, a linear scan finds the VGPRs read before they are written: v_interp_p1/p2 I/J operands, other reads, and 16-bit splits (v_and 0xffff, v_lshrrev 16, v_bfe ..,16,16, SDWA WORD_0/WORD_1, 16-bit converts). Read-modify-write accumulators and registers above v31 are dropped as scan artefacts.
  • Candidate locations. Every aligned word was a candidate (low and high halves): the decompressed native image outside the code (the header, plus the sections addressed by the header pointers and the image end), the XDAT entries, PSV0, SFI0 and PRIV.
  • Mask model. Each candidate value is treated as ENA = ADDR with the SPI PS input layout (IJ pairs; pull model 3; the rest one VGPR each). It agrees when every live-in lands in an enabled slot, I/J operands land on the first/second VGPR of an IJ slot, and a 16-bit split lands in POS_FIXED_PT.
  • Control. Each location is also scored with its values shuffled between records, so constant filler and common small values don't rank.

Result

One location stands out: a fixed word in the native-image header at byte 584. It sits in a register-like block next to a word that behaves like CB_SHADER_MASK (byte 592).

Records (12,101 total) Count
word present and non-zero 12,101
no live-in VGPR (contract empty) 366
contract agrees (shuffled control) 11,416 of 11,735 (7,288)
exact: no enabled non-IJ input left unread (shuffled control) 10,086 of 11,735 (2,852)
unresolved by the linear scan 319
contradiction (live-in in a disabled slot, or I/J misplaced) 0
  • The 319 unresolved. In every one, the register is first read after a branch and written later in program order, so they look like loop-carried values. They need a CFG-aware contract to settle. I'm not counting them as matches.
  • Enabled but never read (loose matches only): POS_X 1,098, POS_Y 1,003, POS_Z 150, POS_W 94, FRONT_FACE 30, PERSP_CENTER 1,480. PERSP_CENTER is set in all 12,101 records, including those with no barycentric read. That fits the input layout always allocating it: position-only shaders read position from v2/v3.

PSV0 cross-check (independent of the code)

  • Barycentric bits. In all 12,101 records, the IJ bits the declared interpolation modes need are set. Only perspective-center interpolation appears here, so this does not test centroid, sample or noperspective.
  • Front face. Never set without a declaration. Declared but not enabled: 1,609 (the input is not read).
  • Position (bits 8-11). Never set without a declaration. Declared but not enabled: 1,869.
  • Sample index and coverage. Neither is declared or enabled anywhere.

Missing data and limits

  • No separate address word. No second location carries an ADDR-like value (outside coincidences on the value 0x2), so these records store one mask. The data is consistent with ENA = ADDR, which is what the translator accepts today. The runtime may still derive ADDR differently, and this doesn't show how.
  • No POS_FIXED_PT. Bit 15 is clear in all 12,101 records, and the code scan finds no 16-bit split of a live-in. This population can't provide evidence for the packed screen-position order. That evidence has to come from the #1634 fixture on hardware. It also suggests the packed composite's mask comes from somewhere other than these pixel records.
  • What this shows. This is agreement between one header word, the code's register use and PSV0. It doesn't prove the runtime reads the word, how it reaches the exact PSO, or the packed VGPR order.

When @RenzoWit35's scanner lands, I'll run it over the same records and post its ranking as counts. I can also add a CFG-aware pass for the 319 if that helps.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7137219504 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7137219504). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T16:09:48Z. --- Record-side cross-check, first pass. Source: one local input (12,101 PS records, the same population as #711), LLVM 15.0.7 disassembly. All counts are aggregates. The inputs, scripts and per-record details stay local. ## Method - **Contract from code.** For each record, a linear scan finds the VGPRs read before they are written: `v_interp_p1`/`p2` I/J operands, other reads, and 16-bit splits (`v_and 0xffff`, `v_lshrrev 16`, `v_bfe ..,16,16`, SDWA `WORD_0`/`WORD_1`, 16-bit converts). Read-modify-write accumulators and registers above v31 are dropped as scan artefacts. - **Candidate locations.** Every aligned word was a candidate (low and high halves): the decompressed native image outside the code (the header, plus the sections addressed by the header pointers and the image end), the XDAT entries, PSV0, SFI0 and PRIV. - **Mask model.** Each candidate value is treated as ENA = ADDR with the SPI PS input layout (IJ pairs; pull model 3; the rest one VGPR each). It agrees when every live-in lands in an enabled slot, I/J operands land on the first/second VGPR of an IJ slot, and a 16-bit split lands in POS_FIXED_PT. - **Control.** Each location is also scored with its values shuffled between records, so constant filler and common small values don't rank. ## Result One location stands out: a fixed word in the native-image header at byte 584. It sits in a register-like block next to a word that behaves like `CB_SHADER_MASK` (byte 592). | Records (12,101 total) | Count | |---|---| | word present and non-zero | 12,101 | | no live-in VGPR (contract empty) | 366 | | contract agrees (shuffled control) | 11,416 of 11,735 (7,288) | | exact: no enabled non-IJ input left unread (shuffled control) | 10,086 of 11,735 (2,852) | | unresolved by the linear scan | 319 | | contradiction (live-in in a disabled slot, or I/J misplaced) | 0 | - **The 319 unresolved.** In every one, the register is first read after a branch and written later in program order, so they look like loop-carried values. They need a CFG-aware contract to settle. I'm not counting them as matches. - **Enabled but never read** (loose matches only): POS_X 1,098, POS_Y 1,003, POS_Z 150, POS_W 94, FRONT_FACE 30, PERSP_CENTER 1,480. PERSP_CENTER is set in all 12,101 records, including those with no barycentric read. That fits the input layout always allocating it: position-only shaders read position from v2/v3. ## PSV0 cross-check (independent of the code) - **Barycentric bits.** In all 12,101 records, the IJ bits the declared interpolation modes need are set. Only perspective-center interpolation appears here, so this does not test centroid, sample or noperspective. - **Front face.** Never set without a declaration. Declared but not enabled: 1,609 (the input is not read). - **Position (bits 8-11).** Never set without a declaration. Declared but not enabled: 1,869. - **Sample index and coverage.** Neither is declared or enabled anywhere. ## Missing data and limits - **No separate address word.** No second location carries an ADDR-like value (outside coincidences on the value `0x2`), so these records store one mask. The data is consistent with ENA = ADDR, which is what the translator accepts today. The runtime may still derive ADDR differently, and this doesn't show how. - **No POS_FIXED_PT.** Bit 15 is clear in all 12,101 records, and the code scan finds no 16-bit split of a live-in. This population can't provide evidence for the packed screen-position order. That evidence has to come from the #1634 fixture on hardware. It also suggests the packed composite's mask comes from somewhere other than these pixel records. - **What this shows.** This is agreement between one header word, the code's register use and PSV0. It doesn't prove the runtime reads the word, how it reaches the exact PSO, or the packed VGPR order. When @RenzoWit35's scanner lands, I'll run it over the same records and post its ranking as counts. I can also add a CFG-aware pass for the 319 if that helps. AI-assisted.
R0Y00 commented 2026-11-24 17:02:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T16:19:38Z.


Thanks for separating candidate agreement, the shuffled controls and the unresolved branches. With no POS_FIXED_PT bit in this population, the most useful next evidence is an exact PSO association and source-built decoy controls for distinct enable and address masks. Keep the 319 CFG-ambiguous records as unresolved for now. Please compare the scanner ranking when it is ready and continue to use #1634 for the packed-register readback.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7137484309 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7137484309). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T16:19:38Z. --- Thanks for separating candidate agreement, the shuffled controls and the unresolved branches. With no POS_FIXED_PT bit in this population, the most useful next evidence is an exact PSO association and source-built decoy controls for distinct enable and address masks. Keep the 319 CFG-ambiguous records as unresolved for now. Please compare the scanner ranking when it is ready and continue to use #1634 for the packed-register readback.
MasterDomino commented 2026-11-24 17:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T16:30:30Z.


Follow-up on the exact PSO association, from my local warm-cache runs on main at cb94b8ca (RX 9070 XT, first-run UI). I compared the 14 pipelines the runtime requested against the shader archive. Counts only; the requests stay local.

Requested pipelines (14) Archive match Mask evidence
3 with DXBC containers 1 exact (same HASH part); 2 not in the archive the matched record's header word agrees with the pixel code (no packed input)
11 raw-stream pipelines (code read from GPU memory) none of the 26,503 native programs in the archive (all stages) not in the archive records
  • The packed composite is one of the raw-stream pipelines. Its pixel code reads one barycentric pair in the first two VGPRs. It splits the next VGPR into 16-bit halves. The only layouts that fit are one IJ pair plus POS_FIXED_PT, with nothing else enabled. Since PERSP_CENTER is set in every archive record, the expected value is 0x8002. That is the #1634 "one earlier pair" layout. This is inferred from register use, not read from metadata.
  • No mask in the captured request. No word in what the runtime records for that pipeline has a value that both sets POS_FIXED_PT and fits the code. I checked the vertex blob, the bytes before the pixel program and the root blob.
  • So the mask comes from the pipeline description. For raw-stream pipelines, the input mask has to come from the description the title passes at creation, which the runtime doesn't capture today. The header word I found applies to the archive and container path only.

That makes the remaining association a runtime-capture question for main development: record the raw-stream pipeline description next to .a/.b/.root, then test it for an ENA/ADDR pair. Once that capture exists, I can run the comparison locally and post counts, along with @RenzoWit35's scanner ranking. The 319 CFG-ambiguous records stay unresolved as you asked, and the packed-register readback stays with #1634.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7137773797 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7137773797). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T16:30:30Z. --- Follow-up on the exact PSO association, from my local warm-cache runs on `main` at `cb94b8ca` (RX 9070 XT, first-run UI). I compared the 14 pipelines the runtime requested against the shader archive. Counts only; the requests stay local. | Requested pipelines (14) | Archive match | Mask evidence | |---|---|---| | 3 with DXBC containers | 1 exact (same `HASH` part); 2 not in the archive | the matched record's header word agrees with the pixel code (no packed input) | | 11 raw-stream pipelines (code read from GPU memory) | none of the 26,503 native programs in the archive (all stages) | not in the archive records | - **The packed composite is one of the raw-stream pipelines.** Its pixel code reads one barycentric pair in the first two VGPRs. It splits the next VGPR into 16-bit halves. The only layouts that fit are one IJ pair plus POS_FIXED_PT, with nothing else enabled. Since PERSP_CENTER is set in every archive record, the expected value is `0x8002`. That is the #1634 "one earlier pair" layout. This is inferred from register use, not read from metadata. - **No mask in the captured request.** No word in what the runtime records for that pipeline has a value that both sets POS_FIXED_PT and fits the code. I checked the vertex blob, the bytes before the pixel program and the root blob. - **So the mask comes from the pipeline description.** For raw-stream pipelines, the input mask has to come from the description the title passes at creation, which the runtime doesn't capture today. The header word I found applies to the archive and container path only. That makes the remaining association a runtime-capture question for main development: record the raw-stream pipeline description next to `.a`/`.b`/`.root`, then test it for an ENA/ADDR pair. Once that capture exists, I can run the comparison locally and post counts, along with @RenzoWit35's scanner ranking. The 319 CFG-ambiguous records stay unresolved as you asked, and the packed-register readback stays with #1634. AI-assisted.
R0Y00 commented 2026-11-24 17:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T16:41:27Z.


Thanks for checking the exact requested pipelines. The archive scan narrows where to look, while the packed mask is still inferred from the register use. The next useful result is a source-built stream with distinct enable/address masks and a decoy, then an association check on the separately captured stream description. Please keep the raw descriptions local and share the match, mismatch, and missing-data counts once the capture exists.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138057366 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7138057366). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T16:41:27Z. --- Thanks for checking the exact requested pipelines. The archive scan narrows where to look, while the packed mask is still inferred from the register use. The next useful result is a source-built stream with distinct enable/address masks and a decoy, then an association check on the separately captured stream description. Please keep the raw descriptions local and share the match, mismatch, and missing-data counts once the capture exists.
KelboLive commented 2026-11-24 18:03:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-24T17:54:02Z.


WIP: claiming this. Draft PR #1725 is up with the controls test added. Working on branch.

Environment: x64 Windows, VS Desktop C++ (MSVC), Windows SDK, DXC, CMake/Ninja, Python 3.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139866701 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7139866701). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-24T17:54:02Z. --- WIP: claiming this. Draft PR #1725 is up with the controls test added. Working on branch. Environment: x64 Windows, VS Desktop C++ (MSVC), Windows SDK, DXC, CMake/Ninja, Python 3.
ChazY11 commented 2026-11-24 20:01:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T19:50:29Z.


State of the acceptance command on main

Not claiming this issue — recording what the acceptance criterion does on today's tree, because it changes what a new
contributor would be starting.

At afddddbd (Windows 11 build 26300.9974, Intel Arc 140T 32.0.101.8132 and the in-box WARP):

ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V
1/2 Test #387: startup_packed_screen_position_warp .......   Passed  1.88 sec
2/2 Test #389: startup_packed_screen_position_hardware ...   Passed  7.78 sec
100% tests passed, 0 tests failed out of 2

tests/startup_packed_position_check.py on main already carries the controls the acceptance paragraph names:

31: for label, reg, masks, good in (
32:     ('one earlier word', 1, (0x8100, 0x8100), True),
33:     ('one earlier pair', 2, (0x8002, 0x8002), True),
35:     ('wrong register', 1, (0x8002, 0x8002), False),

So "include a wrong-register control and conflicting masks" is in place and green on both backends.

What that implies

Either the deliverable landed and the issue can be closed, or the remaining gap is narrower than the issue text suggests —
specifically the provenance of the two masks (where the runtime stores them), which the description lists as a separate
deliverable from the graded fixture. Worth saying which, so the next person claiming this does not rebuild the fixture that
is already here.

Related: #1725 adds a startup_packed_screen_position_controls CTest for the same file, and that test currently fails on
every platform — it starts the script with no arguments while main(dxc, renderer, adapter, fxc=None) requires three. I left
the details there rather than repeating them here.

  • AI-assisted.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7142663677 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7142663677). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T19:50:29Z. --- ## State of the acceptance command on `main` Not claiming this issue — recording what the acceptance criterion does on today's tree, because it changes what a new contributor would be starting. At `afddddbd` (Windows 11 build 26300.9974, Intel Arc 140T 32.0.101.8132 and the in-box WARP): ```powershell ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V ``` ```text 1/2 Test #387: startup_packed_screen_position_warp ....... Passed 1.88 sec 2/2 Test #389: startup_packed_screen_position_hardware ... Passed 7.78 sec 100% tests passed, 0 tests failed out of 2 ``` `tests/startup_packed_position_check.py` on `main` already carries the controls the acceptance paragraph names: ```text 31: for label, reg, masks, good in ( 32: ('one earlier word', 1, (0x8100, 0x8100), True), 33: ('one earlier pair', 2, (0x8002, 0x8002), True), 35: ('wrong register', 1, (0x8002, 0x8002), False), ``` So "include a wrong-register control and conflicting masks" is in place and green on both backends. ## What that implies Either the deliverable landed and the issue can be closed, or the remaining gap is narrower than the issue text suggests — specifically the *provenance* of the two masks (where the runtime stores them), which the description lists as a separate deliverable from the graded fixture. Worth saying which, so the next person claiming this does not rebuild the fixture that is already here. Related: #1725 adds a `startup_packed_screen_position_controls` CTest for the same file, and that test currently fails on every platform — it starts the script with no arguments while `main(dxc, renderer, adapter, fxc=None)` requires three. I left the details there rather than repeating them here. - AI-assisted.
roansystemlabs commented 2026-11-25 22:02:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T21:57:09Z.


I'd like to take the source-built part of this issue, since #1725 was closed without merging. If someone already has it in progress, I'll step back and review.

Scope:

  • A source-built stream pipeline whose description carries distinct input-enable and input-address masks, plus a decoy description with a different mask in the same run.
  • An association check that the translation receives the mask from the description of the exact PSO it translates, not the decoy and not a fixed register.
  • Missing or contradictory masks (ENA vs ADDR) are refused by name.
  • The existing #1634 gradient fixture is reused for the per-pixel readback; its controls stay as they are.

Evidence: WARP and an RTX 3070 with the debug layer on, ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V plus the new association checks. Negative controls: the decoy's mask, a wrong register and conflicting masks must each fail.

Runtime wiring and the executable rerun stay with main development. Results stay counts and source-built checks only.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175748372 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7175748372). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-25T21:57:09Z. --- I'd like to take the source-built part of this issue, since #1725 was closed without merging. If someone already has it in progress, I'll step back and review. Scope: - A source-built stream pipeline whose description carries distinct input-enable and input-address masks, plus a decoy description with a different mask in the same run. - An association check that the translation receives the mask from the description of the exact PSO it translates, not the decoy and not a fixed register. - Missing or contradictory masks (ENA vs ADDR) are refused by name. - The existing #1634 gradient fixture is reused for the per-pixel readback; its controls stay as they are. Evidence: WARP and an RTX 3070 with the debug layer on, `ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V` plus the new association checks. Negative controls: the decoy's mask, a wrong register and conflicting masks must each fail. Runtime wiring and the executable rerun stay with main development. Results stay counts and source-built checks only. AI-assisted.
R0Y00 commented 2026-11-25 23:02:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T22:03:41Z.


Please take the source-built association check. Reuse the existing gradient readback and prove that the selected stream PSO supplies its own ENA and ADDR masks when a decoy PSO with different masks is present. A missing or conflicting mask should give the named refusal and no translated draw. This can be reviewed using the two source-built PSOs and both backends. The local executable capture and runtime provenance for that specific composite stay with #870.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175885073 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7175885073). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T22:03:41Z. --- Please take the source-built association check. Reuse the existing gradient readback and prove that the selected stream PSO supplies its own ENA and ADDR masks when a decoy PSO with different masks is present. A missing or conflicting mask should give the named refusal and no translated draw. This can be reviewed using the two source-built PSOs and both backends. The local executable capture and runtime provenance for that specific composite stay with #870.
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#1622
No description provided.