startup: apply stream rasterizer state on translated draws #1567

Manually merged
github merged 2 commits from gh-pr/1567/head into gh-pr/1567/base 2026-11-26 23:17:17 +00:00
Owner

@⁠SimSalabimse on GitHub · 2026-11-24 14:15 UTC · original
SimSalabimse:x2w-stream-rasterizer → main · +421 −12 · 7 files · 2 commits · merged 2026-11-25 14:30 UTC

Change

Slot 86 graphics streams apply a RASTERIZER or RASTERIZER1 subobject to the translated desktop pipeline. Fill, cull, and depth clip come from that subobject. RASTERIZER1 stores depth bias as a float; a value that is not an integer in the desktop int range refuses the pipeline. The desktop PSO cache key includes the rasterizer when the stream has one. A stream with no rasterizer subobject keeps solid fill, no culling, and depth clip on.

Refs #1142.

Verification

MSVC 19.42.34435 (VS 2022). WARP is Microsoft Basic Render Driver, vendor 1414, device 008c, driver 10.0.26100.8521. Hardware is NVIDIA GeForce RTX 4070 Ti, vendor 10de, device 2782, driver 32.0.16.2135. Neither preset skipped with code 77.

cmake --preset dev
cmake --build --preset dev
ctest --preset dev --no-tests=error -R "^startup_stream_" --output-on-failure

cmake --preset dev exited 0. cmake --build --preset dev exited 1 on a pre-existing error in tests/startup_dstorage_file_read_check.cpp(102) (C2664), which this change does not touch. The stream executables were built after that, and the ctest command above then exited 0. Nine tests passed:

  • startup_stream_request_warp
  • startup_stream_draw_warp
  • startup_stream_depth_warp
  • startup_stream_rasterizer_warp
  • startup_stream_rasterizer_ignore_warp
  • startup_stream_draw_hardware
  • startup_stream_depth_hardware
  • startup_stream_rasterizer_hardware
  • startup_stream_rasterizer_ignore_hardware
cmake --preset release
cmake --build --preset release
ctest --preset release --no-tests=error -R "^startup_stream_" --output-on-failure

cmake --preset release exited 0. cmake --build --preset release exited 1 on the same C2664. The stream executables were built after that, and the ctest command above then exited 0 with the same nine passes.

On both backends, back-face and front-face cull differ: one matches the no-cull readback (16 of 32 pixels colored) and the other is clear. Integral RASTERIZER1 matches RASTERIZER. Fractional depth bias 0.5 refuses the pipeline and the target stays clear. The ignore control returns failure because the readback changed; WILL_FAIL records that as a pass.

Evidence and follow-up

The fixture is source-built in tests/startup_stream_rasterizer.cpp and tests/startup_stream_rasterizer_check.py, in the same shape as startup_stream_depth. No game files and no title xgameruntime.dll.

docs/startup-runtime.md names the reproduce command. Geometry, hull, domain, and compute stages, and root-signature subobject parsing, remain open on #1142.

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.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted (Grok Build)

