shader: replace #3225 image descriptor work #3351

Closed
opened 2026-11-28 11:27:34 +00:00 by github-bot · 0 comments
Owner

@⁠romn4rch on GitHub · 2026-11-28 11:26 UTC · original

Change

Replacement for #3227: this PR carries the pixel-stage GFX10 image-descriptor size-field lowering and addresses the outstanding review feedback on descriptor-load provenance, swapped s_lshr_b32 operands, and views whose first mip is not resource mip 0. It adds regression controls for an s_load_dwordx16 upper image, overwritten descriptor words, and branched code, and registers the control test in the Windows PR CTest preset. The original #3227 remains open; updating its author-owned head failed with HTTP 403, so this is a separate replacement submission, not a request to merge or close either PR. Refs #3227.

Verification

Passed locally:

  • python -B tests/startup_gfx2hlsl_image_desc_word_check.py
  • python -B tests/startup_image_sample_l_check.py
  • python -B tests/startup_gfx2hlsl_cselect_descnum_check.py (includes expected negative-control mutant failures; check exits successfully)
  • python -B tests/startup_gfx2hlsl_load_desc_check.py
  • python -B tests/startup_gfx2hlsl_scalar_m0_check.py
  • python -B tests/startup_gfx2hlsl_image_get_lod_check.py
  • python -B tests/startup_tools_lint_check.py tools/startup
  • git --no-pager diff --check origin/main...HEAD

ctest --preset pr -N -R '^startup_gfx2hlsl_image_desc_word_controls$' reported Total Tests: 0: this worktree has no configured dev CTest build, so the registered CTest was not run locally. On this PR's commit, GitHub Actions currently has three jobs pending (Build and test on Windows, Assemble and translate gfx1013 fixtures, and Run platform-independent Python checks on Linux); Build and test on Windows at /O2 is skipped. GitHub reports mergeable=true, mergeable_state=blocked; the three pending jobs are the visible blocker.

Evidence and follow-up

The new controls extend the repository's source-built image-sample fixture with synthetic instruction encodings; no game files or external samples are used. Negative controls ensure nonmatching/unsafe descriptor reads remain refused. The behavior and reproduction command are documented in docs/experiments.md; local GPU draw validation was not run.

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.

If this change was AI-assisted, say so in the description. Recent contributions follow this practice.

AI-assisted.

Pull request details or commits were not available from GitHub; kept as an issue.

**@⁠romn4rch** on GitHub · 2026-11-28 11:26 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3349) ## Change Replacement for #3227: this PR carries the pixel-stage GFX10 image-descriptor size-field lowering and addresses the outstanding review feedback on descriptor-load provenance, swapped `s_lshr_b32` operands, and views whose first mip is not resource mip 0. It adds regression controls for an `s_load_dwordx16` upper image, overwritten descriptor words, and branched code, and registers the control test in the Windows PR CTest preset. The original #3227 remains open; updating its author-owned head failed with HTTP 403, so this is a separate replacement submission, not a request to merge or close either PR. Refs #3227. ## Verification Passed locally: - `python -B tests/startup_gfx2hlsl_image_desc_word_check.py` - `python -B tests/startup_image_sample_l_check.py` - `python -B tests/startup_gfx2hlsl_cselect_descnum_check.py` (includes expected negative-control mutant failures; check exits successfully) - `python -B tests/startup_gfx2hlsl_load_desc_check.py` - `python -B tests/startup_gfx2hlsl_scalar_m0_check.py` - `python -B tests/startup_gfx2hlsl_image_get_lod_check.py` - `python -B tests/startup_tools_lint_check.py tools/startup` - `git --no-pager diff --check origin/main...HEAD` `ctest --preset pr -N -R '^startup_gfx2hlsl_image_desc_word_controls$'` reported `Total Tests: 0`: this worktree has no configured dev CTest build, so the registered CTest was not run locally. On this PR's commit, GitHub Actions currently has three jobs pending (`Build and test on Windows`, `Assemble and translate gfx1013 fixtures`, and `Run platform-independent Python checks on Linux`); `Build and test on Windows at /O2` is skipped. GitHub reports `mergeable=true`, `mergeable_state=blocked`; the three pending jobs are the visible blocker. ## Evidence and follow-up The new controls extend the repository's source-built image-sample fixture with synthetic instruction encodings; no game files or external samples are used. Negative controls ensure nonmatching/unsafe descriptor reads remain refused. The behavior and reproduction command are documented in `docs/experiments.md`; local GPU draw validation was not run. ## 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. If this change was AI-assisted, say so in the description. Recent contributions follow this practice. AI-assisted. *Pull request details or commits were not available from GitHub; kept as an issue.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 11:27:34 +00:00
github-bot changed title from shader: pixel image descriptor review follow-up to shader: replace #3225 image descriptor work 2026-11-28 11:38:08 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3351
No description provided.