**@⁠SimSalabimse** on GitHub · 2026-11-24 14:15 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1567) `SimSalabimse:x2w-stream-rasterizer` → `main` · +421 −12 · 7 files · 2 commits · merged 2026-11-25 14:30 UTC ## Change Slot 86 graphics streams apply a `RASTERIZER` or `RASTERIZER1` subobject to the translated desktop pipeline. Fill, cull, and depth clip come from that subobject. `RASTERIZER1` stores depth bias as a float; a value that is not an integer in the desktop int range refuses the pipeline. The desktop PSO cache key includes the rasterizer when the stream has one. A stream with no rasterizer subobject keeps solid fill, no culling, and depth clip on. Refs #1142. ## Verification MSVC 19.42.34435 (VS 2022). WARP is Microsoft Basic Render Driver, vendor 1414, device 008c, driver 10.0.26100.8521. Hardware is NVIDIA GeForce RTX 4070 Ti, vendor 10de, device 2782, driver 32.0.16.2135. Neither preset skipped with code 77. ``` cmake --preset dev cmake --build --preset dev ctest --preset dev --no-tests=error -R "^startup_stream_" --output-on-failure ``` `cmake --preset dev` exited 0. `cmake --build --preset dev` exited 1 on a pre-existing error in `tests/startup_dstorage_file_read_check.cpp(102)` (`C2664`), which this change does not touch. The stream executables were built after that, and the ctest command above then exited 0. Nine tests passed: - `startup_stream_request_warp` - `startup_stream_draw_warp` - `startup_stream_depth_warp` - `startup_stream_rasterizer_warp` - `startup_stream_rasterizer_ignore_warp` - `startup_stream_draw_hardware` - `startup_stream_depth_hardware` - `startup_stream_rasterizer_hardware` - `startup_stream_rasterizer_ignore_hardware` ``` cmake --preset release cmake --build --preset release ctest --preset release --no-tests=error -R "^startup_stream_" --output-on-failure ``` `cmake --preset release` exited 0. `cmake --build --preset release` exited 1 on the same `C2664`. The stream executables were built after that, and the ctest command above then exited 0 with the same nine passes. On both backends, back-face and front-face cull differ: one matches the no-cull readback (16 of 32 pixels colored) and the other is clear. Integral `RASTERIZER1` matches `RASTERIZER`. Fractional depth bias 0.5 refuses the pipeline and the target stays clear. The ignore control returns failure because the readback changed; `WILL_FAIL` records that as a pass. ## Evidence and follow-up The fixture is source-built in `tests/startup_stream_rasterizer.cpp` and `tests/startup_stream_rasterizer_check.py`, in the same shape as `startup_stream_depth`. No game files and no title `xgameruntime.dll`. `docs/startup-runtime.md` names the reproduce command. Geometry, hull, domain, and compute stages, and root-signature subobject parsing, remain open on #1142. ## 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. - [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 (Grok Build)
Slot 86 RASTERIZER and RASTERIZER1 subobjects set the translated desktop
pipeline fill, cull, and depth clip. A RASTERIZER1 depth bias that is not
an integer in the desktop int range refuses the pipeline. The desktop PSO
cache key includes the rasterizer when the stream has one. A stream with
no rasterizer subobject keeps solid fill, no culling, and depth clip on.

Fixes #1142
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:17:16 +00:00
github manually merged commit d8880190d6 into gh-pr/1567/base 2026-11-26 23:17:17 +00:00
Author
Owner

@⁠Makto94 on GitHub · 2026-11-24 14:59 UTC · original · edited 2026-11-24 16:11 UTC

Hardware check of this PR at commit c3f7b3192, built in a clean worktree.

  • Adapter: NVIDIA GeForce RTX 3070 Ti, driver 32.0.16.2101 (621.01); Windows 11 Pro build 26300 (Insider)
  • Debug layer: requested by the check scripts (X2W_D3D12_DEBUG=1 in tests/startup_stream_depth_check.py and tests/startup_stream_rasterizer_check.py). All 6 tests log x2w-d3d12 debug layer: 0x00000000 enabled; the -V output has no x2w-d3d12-debug line.
  • Command: ctest --preset dev --no-tests=error -R 'startup_stream_(rasterizer|depth)' -j1 -V
Test WARP Hardware
startup_stream_depth Passed Passed
startup_stream_rasterizer Passed Passed
startup_stream_rasterizer_ignore (negative control, WILL_FAIL) Passed Passed

No capability skips. Code read: RASTERIZER1 (type 27) reuses the RASTERIZER width and rejects a non-integral or out-of-range float DepthBias; the rasterizer desc enters the PSO cache key. Note: a stream rasterizer with ConservativeRaster or ForcedSampleCount set is passed through unchanged, so PSO creation could fail on adapters without that tier — not covered by the fixture.

Edited: the first version said "debug layer not enabled explicitly". That run predates the installation of Graphics Tools on this machine and its log was not verbose, so it gives no debug-layer evidence. The results above are from a rerun of the same commit with the layer available: 6/6 passed, no skips.

**@⁠Makto94** on GitHub · 2026-11-24 14:59 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1567#issuecomment-7135277166) · edited 2026-11-24 16:11 UTC Hardware check of this PR at commit `c3f7b3192`, built in a clean worktree. - Adapter: NVIDIA GeForce RTX 3070 Ti, driver 32.0.16.2101 (621.01); Windows 11 Pro build 26300 (Insider) - Debug layer: requested by the check scripts (`X2W_D3D12_DEBUG=1` in `tests/startup_stream_depth_check.py` and `tests/startup_stream_rasterizer_check.py`). All 6 tests log `x2w-d3d12 debug layer: 0x00000000 enabled`; the `-V` output has no `x2w-d3d12-debug` line. - Command: `ctest --preset dev --no-tests=error -R 'startup_stream_(rasterizer|depth)' -j1 -V` | Test | WARP | Hardware | |---|---|---| | startup_stream_depth | Passed | Passed | | startup_stream_rasterizer | Passed | Passed | | startup_stream_rasterizer_ignore (negative control, WILL_FAIL) | Passed | Passed | No capability skips. Code read: RASTERIZER1 (type 27) reuses the RASTERIZER width and rejects a non-integral or out-of-range float DepthBias; the rasterizer desc enters the PSO cache key. Note: a stream rasterizer with ConservativeRaster or ForcedSampleCount set is passed through unchanged, so PSO creation could fail on adapters without that tier — not covered by the fixture. Edited: the first version said "debug layer not enabled explicitly". That run predates the installation of Graphics Tools on this machine and its log was not verbose, so it gives no debug-layer evidence. The results above are from a rerun of the same commit with the layer available: 6/6 passed, no skips.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 12:53 UTC · original

@⁠SimSalabimse could you rebase this branch onto current main and force-push?

GitHub reports head c3f7b319 as conflicting with main, so it cannot be merged as is.

Files that conflict with current main (cf97bee1):

  • CMakeLists.txt
  • src/startup_stubs/d3d12_draw.inl
  • src/startup_stubs/d3d12_xs_device.cpp

Commands run locally:

git fetch origin main pull/1567/head
git merge-tree --write-tree --name-only origin/main FETCH_HEAD
gh pr view 1567 --json mergeable   # CONFLICTING

Once it is rebased and CI is green it will be re-checked right away.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 12:53 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1567#issuecomment-7163007892) @⁠SimSalabimse could you rebase this branch onto current `main` and force-push? GitHub reports head `c3f7b319` as conflicting with `main`, so it cannot be merged as is. Files that conflict with current `main` (`cf97bee1`): - `CMakeLists.txt` - `src/startup_stubs/d3d12_draw.inl` - `src/startup_stubs/d3d12_xs_device.cpp` Commands run locally: ``` git fetch origin main pull/1567/head git merge-tree --write-tree --name-only origin/main FETCH_HEAD gh pr view 1567 --json mergeable # CONFLICTING ``` Once it is rebased and CI is green it will be re-checked right away. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠SimSalabimse on GitHub · 2026-11-25 13:05 UTC · original

@⁠tedin7 Rebased onto current main and force-pushed (c3f7b319 → 16301332).

Conflict resolution kept the PR’s stream RASTERIZER / RASTERIZER1 behavior and main’s newer surrounding changes (startup_stream_setup_obj, slot-57 depth / draw-depth-target tests, compute/mesh86 stream path, use_depth_stencil / indexed_rect PSO keying).

Linux could only AST-check the new Python harness; startup_stream_* WARP/hardware tests remain Windows/CI.

**@⁠SimSalabimse** on GitHub · 2026-11-25 13:05 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1567#issuecomment-7163279875) @⁠tedin7 Rebased onto current `main` and force-pushed (`c3f7b319` → `16301332`). Conflict resolution kept the PR’s stream `RASTERIZER` / `RASTERIZER1` behavior and main’s newer surrounding changes (`startup_stream_setup_obj`, slot-57 depth / draw-depth-target tests, compute/mesh86 stream path, `use_depth_stencil` / `indexed_rect` PSO keying). Linux could only AST-check the new Python harness; `startup_stream_*` WARP/hardware tests remain Windows/CI.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-24 14:25 UTC · original · reviewed

Dual-platform peer review of PR #1567 (c3f7b319a8a255feb7b5a010c99ff4ba911ceea9).

Code & Hygiene Audit

  • Scope & Clean-room: Title-neutral, focused on slot-86 RASTERIZER (type 14) and RASTERIZER1 (type 27) stream subobject parsing and application on translated draws. Merges cleanly against origin/main.
  • Correctness & Edge Cases:
    • integral_depth_bias (src/startup_stubs/d3d12_draw.inl) safely rejects NaN, out-of-range floats, and fractional values (static_cast<double>(integral) != value) before casting to INT.
    • stream_translation guards type >= 32 before 1u << type, avoiding shift UB, and verifies sizeof(type) + sizeof(parsed) <= size.
    • pipeline_for includes bound.rasterizer in the PSO cache key when bound.has_rasterizer is set, and falls back to solid fill / no cull / depth clip on when absent.
    • Minor observation (non-blocking): seen tracks 1u << type per subobject type, so a malformed stream containing both RASTERIZER (type 14) and RASTERIZER1 (type 27) would let the second overwrite the first rather than rejecting the duplicate rasterizer subobject.
  • Negative controls: startup_stream_rasterizer verifies RASTERIZER back/front cull vs. dropped subobject, RASTERIZER1 integral bias parity, fractional depth bias (0.5f) refusal, and startup_stream_rasterizer_ignore_* (WILL_FAIL).

Verification

  • Linux static checks:
    • git diff --check origin/main..HEAD: passed
    • python3 tests/docs_links_check.py: passed (16 Markdown files, 340 links)
    • python3 tests/bidi_controls_check.py: passed (1241 tracked files)
  • Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at c3f7b319a8a255feb7b5a010c99ff4ba911ceea9:
    • Debug (--preset dev): cmake --build --preset dev --target startup_stream_rasterizer d3d12_xs_shim offscreen_check -- -j 6 succeeded; ctest --preset dev -R '^startup_stream_' --parallel 4 --no-tests=error --output-on-failure — 9/9 passed (startup_stream_request_warp, startup_stream_draw_warp, startup_stream_depth_warp, startup_stream_rasterizer_warp, startup_stream_rasterizer_ignore_warp, startup_stream_draw_hardware, startup_stream_depth_hardware, startup_stream_rasterizer_hardware, startup_stream_rasterizer_ignore_hardware; note: this VM only has WARP).
    • Release /O2 (--preset release): cmake --build --preset release --target startup_stream_rasterizer d3d12_xs_shim offscreen_check -- -j 6 succeeded; ctest --preset release -R '^startup_stream_' --parallel 4 --no-tests=error --output-on-failure — 9/9 passed (same 9 tests).
**@⁠tedin7** on GitHub · 2026-11-24 14:25 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1567#pullrequestreview-6041000416) · **reviewed** Dual-platform peer review of PR #1567 (`c3f7b319a8a255feb7b5a010c99ff4ba911ceea9`). ### Code & Hygiene Audit - **Scope & Clean-room**: Title-neutral, focused on slot-86 `RASTERIZER` (type 14) and `RASTERIZER1` (type 27) stream subobject parsing and application on translated draws. Merges cleanly against `origin/main`. - **Correctness & Edge Cases**: - `integral_depth_bias` (`src/startup_stubs/d3d12_draw.inl`) safely rejects `NaN`, out-of-range floats, and fractional values (`static_cast<double>(integral) != value`) before casting to `INT`. - `stream_translation` guards `type >= 32` before `1u << type`, avoiding shift UB, and verifies `sizeof(type) + sizeof(parsed) <= size`. - `pipeline_for` includes `bound.rasterizer` in the PSO cache key when `bound.has_rasterizer` is set, and falls back to solid fill / no cull / depth clip on when absent. - **Minor observation (non-blocking)**: `seen` tracks `1u << type` per subobject type, so a malformed stream containing both `RASTERIZER` (type 14) and `RASTERIZER1` (type 27) would let the second overwrite the first rather than rejecting the duplicate rasterizer subobject. - **Negative controls**: `startup_stream_rasterizer` verifies `RASTERIZER` back/front cull vs. dropped subobject, `RASTERIZER1` integral bias parity, fractional depth bias (`0.5f`) refusal, and `startup_stream_rasterizer_ignore_*` (`WILL_FAIL`). ### Verification - **Linux static checks**: - `git diff --check origin/main..HEAD`: passed - `python3 tests/docs_links_check.py`: passed (16 Markdown files, 340 links) - `python3 tests/bidi_controls_check.py`: passed (1241 tracked files) - **Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP)** at `c3f7b319a8a255feb7b5a010c99ff4ba911ceea9`: - **Debug (`--preset dev`)**: `cmake --build --preset dev --target startup_stream_rasterizer d3d12_xs_shim offscreen_check -- -j 6` succeeded; `ctest --preset dev -R '^startup_stream_' --parallel 4 --no-tests=error --output-on-failure` — **9/9 passed** (`startup_stream_request_warp`, `startup_stream_draw_warp`, `startup_stream_depth_warp`, `startup_stream_rasterizer_warp`, `startup_stream_rasterizer_ignore_warp`, `startup_stream_draw_hardware`, `startup_stream_depth_hardware`, `startup_stream_rasterizer_hardware`, `startup_stream_rasterizer_ignore_hardware`; note: this VM only has WARP). - **Release `/O2` (`--preset release`)**: `cmake --build --preset release --target startup_stream_rasterizer d3d12_xs_shim offscreen_check -- -j 6` succeeded; `ctest --preset release -R '^startup_stream_' --parallel 4 --no-tests=error --output-on-failure` — **9/9 passed** (same 9 tests).
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-24 14:25 UTC · original · requested changes

The raw tag bitset rejects repeats of 10 and 27 individually, but a stream containing both rasterizer versions currently parses and the last one wins. Treat the two tags as one rasterizer state and reject a mixed duplicate in both orders. Please add a source-built mixed stream refusal control alongside the existing per-version cull cases.

**@⁠R0Y00** on GitHub · 2026-11-24 14:25 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1567#pullrequestreview-6041001292) · **requested changes** The raw tag bitset rejects repeats of 10 and 27 individually, but a stream containing both rasterizer versions currently parses and the last one wins. Treat the two tags as one rasterizer state and reject a mixed duplicate in both orders. Please add a source-built mixed stream refusal control alongside the existing per-version cull cases.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 13:11 UTC · original · reviewed

Review of head 16301332eef97c8b3283ce7632f26af820a27c6c.

Commands run locally (Linux, worktree of the PR head):

git diff --stat origin/main...HEAD      -> 7 files, +396 -12
git diff --check origin/main...HEAD     -> exit 0
python3 tests/docs_links_check.py       -> self-test passed, 19 files, 453 links
python3 tests/bidi_controls_check.py    -> self-test passed, 1639 files, clean
python3 -m py_compile tests/startup_stream_rasterizer_check.py -> exit 0
gh pr checks 1567                       -> Windows build+test, Linux Python checks, gfx1013 fixtures: pass

The C++ changes and the D3D12 tests need MSVC, so I did not build or run them here. I did not run a Windows mutation either. The Windows CI jobs above passed. The PR body lists WARP and hardware runs.

What I checked by reading:

  • RASTERIZER1 is subobject type 27, and D3D12_RASTERIZER_DESC1 has the same size and field order as D3D12_RASTERIZER_DESC, with DepthBias as a float. The reinterpretation in d3d12_draw.inl (stream_translation) is correct, and the static_assert on the table width is a good guard.
  • The PSO cache key now hashes the rasterizer, and the no-rasterizer default is unchanged.
  • The other two stream walkers (desktop_stream_size in d3d12_xs_device.cpp:1892, and mesh86_cache.inl:79) return 0 for type 27. That sends such streams to the translated path instead of the real-pipeline path. This is safe, but it is worth a line in the docs.
  • Title is neutral and the PR is mergeable.

Findings:

P1: none.

P2-1. d3d12_draw.inl (pipeline_for, desc.RasterizerState = bound.rasterizer): the whole struct is copied, including ForcedSampleCount, ConservativeRaster and DepthBiasClamp. Title-supplied nonzero values can make CreateGraphicsPipelineState fail on the desktop device (for example, ForcedSampleCount other than 0 with a non-UAV-only pass). No test covers this. Either clamp or reject these fields, or add a test that shows the pipeline failure is handled.

P2-2. CMakeLists.txt (startup_stream_rasterizer_ignore_*): the "ignore" control does not run a build with the feature removed. It runs the same binary and passes only because the check script returns 1 and WILL_FAIL flips that. This guards nothing beyond the back != front assertion in the main test. If the apply code is removed, the main test already fails, so the control adds no coverage. I suggest dropping it, or making it a real negative control (for example, an env switch that skips the subobject).

nit-1. d3d12_draw.inl (stream_translation): if (type >= 32) return nullptr; runs after the table check. It is only needed for type 27's shift guard, so a comment or a combined condition would be clearer.

nit-2. RASTERIZER2 (type 28) is still refused, as before. The docs could say so next to the "remain open" list.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 13:11 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1567#pullrequestreview-6058235132) · **reviewed** Review of head `16301332eef97c8b3283ce7632f26af820a27c6c`. Commands run locally (Linux, worktree of the PR head): ``` git diff --stat origin/main...HEAD -> 7 files, +396 -12 git diff --check origin/main...HEAD -> exit 0 python3 tests/docs_links_check.py -> self-test passed, 19 files, 453 links python3 tests/bidi_controls_check.py -> self-test passed, 1639 files, clean python3 -m py_compile tests/startup_stream_rasterizer_check.py -> exit 0 gh pr checks 1567 -> Windows build+test, Linux Python checks, gfx1013 fixtures: pass ``` The C++ changes and the D3D12 tests need MSVC, so I did not build or run them here. I did not run a Windows mutation either. The Windows CI jobs above passed. The PR body lists WARP and hardware runs. What I checked by reading: - RASTERIZER1 is subobject type 27, and `D3D12_RASTERIZER_DESC1` has the same size and field order as `D3D12_RASTERIZER_DESC`, with `DepthBias` as a float. The reinterpretation in `d3d12_draw.inl` (`stream_translation`) is correct, and the `static_assert` on the table width is a good guard. - The PSO cache key now hashes the rasterizer, and the no-rasterizer default is unchanged. - The other two stream walkers (`desktop_stream_size` in `d3d12_xs_device.cpp:1892`, and `mesh86_cache.inl:79`) return 0 for type 27. That sends such streams to the translated path instead of the real-pipeline path. This is safe, but it is worth a line in the docs. - Title is neutral and the PR is mergeable. Findings: P1: none. P2-1. `d3d12_draw.inl` (`pipeline_for`, `desc.RasterizerState = bound.rasterizer`): the whole struct is copied, including `ForcedSampleCount`, `ConservativeRaster` and `DepthBiasClamp`. Title-supplied nonzero values can make `CreateGraphicsPipelineState` fail on the desktop device (for example, `ForcedSampleCount` other than 0 with a non-UAV-only pass). No test covers this. Either clamp or reject these fields, or add a test that shows the pipeline failure is handled. P2-2. `CMakeLists.txt` (`startup_stream_rasterizer_ignore_*`): the "ignore" control does not run a build with the feature removed. It runs the same binary and passes only because the check script returns 1 and `WILL_FAIL` flips that. This guards nothing beyond the `back != front` assertion in the main test. If the apply code is removed, the main test already fails, so the control adds no coverage. I suggest dropping it, or making it a real negative control (for example, an env switch that skips the subobject). nit-1. `d3d12_draw.inl` (`stream_translation`): `if (type >= 32) return nullptr;` runs after the table check. It is only needed for type 27's shift guard, so a comment or a combined condition would be clearer. nit-2. RASTERIZER2 (type 28) is still refused, as before. The docs could say so next to the "remain open" list. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-25 14:27 UTC · original · approved these changes

I merged current main into the contributor branch and added a check that treats RASTERIZER and RASTERIZER1 as one state. The Windows Release suite passed 14/14. The new fixture reads back a clear target for both mixed tag orders on WARP and RTX 4060 Laptop. Removing only the new guard made both mixed streams draw on WARP. Restoring the guard brought both backends to green. This clears the mixed-state review on d8880190.

**@⁠R0Y00** on GitHub · 2026-11-25 14:27 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1567#pullrequestreview-6059485245) · **approved these changes** I merged current main into the contributor branch and added a check that treats RASTERIZER and RASTERIZER1 as one state. The Windows Release suite passed 14/14. The new fixture reads back a clear target for both mixed tag orders on WARP and RTX 4060 Laptop. Removing only the new guard made both mixed streams draw on WARP. Restoring the guard brought both backends to green. This clears the mixed-state review on `d8880190`.
This discussion has been locked. Commenting is limited to contributors.
No description provided.