shader: propagate descriptor pointers through s_add_u32/s_addc_u32 in gfx2hlsl (Part of #1723) #2062

Merged
tedin7 merged 19 commits from upstream-pr/2069 into main 2026-11-25 23:55:12 +00:00
tedin7 commented 2026-11-24 23:58:28 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T23:58:28Z.


Part of #1723

What this unblocks: shaders that build a descriptor address with s_add_u32/s_addc_u32 (51-114 pairs in Run 20 #3) no longer lose the pointer, so the following s_load can fetch the right descriptor.

First clean slice in tools/startup/gfx2hlsl.py:

  • s_add_u32 sD, sP, <literal> on a table/root pointer keeps ('ptr', source, offset), in the same or another register pair.
  • s_addc_u32 sD+1, sP+1, 0 keeps the high word (ptrhi) when it follows a matching low-word add. The carry is taken as zero (offset below 1 MiB).
  • s_load* through an advanced pointer adds that offset to the descriptor (or root buffer) byte offset.
  • Fix: a register addend on a pointer used to leave the pointer unchanged without any error. It is now refused.
  • Still refused: advanced sampler/resource heap pointers, and an advanced pointer used whole as a descriptor.

Test: tests/startup_gfx2hlsl_desc_ptr_prop_check.py, registered as startup_gfx2hlsl_desc_ptr_prop in CMakeLists.txt.

Verification:

  • python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py: ok (7 checks) with the change.
  • Same test against origin/main gfx2hlsl.py: fails (s_addc_u32 refused; register addend accepted silently).
  • for t in tests/startup_gfx2hlsl_*.py; do python3 -B $t; done: all exit 0.
  • Not run on Win2025: Python-only change, no CMake build executed here.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6593918552 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T23:58:28Z. --- Part of #1723 What this unblocks: shaders that build a descriptor address with `s_add_u32`/`s_addc_u32` (51-114 pairs in Run 20 #3) no longer lose the pointer, so the following `s_load` can fetch the right descriptor. First clean slice in `tools/startup/gfx2hlsl.py`: - `s_add_u32 sD, sP, <literal>` on a table/root pointer keeps `('ptr', source, offset)`, in the same or another register pair. - `s_addc_u32 sD+1, sP+1, 0` keeps the high word (`ptrhi`) when it follows a matching low-word add. The carry is taken as zero (offset below 1 MiB). - `s_load*` through an advanced pointer adds that offset to the descriptor (or root buffer) byte offset. - Fix: a register addend on a pointer used to leave the pointer unchanged without any error. It is now refused. - Still refused: advanced sampler/resource heap pointers, and an advanced pointer used whole as a descriptor. Test: `tests/startup_gfx2hlsl_desc_ptr_prop_check.py`, registered as `startup_gfx2hlsl_desc_ptr_prop` in `CMakeLists.txt`. Verification: - `python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py`: ok (7 checks) with the change. - Same test against `origin/main` `gfx2hlsl.py`: fails (`s_addc_u32` refused; register addend accepted silently). - `for t in tests/startup_gfx2hlsl_*.py; do python3 -B $t; done`: all exit 0. - Not run on Win2025: Python-only change, no CMake build executed here. AI-assisted; commands listed were executed locally.
chatgpt-codex-connector[bot commented 2026-11-25 01:01:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:05:54Z.

Review: COMMENTED


💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 11ee88438c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6049477954 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6049477954). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T00:05:54Z. **Review:** COMMENTED --- <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `11ee88438c` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
chatgpt-codex-connector[bot commented 2026-11-25 01:02:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:58:43Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T00:05:56.377428Z 11ee884 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7148002858 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7148002858). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T23:58:43Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"11ee88438c3299f0f2c08da43f76f46845d1459b","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-25T00:05:56.377428Z">2026-11-25T00:05:56.377428Z</relative-time> | `11ee884` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot commented 2026-11-25 01:02:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:05:54Z.

Code review location: tools/startup/gfx2hlsl.py; line 790

@@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods):
         self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'),
                                           'v%d' % destination))
 
+    def pointer_add(self, base, dname, srcs, syms):
+        """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0.
+
+        The pair advances a table or root pointer by a literal byte offset, into the same or
+        another register pair. The offset rides in the low word as ('ptr', source, offset); the
+        high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a
+        table or root address and the offset is below 1 MiB. Anything else returns False.
+        """
+        if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]:
+            return False
+        reg = reg_range(dname)
+        if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105:
+            return False
+        d = reg[1]
+        if base == 's_add_u32':
+            if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]):
+                return False
+            added = int(srcs[1], 0)
+            if added > 0xfffff:
+                raise Unsupported('descriptor pointer offset %s' % srcs[1])
+            self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added)
+            return True

P1 Badge Preserve control flow when folding pointer additions

When an add/addc pair is conditional or inside a loop, Stage.translate() executes this symbolic update once in linear disassembly order and emits no runtime pointer update. A branch that skips s_add_u32 s8, s8, 16 / s_addc_u32 s9, s9, 0 and lands on a root-buffer load therefore still generates r0.Load(16) instead of r0.Load(0); loop iterations likewise reuse the same folded address. These sequences were previously rejected at s_addc_u32 and are now accepted while reading the wrong buffer or descriptor locations. Preserve symbolic state across control-flow edges or refuse path-dependent pointer arithmetic.

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688345407 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#discussion_r4688345407). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T00:05:54Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 790 ~~~~diff @@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods): self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'), 'v%d' % destination)) + def pointer_add(self, base, dname, srcs, syms): + """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0. + + The pair advances a table or root pointer by a literal byte offset, into the same or + another register pair. The offset rides in the low word as ('ptr', source, offset); the + high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a + table or root address and the offset is below 1 MiB. Anything else returns False. + """ + if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]: + return False + reg = reg_range(dname) + if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105: + return False + d = reg[1] + if base == 's_add_u32': + if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]): + return False + added = int(srcs[1], 0) + if added > 0xfffff: + raise Unsupported('descriptor pointer offset %s' % srcs[1]) + self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added) + return True ~~~~ --- **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Preserve control flow when folding pointer additions** When an add/addc pair is conditional or inside a loop, `Stage.translate()` executes this symbolic update once in linear disassembly order and emits no runtime pointer update. A branch that skips `s_add_u32 s8, s8, 16` / `s_addc_u32 s9, s9, 0` and lands on a root-buffer load therefore still generates `r0.Load(16)` instead of `r0.Load(0)`; loop iterations likewise reuse the same folded address. These sequences were previously rejected at `s_addc_u32` and are now accepted while reading the wrong buffer or descriptor locations. Preserve symbolic state across control-flow edges or refuse path-dependent pointer arithmetic. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
chatgpt-codex-connector[bot commented 2026-11-25 01:02:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:05:54Z.

Code review location: tools/startup/gfx2hlsl.py; line 794

@@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods):
         self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'),
                                           'v%d' % destination))
 
+    def pointer_add(self, base, dname, srcs, syms):
+        """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0.
+
+        The pair advances a table or root pointer by a literal byte offset, into the same or
+        another register pair. The offset rides in the low word as ('ptr', source, offset); the
+        high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a
+        table or root address and the offset is below 1 MiB. Anything else returns False.
+        """
+        if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]:
+            return False
+        reg = reg_range(dname)
+        if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105:
+            return False
+        d = reg[1]
+        if base == 's_add_u32':
+            if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]):
+                return False
+            added = int(srcs[1], 0)
+            if added > 0xfffff:
+                raise Unsupported('descriptor pointer offset %s' % srcs[1])
+            self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added)
+            return True
+        low = self.sym.get(d - 1)
+        if (syms[0][0] != 'ptrhi' or srcs[1] != '0' or not low or low[0] != 'ptr'
+                or low[1] != syms[0][1]):
+            return False

P2 Badge Require a matching low-word add before eliding s_addc_u32

For an initialized root pointer in s[8:9], the unchanged low word already satisfies this same-source check, even if no low-word add occurred. Consequently, s_cmp_eq_u32 0, 0 followed by s_addc_u32 s9, s9, 0 is accepted and a subsequent load emits r0.Load(0), although SCC=1 makes the hardware advance the pointer by 0x100000000 bytes. An intervening SCC writer between a low/high pair has the same problem. Track a pending matching low-word add and invalidate it on intervening SCC writes, or refuse these cases instead of treating an existing same-root low word as proof of a matching pointer advance.

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688345413 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#discussion_r4688345413). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T00:05:54Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 794 ~~~~diff @@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods): self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'), 'v%d' % destination)) + def pointer_add(self, base, dname, srcs, syms): + """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0. + + The pair advances a table or root pointer by a literal byte offset, into the same or + another register pair. The offset rides in the low word as ('ptr', source, offset); the + high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a + table or root address and the offset is below 1 MiB. Anything else returns False. + """ + if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]: + return False + reg = reg_range(dname) + if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105: + return False + d = reg[1] + if base == 's_add_u32': + if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]): + return False + added = int(srcs[1], 0) + if added > 0xfffff: + raise Unsupported('descriptor pointer offset %s' % srcs[1]) + self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added) + return True + low = self.sym.get(d - 1) + if (syms[0][0] != 'ptrhi' or srcs[1] != '0' or not low or low[0] != 'ptr' + or low[1] != syms[0][1]): + return False ~~~~ --- **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Require a matching low-word add before eliding s_addc_u32** For an initialized root pointer in `s[8:9]`, the unchanged low word already satisfies this same-source check, even if no low-word add occurred. Consequently, `s_cmp_eq_u32 0, 0` followed by `s_addc_u32 s9, s9, 0` is accepted and a subsequent load emits `r0.Load(0)`, although SCC=1 makes the hardware advance the pointer by 0x100000000 bytes. An intervening SCC writer between a low/high pair has the same problem. Track a pending matching low-word add and invalidate it on intervening SCC writes, or refuse these cases instead of treating an existing same-root low word as proof of a matching pointer advance. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
chatgpt-codex-connector[bot commented 2026-11-25 01:02:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:05:54Z.

Code review location: tools/startup/gfx2hlsl.py; line 717

@@ -705,6 +707,14 @@ def lower(self, base, asm, ops, mods):
             return self.set_v(reg_range(ops[0])[1], text.format(*[self.u(o) for o in ops[1:1 + arity]]))
         if base in SCA:
             return self.scalar(base, ops)
+        if base == 's_addc_u32':
+            # Only the high word of an advanced descriptor pointer; the carry is not modelled.
+            hi = reg_range(ops[1]) if len(ops) == 3 else None
+            if hasattr(self, 'scc_uniform') and self.tracks_uniformity():
+                self.scc_uniform = False
+            if hi and hi[0] == 's' and self.pointer_add(base, ops[0], ops[1:], [self.sym.get(hi[1]), None]):
+                return None
+            raise Unsupported(base)

P2 Badge Handle descriptor-table pointers from the real entry state

setup_entry() allocates one SGPR for a descriptor-table parameter and records only ('ptr', ('table', i)); unlike root buffers, it never creates a table ptrhi. Copying that table address into a pair with a numeric high word and executing the advertised add/addc sequence therefore still raises Unsupported('s_addc_u32'), because this path requires an already-symbolic ptrhi. The new TABLE fixture manually seeds a high-word state that production initialization cannot produce, hiding this failure. Handle the actual table-entry representation and exercise it through setup_entry() in the regression test.

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688345420 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#discussion_r4688345420). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T00:05:54Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 717 ~~~~diff @@ -705,6 +707,14 @@ def lower(self, base, asm, ops, mods): return self.set_v(reg_range(ops[0])[1], text.format(*[self.u(o) for o in ops[1:1 + arity]])) if base in SCA: return self.scalar(base, ops) + if base == 's_addc_u32': + # Only the high word of an advanced descriptor pointer; the carry is not modelled. + hi = reg_range(ops[1]) if len(ops) == 3 else None + if hasattr(self, 'scc_uniform') and self.tracks_uniformity(): + self.scc_uniform = False + if hi and hi[0] == 's' and self.pointer_add(base, ops[0], ops[1:], [self.sym.get(hi[1]), None]): + return None + raise Unsupported(base) ~~~~ --- **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Handle descriptor-table pointers from the real entry state** `setup_entry()` allocates one SGPR for a descriptor-table parameter and records only `('ptr', ('table', i))`; unlike root buffers, it never creates a table `ptrhi`. Copying that table address into a pair with a numeric high word and executing the advertised add/addc sequence therefore still raises `Unsupported('s_addc_u32')`, because this path requires an already-symbolic `ptrhi`. The new `TABLE` fixture manually seeds a high-word state that production initialization cannot produce, hiding this failure. Handle the actual table-entry representation and exercise it through `setup_entry()` in the regression test. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
tedin7 commented 2026-11-25 02:01:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:52Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6049956371 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6049956371). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:02:52Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 02:01:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:54Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6049956580 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6049956580). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:02:54Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 02:01:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:56Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6049956772 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6049956772). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:02:56Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 02:02:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:52Z.

Code review location: tools/startup/gfx2hlsl.py; line 790

@@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods):
         self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'),
                                           'v%d' % destination))
 
+    def pointer_add(self, base, dname, srcs, syms):
+        """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0.
+
+        The pair advances a table or root pointer by a literal byte offset, into the same or
+        another register pair. The offset rides in the low word as ('ptr', source, offset); the
+        high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a
+        table or root address and the offset is below 1 MiB. Anything else returns False.
+        """
+        if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]:
+            return False
+        reg = reg_range(dname)
+        if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105:
+            return False
+        d = reg[1]
+        if base == 's_add_u32':
+            if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]):
+                return False
+            added = int(srcs[1], 0)
+            if added > 0xfffff:
+                raise Unsupported('descriptor pointer offset %s' % srcs[1])
+            self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added)
+            return True

Fixed in 15880c68: pointer add/addc folding is now refused in shaders with branches or loops.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688768548 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#discussion_r4688768548). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:02:52Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 790 ~~~~diff @@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods): self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'), 'v%d' % destination)) + def pointer_add(self, base, dname, srcs, syms): + """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0. + + The pair advances a table or root pointer by a literal byte offset, into the same or + another register pair. The offset rides in the low word as ('ptr', source, offset); the + high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a + table or root address and the offset is below 1 MiB. Anything else returns False. + """ + if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]: + return False + reg = reg_range(dname) + if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105: + return False + d = reg[1] + if base == 's_add_u32': + if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]): + return False + added = int(srcs[1], 0) + if added > 0xfffff: + raise Unsupported('descriptor pointer offset %s' % srcs[1]) + self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added) + return True ~~~~ --- Fixed in 15880c68: pointer add/addc folding is now refused in shaders with branches or loops.
tedin7 commented 2026-11-25 02:02:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:54Z.

Code review location: tools/startup/gfx2hlsl.py; line 794

@@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods):
         self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'),
                                           'v%d' % destination))
 
+    def pointer_add(self, base, dname, srcs, syms):
+        """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0.
+
+        The pair advances a table or root pointer by a literal byte offset, into the same or
+        another register pair. The offset rides in the low word as ('ptr', source, offset); the
+        high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a
+        table or root address and the offset is below 1 MiB. Anything else returns False.
+        """
+        if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]:
+            return False
+        reg = reg_range(dname)
+        if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105:
+            return False
+        d = reg[1]
+        if base == 's_add_u32':
+            if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]):
+                return False
+            added = int(srcs[1], 0)
+            if added > 0xfffff:
+                raise Unsupported('descriptor pointer offset %s' % srcs[1])
+            self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added)
+            return True
+        low = self.sym.get(d - 1)
+        if (syms[0][0] != 'ptrhi' or srcs[1] != '0' or not low or low[0] != 'ptr'
+                or low[1] != syms[0][1]):
+            return False

Fixed in 15880c68: s_addc_u32 now needs a pending matching low-word s_add_u32; any other instruction in between (SCC writer) drops it and the pair is refused.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688768715 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#discussion_r4688768715). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:02:54Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 794 ~~~~diff @@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods): self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'), 'v%d' % destination)) + def pointer_add(self, base, dname, srcs, syms): + """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0. + + The pair advances a table or root pointer by a literal byte offset, into the same or + another register pair. The offset rides in the low word as ('ptr', source, offset); the + high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a + table or root address and the offset is below 1 MiB. Anything else returns False. + """ + if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]: + return False + reg = reg_range(dname) + if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105: + return False + d = reg[1] + if base == 's_add_u32': + if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]): + return False + added = int(srcs[1], 0) + if added > 0xfffff: + raise Unsupported('descriptor pointer offset %s' % srcs[1]) + self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added) + return True + low = self.sym.get(d - 1) + if (syms[0][0] != 'ptrhi' or srcs[1] != '0' or not low or low[0] != 'ptr' + or low[1] != syms[0][1]): + return False ~~~~ --- Fixed in 15880c68: s_addc_u32 now needs a pending matching low-word s_add_u32; any other instruction in between (SCC writer) drops it and the pair is refused.
tedin7 commented 2026-11-25 02:02:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:56Z.

Code review location: tools/startup/gfx2hlsl.py; line 717

@@ -705,6 +707,14 @@ def lower(self, base, asm, ops, mods):
             return self.set_v(reg_range(ops[0])[1], text.format(*[self.u(o) for o in ops[1:1 + arity]]))
         if base in SCA:
             return self.scalar(base, ops)
+        if base == 's_addc_u32':
+            # Only the high word of an advanced descriptor pointer; the carry is not modelled.
+            hi = reg_range(ops[1]) if len(ops) == 3 else None
+            if hasattr(self, 'scc_uniform') and self.tracks_uniformity():
+                self.scc_uniform = False
+            if hi and hi[0] == 's' and self.pointer_add(base, ops[0], ops[1:], [self.sym.get(hi[1]), None]):
+                return None
+            raise Unsupported(base)

Fixed in 15880c68: a table pointer from setup_entry() (single SGPR, numeric high word) is accepted; the test now uses that real entry state. Tests: tests/startup_gfx2hlsl_*check.py all pass locally. AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688768849 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#discussion_r4688768849). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:02:56Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 717 ~~~~diff @@ -705,6 +707,14 @@ def lower(self, base, asm, ops, mods): return self.set_v(reg_range(ops[0])[1], text.format(*[self.u(o) for o in ops[1:1 + arity]])) if base in SCA: return self.scalar(base, ops) + if base == 's_addc_u32': + # Only the high word of an advanced descriptor pointer; the carry is not modelled. + hi = reg_range(ops[1]) if len(ops) == 3 else None + if hasattr(self, 'scc_uniform') and self.tracks_uniformity(): + self.scc_uniform = False + if hi and hi[0] == 's' and self.pointer_add(base, ops[0], ops[1:], [self.sym.get(hi[1]), None]): + return None + raise Unsupported(base) ~~~~ --- Fixed in 15880c68: a table pointer from setup_entry() (single SGPR, numeric high word) is accepted; the test now uses that real entry state. Tests: tests/startup_gfx2hlsl_*check.py all pass locally. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 11:02:08 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:38Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6056368624 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6056368624). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T11:01:38Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 11:02:08 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:41Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6056369430 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6056369430). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T11:01:41Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 11:02:08 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:43Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6056370109 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6056370109). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T11:01:43Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 11:02:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:38Z.

Code review location: tools/startup/gfx2hlsl.py; line 790

@@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods):
         self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'),
                                           'v%d' % destination))
 
+    def pointer_add(self, base, dname, srcs, syms):
+        """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0.
+
+        The pair advances a table or root pointer by a literal byte offset, into the same or
+        another register pair. The offset rides in the low word as ('ptr', source, offset); the
+        high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a
+        table or root address and the offset is below 1 MiB. Anything else returns False.
+        """
+        if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]:
+            return False
+        reg = reg_range(dname)
+        if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105:
+            return False
+        d = reg[1]
+        if base == 's_add_u32':
+            if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]):
+                return False
+            added = int(srcs[1], 0)
+            if added > 0xfffff:
+                raise Unsupported('descriptor pointer offset %s' % srcs[1])
+            self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added)
+            return True

Re-checked on current head 72eee114: branched shaders refuse pointer add/addc folding, s_addc_u32 needs a matching pending low-word add, and the table pointer from setup_entry() is accepted, with tests in tests/startup_gfx2hlsl_desc_ptr_prop_check.py. Resolving. AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4693919854 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#discussion_r4693919854). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T11:01:38Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 790 ~~~~diff @@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods): self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'), 'v%d' % destination)) + def pointer_add(self, base, dname, srcs, syms): + """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0. + + The pair advances a table or root pointer by a literal byte offset, into the same or + another register pair. The offset rides in the low word as ('ptr', source, offset); the + high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a + table or root address and the offset is below 1 MiB. Anything else returns False. + """ + if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]: + return False + reg = reg_range(dname) + if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105: + return False + d = reg[1] + if base == 's_add_u32': + if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]): + return False + added = int(srcs[1], 0) + if added > 0xfffff: + raise Unsupported('descriptor pointer offset %s' % srcs[1]) + self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added) + return True ~~~~ --- Re-checked on current head 72eee114: branched shaders refuse pointer add/addc folding, `s_addc_u32` needs a matching pending low-word add, and the table pointer from `setup_entry()` is accepted, with tests in tests/startup_gfx2hlsl_desc_ptr_prop_check.py. Resolving. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 11:02:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:41Z.

Code review location: tools/startup/gfx2hlsl.py; line 794

@@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods):
         self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'),
                                           'v%d' % destination))
 
+    def pointer_add(self, base, dname, srcs, syms):
+        """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0.
+
+        The pair advances a table or root pointer by a literal byte offset, into the same or
+        another register pair. The offset rides in the low word as ('ptr', source, offset); the
+        high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a
+        table or root address and the offset is below 1 MiB. Anything else returns False.
+        """
+        if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]:
+            return False
+        reg = reg_range(dname)
+        if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105:
+            return False
+        d = reg[1]
+        if base == 's_add_u32':
+            if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]):
+                return False
+            added = int(srcs[1], 0)
+            if added > 0xfffff:
+                raise Unsupported('descriptor pointer offset %s' % srcs[1])
+            self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added)
+            return True
+        low = self.sym.get(d - 1)
+        if (syms[0][0] != 'ptrhi' or srcs[1] != '0' or not low or low[0] != 'ptr'
+                or low[1] != syms[0][1]):
+            return False

Re-checked on current head 72eee114: branched shaders refuse pointer add/addc folding, s_addc_u32 needs a matching pending low-word add, and the table pointer from setup_entry() is accepted, with tests in tests/startup_gfx2hlsl_desc_ptr_prop_check.py. Resolving. AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4693920341 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#discussion_r4693920341). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T11:01:41Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 794 ~~~~diff @@ -756,6 +766,35 @@ def sdwa(self, base, ops, mods): self.set_v(destination, sdwa_dest(result, select, fields.get('dst_unused', 'UNUSED_PAD'), 'v%d' % destination)) + def pointer_add(self, base, dname, srcs, syms): + """Propagate a descriptor pointer through s_add_u32 sD, sP, <literal> / s_addc_u32 sD+1, sP+1, 0. + + The pair advances a table or root pointer by a literal byte offset, into the same or + another register pair. The offset rides in the low word as ('ptr', source, offset); the + high word keeps ('ptrhi', source). The low-word carry is taken as zero: the base is a + table or root address and the offset is below 1 MiB. Anything else returns False. + """ + if base not in ('s_add_u32', 's_addc_u32') or len(srcs) != 2 or not syms[0]: + return False + reg = reg_range(dname) + if not reg or reg[0] != 's' or reg[1] != reg[2] or reg[1] > 105: + return False + d = reg[1] + if base == 's_add_u32': + if syms[0][0] != 'ptr' or not re.fullmatch(r'(?:0[xX][0-9a-fA-F]+|\d+)', srcs[1]): + return False + added = int(srcs[1], 0) + if added > 0xfffff: + raise Unsupported('descriptor pointer offset %s' % srcs[1]) + self.sym[d] = ('ptr', syms[0][1], (syms[0][2] if len(syms[0]) > 2 else 0) + added) + return True + low = self.sym.get(d - 1) + if (syms[0][0] != 'ptrhi' or srcs[1] != '0' or not low or low[0] != 'ptr' + or low[1] != syms[0][1]): + return False ~~~~ --- Re-checked on current head 72eee114: branched shaders refuse pointer add/addc folding, `s_addc_u32` needs a matching pending low-word add, and the table pointer from `setup_entry()` is accepted, with tests in tests/startup_gfx2hlsl_desc_ptr_prop_check.py. Resolving. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 11:02:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:43Z.

Code review location: tools/startup/gfx2hlsl.py; line 717

@@ -705,6 +707,14 @@ def lower(self, base, asm, ops, mods):
             return self.set_v(reg_range(ops[0])[1], text.format(*[self.u(o) for o in ops[1:1 + arity]]))
         if base in SCA:
             return self.scalar(base, ops)
+        if base == 's_addc_u32':
+            # Only the high word of an advanced descriptor pointer; the carry is not modelled.
+            hi = reg_range(ops[1]) if len(ops) == 3 else None
+            if hasattr(self, 'scc_uniform') and self.tracks_uniformity():
+                self.scc_uniform = False
+            if hi and hi[0] == 's' and self.pointer_add(base, ops[0], ops[1:], [self.sym.get(hi[1]), None]):
+                return None
+            raise Unsupported(base)

Re-checked on current head 72eee114: branched shaders refuse pointer add/addc folding, s_addc_u32 needs a matching pending low-word add, and the table pointer from setup_entry() is accepted, with tests in tests/startup_gfx2hlsl_desc_ptr_prop_check.py. Resolving. AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4693920799 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#discussion_r4693920799). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T11:01:43Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 717 ~~~~diff @@ -705,6 +707,14 @@ def lower(self, base, asm, ops, mods): return self.set_v(reg_range(ops[0])[1], text.format(*[self.u(o) for o in ops[1:1 + arity]])) if base in SCA: return self.scalar(base, ops) + if base == 's_addc_u32': + # Only the high word of an advanced descriptor pointer; the carry is not modelled. + hi = reg_range(ops[1]) if len(ops) == 3 else None + if hasattr(self, 'scc_uniform') and self.tracks_uniformity(): + self.scc_uniform = False + if hi and hi[0] == 's' and self.pointer_add(base, ops[0], ops[1:], [self.sym.get(hi[1]), None]): + return None + raise Unsupported(base) ~~~~ --- Re-checked on current head 72eee114: branched shaders refuse pointer add/addc folding, `s_addc_u32` needs a matching pending low-word add, and the table pointer from `setup_entry()` is accepted, with tests in tests/startup_gfx2hlsl_desc_ptr_prop_check.py. Resolving. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-25 16:05:07 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T15:01:46Z.

Review: CHANGES_REQUESTED


On 49f5fabe, the original ten controls pass. Removing the high-word s_addc_u32 from the out-of-place fixture still allows s_load_dwordx4 s[4:7], s[20:21], 0x10 and returns the same table+0x50 symbol, even though s21 was never defined. The load looks up only s20. Please require a completed matching pair for this fold. Cover a missing, overwritten, or mismatched high word, plus a valid complete pair across a low-DWORD carry. If SCC or either raw half is observed independently, model that result or refuse that form.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6060066492 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6060066492). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T15:01:46Z. **Review:** CHANGES_REQUESTED --- On `49f5fabe`, the original ten controls pass. Removing the high-word `s_addc_u32` from the out-of-place fixture still allows `s_load_dwordx4 s[4:7], s[20:21], 0x10` and returns the same table+0x50 symbol, even though `s21` was never defined. The load looks up only `s20`. Please require a completed matching pair for this fold. Cover a missing, overwritten, or mismatched high word, plus a valid complete pair across a low-DWORD carry. If SCC or either raw half is observed independently, model that result or refuse that form.
tedin7 commented 2026-11-25 16:05:23 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T15:22:38Z.


Fixed in 41599ffd and 91f4b214. Thanks for the careful review. You were right: the load looked up only the low register of the pair.

What changed:

  • s_add_u32 on a descriptor pointer now marks the high word as pending.
  • Only the matching s_addc_u32 (immediately after, high half of the same source pair, literal 0) completes it.
  • s_load through an advanced pointer now requires the high word to be that completed pair. Otherwise it is refused.

New checks in tests/startup_gfx2hlsl_desc_ptr_prop_check.py:

  • missing high-word add is refused
  • missing high-word add in place is refused
  • overwritten high word is refused
  • high word from another pointer is refused
  • high word from a different register pair is refused
  • complete pair with a large low-word add is folded (valid pair, low-dword carry range)

The s_addc_u32 is only accepted as the direct successor of its s_add_u32, so SCC is never observed by anything else. A pair whose halves are read separately is refused.

Commands run (Linux):

  • python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py: before the change, 3 new checks fail; after, all pass.
  • python3 -B on startup_gfx2hlsl_join_symbols_check.py, smem_offset_check.py, smem_address_check.py, root_check.py, refusals_check.py, add_sub_co_check.py, scalar_m0_check.py: all pass.

Follow-up fixes (second review):

  • A table pointer is one 32-bit register with no high word. Only 64-bit pointers (root, vertex-buffer table) need the add/addc pair, and only they get the pending high-word marker. A table advance with the low add alone now loads. The neighbouring register keeps its symbol.
  • The high operand of s_addc_u32 is now judged by what it holds (the high word of the same pointer), not by sitting next to the low word. A copied high word or a low word held in m0 is accepted.
  • New checks use the real state from setup_entry: table advance, table in place, root pair, root without high add, copied high, low in m0.
  • python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py: 7 new checks fail before the fix, all pass after. The seven sibling checks listed above still pass.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7166746472 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7166746472). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T15:22:38Z. --- Fixed in `41599ffd` and `91f4b214`. Thanks for the careful review. You were right: the load looked up only the low register of the pair. What changed: - `s_add_u32` on a descriptor pointer now marks the high word as pending. - Only the matching `s_addc_u32` (immediately after, high half of the same source pair, literal 0) completes it. - `s_load` through an advanced pointer now requires the high word to be that completed pair. Otherwise it is refused. New checks in `tests/startup_gfx2hlsl_desc_ptr_prop_check.py`: - `missing high-word add is refused` - `missing high-word add in place is refused` - `overwritten high word is refused` - `high word from another pointer is refused` - `high word from a different register pair is refused` - `complete pair with a large low-word add is folded` (valid pair, low-dword carry range) The `s_addc_u32` is only accepted as the direct successor of its `s_add_u32`, so SCC is never observed by anything else. A pair whose halves are read separately is refused. Commands run (Linux): - `python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py`: before the change, 3 new checks fail; after, all pass. - `python3 -B` on `startup_gfx2hlsl_join_symbols_check.py`, `smem_offset_check.py`, `smem_address_check.py`, `root_check.py`, `refusals_check.py`, `add_sub_co_check.py`, `scalar_m0_check.py`: all pass. Follow-up fixes (second review): - A table pointer is one 32-bit register with no high word. Only 64-bit pointers (root, vertex-buffer table) need the add/addc pair, and only they get the pending high-word marker. A table advance with the low add alone now loads. The neighbouring register keeps its symbol. - The high operand of `s_addc_u32` is now judged by what it holds (the high word of the same pointer), not by sitting next to the low word. A copied high word or a low word held in `m0` is accepted. - New checks use the real state from `setup_entry`: table advance, table in place, root pair, root without high add, copied high, low in `m0`. - `python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py`: 7 new checks fail before the fix, all pass after. The seven sibling checks listed above still pass. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 16:05:25 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T15:52:09Z.


Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 91f4b2145997b6d84d8c5971edd583ca9bab766b:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target cpu_exe_io cpu_frame_guest cpu_frame_host cpu_shim_draw cpu_shim_startup cpu_shim_startup_guest cpu_shim_startup_lifted cpu_tls_sink d3d12_xs_device_obj d3d12_xs_sh ... (cut, ~41 names in total)): 63.09s (configure 0.00s)
    • Test (ctest --preset dev -R '^(adapter_selection_unmatched|bc7_draw_warp|bc7_mode6_multiblock_warp|bvh_atomics_warp|bvh_buffer_ops_warp|bvh_differential_pipeline_warp|bvh_differential_warp|bvh_hits_warp|bvh ... (cut, ~503 names in total)): 471/495 passed (579.04s: startup_gfx2hlsl_f32_sdwa_warp 19.17s, pixel_aot_warp 19.07s, compute_store_aot_descriptor_load_format_warp 38.45s, startup_gfx2hlsl_f32_nan_warp 11.88s, startup_mrt_dxc_warp 13.58s, startup_mrt_fxc_warp 13.63s, pixel_aot_compare_warp 12.54s, startup_image_gather_c_lz_warp 4.44s, startup_gfx2hlsl_bit_alu_warp 6.52s, startup_run_ps1 11.99s, ...); skipped (capability, not a pass): bvh_wave64_warp, wave_shuffle_warp, shader_wave32_warp, shader_wave64_warp, startup_logical_view_warp, startup_run_sh, spirv_address_window_warp, spirv_address_window_atomic_warp, spirv_address_window_signed_warp, startup_draw_depth_target_debug_warp, spirv_address_window_float_warp, spirv_address_window_vec4_warp, spirv_address_window_qword_warp, spirv_sampler_views_warp, spirv_ballot_extract_warp, spirv_compaction_warp, spirv_compare_sampler_warp, spirv_minlod_warp, spirv_minlod_exact_warp, spirv_minlod_levels_warp, spirv_minlod_fractional_warp, pixel_batch_debug_warp, mesh_two_exits_warp, bc7_mode6_multiblock_warp
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target cpu_exe_io cpu_frame_guest cpu_frame_host cpu_shim_draw cpu_shim_startup cpu_shim_startup_guest cpu_shim_startup_lifted cpu_tls_sink d3d12_xs_device_obj d3d12_x ... (cut, ~41 names in total)): 2.24s (configure 0.00s)
    • Test (ctest --preset release -R '^(adapter_selection_unmatched|bc7_draw_warp|bc7_mode6_multiblock_warp|bvh_atomics_warp|bvh_buffer_ops_warp|bvh_differential_pipeline_warp|bvh_differential_warp|bvh_hits_warp ... (cut, ~503 names in total)): 471/495 passed (443.94s: pixel_aot_warp 18.81s, cpu_shim_shadow_warp 5.81s, cpu_shim_upload_texture_warp 4.34s, compute_store_aot_descriptor_load_format_warp 38.83s, pixel_aot_buffer_color_warp 13.86s, pixel_aot_compare_warp 23.88s, pixel_aot_three_way_warp 13.81s, pixel_aot_bits_warp 15.90s, pixel_aot_comparisons_warp 9.16s, startup_vertex_fetch_formats_warp 44.22s, ...); skipped (capability, not a pass): bvh_wave64_warp, wave_shuffle_warp, shader_wave32_warp, shader_wave64_warp, startup_logical_view_warp, startup_run_sh, spirv_address_window_warp, spirv_address_window_atomic_warp, startup_draw_depth_target_debug_warp, spirv_address_window_signed_warp, spirv_address_window_float_warp, spirv_address_window_vec4_warp, spirv_address_window_qword_warp, spirv_sampler_views_warp, spirv_ballot_extract_warp, spirv_compaction_warp, spirv_compare_sampler_warp, spirv_minlod_warp, spirv_minlod_exact_warp, spirv_minlod_levels_warp, spirv_minlod_fractional_warp, pixel_batch_debug_warp, mesh_two_exits_warp, bc7_mode6_multiblock_warp
  • sccache: 89/888 hits; wall 1102.9s
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7167384529 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7167384529). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T15:52:09Z. --- Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `91f4b2145997b6d84d8c5971edd583ca9bab766b`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target cpu_exe_io cpu_frame_guest cpu_frame_host cpu_shim_draw cpu_shim_startup cpu_shim_startup_guest cpu_shim_startup_lifted cpu_tls_sink d3d12_xs_device_obj d3d12_xs_sh ...` (cut, ~41 names in total)): `63.09s` (configure `0.00s`) - Test (`ctest --preset dev -R '^(adapter_selection_unmatched|bc7_draw_warp|bc7_mode6_multiblock_warp|bvh_atomics_warp|bvh_buffer_ops_warp|bvh_differential_pipeline_warp|bvh_differential_warp|bvh_hits_warp|bvh ...` (cut, ~503 names in total)): **471/495 passed** (`579.04s`: `startup_gfx2hlsl_f32_sdwa_warp` `19.17s`, `pixel_aot_warp` `19.07s`, `compute_store_aot_descriptor_load_format_warp` `38.45s`, `startup_gfx2hlsl_f32_nan_warp` `11.88s`, `startup_mrt_dxc_warp` `13.58s`, `startup_mrt_fxc_warp` `13.63s`, `pixel_aot_compare_warp` `12.54s`, `startup_image_gather_c_lz_warp` `4.44s`, `startup_gfx2hlsl_bit_alu_warp` `6.52s`, `startup_run_ps1` `11.99s`, ...); skipped (capability, not a pass): `bvh_wave64_warp`, `wave_shuffle_warp`, `shader_wave32_warp`, `shader_wave64_warp`, `startup_logical_view_warp`, `startup_run_sh`, `spirv_address_window_warp`, `spirv_address_window_atomic_warp`, `spirv_address_window_signed_warp`, `startup_draw_depth_target_debug_warp`, `spirv_address_window_float_warp`, `spirv_address_window_vec4_warp`, `spirv_address_window_qword_warp`, `spirv_sampler_views_warp`, `spirv_ballot_extract_warp`, `spirv_compaction_warp`, `spirv_compare_sampler_warp`, `spirv_minlod_warp`, `spirv_minlod_exact_warp`, `spirv_minlod_levels_warp`, `spirv_minlod_fractional_warp`, `pixel_batch_debug_warp`, `mesh_two_exits_warp`, `bc7_mode6_multiblock_warp` - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target cpu_exe_io cpu_frame_guest cpu_frame_host cpu_shim_draw cpu_shim_startup cpu_shim_startup_guest cpu_shim_startup_lifted cpu_tls_sink d3d12_xs_device_obj d3d12_x ...` (cut, ~41 names in total)): `2.24s` (configure `0.00s`) - Test (`ctest --preset release -R '^(adapter_selection_unmatched|bc7_draw_warp|bc7_mode6_multiblock_warp|bvh_atomics_warp|bvh_buffer_ops_warp|bvh_differential_pipeline_warp|bvh_differential_warp|bvh_hits_warp ...` (cut, ~503 names in total)): **471/495 passed** (`443.94s`: `pixel_aot_warp` `18.81s`, `cpu_shim_shadow_warp` `5.81s`, `cpu_shim_upload_texture_warp` `4.34s`, `compute_store_aot_descriptor_load_format_warp` `38.83s`, `pixel_aot_buffer_color_warp` `13.86s`, `pixel_aot_compare_warp` `23.88s`, `pixel_aot_three_way_warp` `13.81s`, `pixel_aot_bits_warp` `15.90s`, `pixel_aot_comparisons_warp` `9.16s`, `startup_vertex_fetch_formats_warp` `44.22s`, ...); skipped (capability, not a pass): `bvh_wave64_warp`, `wave_shuffle_warp`, `shader_wave32_warp`, `shader_wave64_warp`, `startup_logical_view_warp`, `startup_run_sh`, `spirv_address_window_warp`, `spirv_address_window_atomic_warp`, `startup_draw_depth_target_debug_warp`, `spirv_address_window_signed_warp`, `spirv_address_window_float_warp`, `spirv_address_window_vec4_warp`, `spirv_address_window_qword_warp`, `spirv_sampler_views_warp`, `spirv_ballot_extract_warp`, `spirv_compaction_warp`, `spirv_compare_sampler_warp`, `spirv_minlod_warp`, `spirv_minlod_exact_warp`, `spirv_minlod_levels_warp`, `spirv_minlod_fractional_warp`, `pixel_batch_debug_warp`, `mesh_two_exits_warp`, `bc7_mode6_multiblock_warp` - `sccache`: 89/888 hits; wall `1102.9s`
tedin7 commented 2026-11-25 17:01:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T16:54:28Z.


Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 99e1c69f7f72a63a5ef4a8f1bd83360f7b3b5ad5:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim -- -j 2): 2.76s (configure 1.65s)
    • Test (ctest --preset dev -R '^(startup_gfx2hlsl_.*|pixel_aot_.*_warp|compute_store_aot_.*_warp|form_coverage)$' --parallel 6 --no-tests=error --output-on-failure): 296/296 passed (127.64s: pixel_aot_bits_warp 13.46s, pixel_aot_buffer_color_warp 7.37s, form_coverage 26.25s, pixel_aot_three_way_warp 7.53s, startup_gfx2hlsl_f32_nan_warp 30.21s, pixel_aot_compare_warp 31.60s, pixel_aot_comparisons_warp 9.74s, startup_gfx2hlsl_f32_sdwa_warp 36.11s, pixel_aot_e64_warp 7.79s, compute_store_aot_heap_view_load_warp 9.53s, startup_gfx2hlsl_cvt_alu_warp 6.67s, compute_store_aot_descriptor_load_format_warp 43.23s, compute_store_aot_guard_read_warp 7.84s, pixel_aot_blend_scalar_warp 9.86s, compute_store_aot_lds_qword_warp 6.84s, compute_store_aot_lds_arithmetic_warp 6.39s, startup_gfx2hlsl_f32_sdwa_hardware 19.33s, pixel_aot_cmpx_regions_warp 7.26s, pixel_aot_cvt_flr_rpi_warp 5.98s, startup_gfx2hlsl_f32_nan_hardware 13.47s, compute_store_aot_mimg_mip_warp 4.89s, compute_store_aot_mimg_load_warp 4.96s, compute_store_aot_heap_view_store_warp 8.84s, pixel_aot_cvt_f64_f32_warp 7.49s, pixel_aot_f16_arith_warp 6.46s, pixel_aot_predicate_rounding_warp 5.65s, compute_store_aot_lds_private_warp 4.90s, compute_store_aot_mimg_packed_warp 4.07s, pixel_aot_compare_gather_warp 3.39s, pixel_aot_gather_warp 3.50s, compute_store_aot_lds_f32_warp 4.35s, pixel_aot_cmpx_e64_warp 5.21s, pixel_aot_core_vector_warp 6.01s, compute_store_aot_lds_replacement_warp 3.08s, startup_gfx2hlsl_f32_nan 6.98s, pixel_aot_exec_regions_warp 5.87s, pixel_aot_compare_sample_warp 3.17s, startup_gfx2hlsl_bit_alu_warp 6.73s, compute_store_aot_lds_packed_warp 3.26s, startup_gfx2hlsl_f32_lg_warp 4.94s, pixel_aot_sample_coarse_gradient_warp 2.76s, pixel_aot_sample_gradient_warp 2.63s, compute_store_aot_mubuf_reduction_x2_warp 2.72s, compute_store_aot_mimg_atomic_counter_warp 2.33s, compute_store_aot_alu_lane_gaps_warp 1.81s, compute_store_aot_lane_mask_warp 2.38s, compute_store_aot_mtbuf_store_warp 2.73s, compute_store_aot_mubuf_reduction_warp 2.79s, startup_gfx2hlsl_sop2_complement 5.82s, compute_store_aot_mimg_store_packed_warp 2.70s, compute_store_aot_mimg_store_warp 2.60s, startup_gfx2hlsl_cvt_alu_hardware 5.83s, compute_store_aot_gfx1013_image_atomics_warp 1.96s, compute_store_aot_mubuf_d16_warp 2.31s, compute_store_aot_mubuf_store_format_warp 2.41s, pixel_aot_dpp_f16_warp 4.34s, compute_store_aot_vcmp_select_warp 2.67s, compute_store_aot_mimg_atomic_float_warp 2.05s, compute_store_aot_mtbuf_load_warp 2.61s, pixel_aot_sample_offset_warp 2.14s, compute_store_aot_descriptor_store_format_warp 1.99s, compute_store_aot_mimg_resinfo_warp 2.21s, compute_store_aot_mubuf_store_subword_warp 2.10s, compute_store_aot_f32_warp 2.11s, pixel_aot_cvt_int_f64_warp 4.41s, compute_store_aot_lds_wide_replacement_warp 1.94s, startup_gfx2hlsl_cmp_class_f16 5.57s, compute_store_aot_sub_co_warp 1.36s, pixel_aot_f16_round_warp 4.34s, compute_store_aot_ff1_scalar_warp 1.40s, compute_store_aot_scratch_base_warp 1.61s, compute_store_aot_mbcnt_warp 1.46s, startup_gfx2hlsl_vopc_sdwa 5.78s, compute_store_aot_add_co_warp 1.33s, compute_store_aot_cvt_u32_f32_warp 1.42s, compute_store_aot_gfx1013_gather4_l_warp 1.74s, compute_store_aot_bcnt_exec_warp 1.34s, compute_store_aot_mubuf_subword_warp 1.91s, compute_store_aot_mimg_atomic_minmax_warp 1.78s, startup_gfx2hlsl_bit_alu_hardware 6.57s, compute_store_aot_dot_u_warp 1.35s, compute_store_aot_writelane_warp 1.39s, compute_store_aot_vadd_nc_i32_warp 1.49s, compute_store_aot_salu_i32_warp 1.39s, compute_store_aot_ff1_exec_warp 1.20s, pixel_aot_get_lod_warp 1.78s, compute_store_aot_lds_strided_warp 1.76s, compute_store_aot_mimg_atomic_integer_warp 1.76s, compute_store_aot_alu_xor3_warp 1.97s, compute_store_aot_alu_bcnt_warp 2.05s, compute_store_aot_alu_minmax3_warp 1.89s, compute_store_aot_salu_absdiff_warp 1.45s, compute_store_aot_bfe_warp 1.42s, startup_gfx2hlsl_f32_lg_hardware 4.87s, compute_store_aot_mubuf_format_warp 1.70s, compute_store_aot_mubuf_load_format_d16_warp 1.68s, startup_gfx2hlsl_s_lshl_add 4.68s, compute_store_aot_readlane_warp 1.22s, compute_store_aot_alu_cvt_pk_u8_warp 1.79s, startup_gfx2hlsl_cmp_class 6.02s, pixel_aot_cmp_f64_warp 4.34s, pixel_aot_dpp_extra_warp 3.09s, compute_store_aot_mac_f32_warp 1.37s, compute_store_aot_mubuf_csub_warp 1.05s, compute_store_aot_alu_mad_i24_warp 1.50s, compute_store_aot_mubuf_exchange_warp 1.45s, compute_store_aot_alu_med3_warp 1.46s, compute_store_aot_mubuf_counter_warp 1.33s, compute_store_aot_mubuf_vector_warp 1.57s, compute_store_aot_mubuf_counter-x2_warp 1.31s, compute_store_aot_mubuf_exchange-x2_warp 1.46s, compute_store_aot_ds_route_warp 1.34s, pixel_aot_shift64_warp 4.11s, pixel_aot_f16_fmac_ldexp_warp 3.75s, compute_store_aot_dpp_warp 1.16s, pixel_aot_region_body_warp 2.46s, pixel_aot_sample_lod_warp 1.76s, compute_store_aot_mimg_msaa_warp 1.15s, compute_store_aot_mimg_atomic_exchange_warp 1.25s, pixel_aot_dmask_warp 1.56s, compute_store_aot_mubuf_store_format_xyz_warp 1.15s, compute_store_aot_gfx1013_image_store_warp 1.00s, pixel_aot_rndne_warp 1.61s, pixel_aot_cmp64_warp 2.98s, pixel_aot_attribute_warp 1.03s, pixel_aot_vop3_ternary_int_warp 1.68s, pixel_aot_int16_ternary_warp 2.74s, pixel_aot_cvt_f64_int_warp 2.43s, startup_gfx2hlsl_shift64_warp 3.56s, pixel_aot_u32_from_f32_warp 1.47s, startup_gfx2hlsl_sdwa_cvt_warp 2.09s, pixel_aot_dpp_cvt_warp 2.56s, pixel_aot_scc_skip_warp 1.96s, pixel_aot_f16_cvt_int16_warp 2.56s, startup_gfx2hlsl_dpp_pair_warp 2.09s, pixel_aot_cvt_f32_f64_warp 2.01s, compute_store_aot_gfx1013_image_store_d16_warp 1.03s, pixel_aot_cvt_float_int_e64_warp 2.24s, compute_store_aot_desc_numeric_warp 1.40s, startup_gfx2hlsl_f32_sdwa 3.08s, pixel_aot_swaprel_warp 1.20s, compute_store_aot_gfx1013_image_uav_load_warp 0.93s, pixel_aot_plain_bitscan_warp 1.55s, pixel_aot_mac_legacy_warp 1.32s, startup_gfx2hlsl_dpp_pair_hardware 2.01s, pixel_aot_align_warp 1.51s, pixel_aot_plain_movrel_warp 1.77s, pixel_aot_pk_fmac_warp 2.10s, pixel_aot_f16_to_int16_warp 1.84s, startup_gfx2hlsl_watch 2.68s, startup_gfx2hlsl_shift64_hardware 3.35s, pixel_aot_bitset64_warp 1.77s, pixel_aot_int16_vop3_warp 1.72s, startup_gfx2hlsl_dpp_quad_swap_warp 1.94s, pixel_aot_flat_scratch_warp 1.46s, pixel_aot_sdwa_integer_warp 1.32s, startup_gfx2hlsl_mad_dispatch_hardware 1.64s, pixel_aot_e64_spellings_warp 1.28s, startup_gfx2hlsl_dpp_quad_swap_hardware 2.10s, pixel_aot_first_bit_warp 1.56s, pixel_aot_dpp_movrel_warp 1.43s, startup_gfx2hlsl_compute_hardware 2.15s, pixel_aot_mad64_warp 1.27s, pixel_aot_sdwa_movrel_warp 1.30s, pixel_aot_div_fmas_warp 1.39s, pixel_aot_region_scalar_load_warp 1.60s, pixel_aot_uncompressed_integer_export_warp 1.21s, startup_gfx2hlsl_mad_dispatch_warp 1.64s, pixel_aot_carry_in_warp 1.13s, pixel_aot_uncompressed_export_warp 1.16s, pixel_aot_carry_out_warp 1.10s, pixel_aot_sdwa_unary_warp 1.13s, startup_gfx2hlsl_cmp16_warp 2.03s, pixel_aot_swap_warp 1.20s, pixel_aot_brev_warp 1.17s, startup_gfx2hlsl_sdwa_cvt_hardware 1.89s, startup_gfx2hlsl_mad_preserve_hardware 1.04s, pixel_aot_smovrel_warp 1.28s, pixel_aot_region_scalar_alu_warp 1.21s, startup_gfx2hlsl_cmp16_hardware 1.96s, pixel_aot_region_waits_warp 1.20s, pixel_aot_sdwa_cmp_warp 1.13s, pixel_aot_frexp_exp_warp 1.06s, pixel_aot_sad_warp 1.10s, pixel_aot_e64_integer_warp 1.01s, pixel_aot_s_call_warp 1.14s, startup_gfx2hlsl_f32_lg 1.55s, pixel_aot_vop1_nops_warp 0.82s, pixel_aot_bfm_warp 0.99s, pixel_aot_title_loads_warp 1.23s, pixel_aot_smem_pointers_warp 0.99s, pixel_aot_compressed_export_warp 0.97s, pixel_aot_sopk_hwreg_warp 0.82s, pixel_aot_integer_nc_warp 1.00s, pixel_aot_pack_b32_warp 0.94s, startup_gfx2hlsl_compute_warp 2.12s, pixel_aot_ds_swizzle_warp 0.98s, pixel_aot_pack_int16_warp 0.98s, pixel_aot_e64_approx_warp 0.88s, startup_gfx2hlsl_scalar_m0_warp 1.19s, pixel_aot_sopp_round_mode_warp 0.91s, startup_gfx2hlsl_compute_dropped-store_hardware 0.34s, startup_gfx2hlsl_compute_swapped-axes_hardware 0.34s, startup_gfx2hlsl_compute_b-offset_hardware 0.33s, startup_gfx2hlsl_vopc_sdwa_warp 1.38s, startup_gfx2hlsl_mad_preserve_warp 1.07s, startup_gfx2hlsl_vopc_sdwa_hardware 1.33s, startup_gfx2hlsl_compute_c-unpredicated_hardware 0.34s, startup_gfx2hlsl_compute_mbcnt_warp 0.75s, startup_gfx2hlsl_sgpr_spill_warp 1.01s, startup_gfx2hlsl_interp_f16_warp 0.95s, startup_gfx2hlsl_dpp_quad_broadcast_warp 1.01s, pixel_aot_attribute_sampled_warp 0.76s, startup_gfx2hlsl_scalar_m0_hardware 1.15s, startup_gfx2hlsl_capture 1.22s, startup_gfx2hlsl_compute_dropped-store_warp 0.29s, startup_gfx2hlsl_compute_c-unpredicated_warp 0.29s, startup_gfx2hlsl_compute_b-offset_warp 0.31s, startup_gfx2hlsl_sgpr_spill_hardware 1.03s, startup_gfx2hlsl_compute_swapped-axes_warp 0.33s, startup_gfx2hlsl_compute_controls 0.57s, startup_gfx2hlsl_root 0.83s, startup_gfx2hlsl_dpp_quad_broadcast_hardware 1.22s, startup_gfx2hlsl_cvt_pk_u8_warp 1.03s, startup_gfx2hlsl_join_symbols_warp 0.41s, startup_gfx2hlsl_compute_g-overlap_warp 0.30s, startup_gfx2hlsl_sopk_accum 1.15s, startup_gfx2hlsl_interp_f16_hardware 0.98s, startup_gfx2hlsl_join_symbols_controls 0.25s, startup_gfx2hlsl_bit_alu_controls 0.85s, startup_gfx2hlsl_cvt_pk_u8_hardware 0.81s, startup_gfx2hlsl_refusals 0.57s, startup_gfx2hlsl_sdwa 0.18s, startup_gfx2hlsl_sample_c_lz_mip 0.19s, startup_gfx2hlsl_buffer_store 0.56s, startup_gfx2hlsl_compute_mbcnt_hardware 0.70s, startup_gfx2hlsl_compute_g-swapped-offsets_warp 0.29s, startup_gfx2hlsl_cvt_alu_controls 0.18s, startup_gfx2hlsl_compute_j-scalar-dropped_warp 0.29s, startup_gfx2hlsl_swap 0.31s, startup_gfx2hlsl_join_symbols_hardware 0.38s, startup_gfx2hlsl_compute_h-inner-unpredicated_warp 0.29s, startup_gfx2hlsl_draw_skip 0.49s, startup_gfx2hlsl_compute_k-block-entered_hardware 0.29s, startup_gfx2hlsl_compute_g-swapped-offsets_hardware 0.29s, startup_gfx2hlsl_compute_f-peer_hardware 0.31s, startup_gfx2hlsl_interp_f16_controls 0.23s, startup_gfx2hlsl_compute_k-block-entered_warp 0.30s, startup_gfx2hlsl_compute_h-inner-unpredicated_hardware 0.29s, startup_gfx2hlsl_compute_j-scalar-dropped_hardware 0.30s, startup_gfx2hlsl_compute_g-overlap_hardware 0.29s, startup_gfx2hlsl_compute_f-broadcast_hardware 0.29s, startup_gfx2hlsl_sdwa_cvt 0.30s, startup_gfx2hlsl_join_symbols_folded_warp 0.22s, startup_gfx2hlsl_compute_f-broadcast_warp 0.30s, startup_gfx2hlsl_dpp_quad_swap_controls 0.16s, startup_gfx2hlsl_sopk_signext 0.16s, startup_gfx2hlsl_cmp16_controls 0.27s, startup_gfx2hlsl_compute_f-peer_warp 0.31s, startup_gfx2hlsl_shift64_controls 0.15s, startup_gfx2hlsl_operand_count 0.21s, startup_gfx2hlsl_dpp_pair 0.13s, startup_gfx2hlsl_scalar_m0_controls 0.11s, startup_gfx2hlsl_export_mask_drop_control 0.15s, startup_gfx2hlsl_export_mask 0.14s, startup_gfx2hlsl_join_symbols_folded_hardware 0.22s, startup_gfx2hlsl_sgpr_spill_controls 0.14s, startup_gfx2hlsl_add_sub_co_controls 0.12s, startup_gfx2hlsl_calculated_target 0.11s, startup_gfx2hlsl_readfirstlane_uniform 0.14s, startup_gfx2hlsl_s_sext_cmov 0.12s, startup_gfx2hlsl_cvt_pk_u8_controls 0.12s, startup_gfx2hlsl_scalar_shift64_bfe_controls 0.22s, startup_gfx2hlsl_opsel 0.10s, startup_gfx2hlsl_tbuffer_16f 0.11s, startup_gfx2hlsl_vcvt_omod 0.11s, startup_gfx2hlsl_dpp_quad_broadcast 0.14s, startup_gfx2hlsl_mask_overwrite_controls 0.12s, startup_gfx2hlsl_int_med3_controls 0.12s, startup_gfx2hlsl_cselect_mask_controls 0.11s, startup_gfx2hlsl_s_bitcmp 0.11s, startup_gfx2hlsl_cndmask_neg 0.11s, startup_gfx2hlsl_desc_ptr_prop 0.11s, startup_gfx2hlsl_smem_offset 0.11s, startup_gfx2hlsl_b64_shift 0.10s, startup_gfx2hlsl_readfirstlane_recompute 0.12s, startup_gfx2hlsl_op_refusals 0.10s, startup_gfx2hlsl_neg_operand 0.10s, startup_gfx2hlsl_handler_arity 0.11s, startup_gfx2hlsl_loop_constants 0.10s, startup_gfx2hlsl_compare_dst_controls 0.10s, startup_gfx2hlsl_scalar_brev_fold 0.11s, startup_gfx2hlsl_saveexec_same_reg_controls 0.10s, startup_gfx2hlsl_mad_controls 0.13s, startup_gfx2hlsl_image_arity 0.10s, startup_gfx2hlsl_image_get_lod_controls 0.11s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim -- -j 2): 127.65s (configure 1.66s)
    • Test (ctest --preset release -R '^(startup_gfx2hlsl_.*|pixel_aot_.*_warp|compute_store_aot_.*_warp|form_coverage)$' --parallel 6 --no-tests=error --output-on-failure): 296/296 passed (131.40s: pixel_aot_three_way_warp 17.18s, pixel_aot_buffer_color_warp 17.54s, pixel_aot_bits_warp 22.31s, form_coverage 29.01s, startup_gfx2hlsl_f32_nan_warp 14.63s, startup_gfx2hlsl_f32_sdwa_warp 35.42s, pixel_aot_compare_warp 14.62s, startup_gfx2hlsl_f32_sdwa_hardware 19.69s, pixel_aot_e64_warp 7.53s, pixel_aot_comparisons_warp 11.29s, compute_store_aot_guard_read_warp 8.07s, compute_store_aot_lds_qword_warp 7.29s, compute_store_aot_lds_arithmetic_warp 6.80s, pixel_aot_blend_scalar_warp 10.14s, compute_store_aot_descriptor_load_format_warp 47.57s, startup_gfx2hlsl_f32_nan_hardware 13.67s, compute_store_aot_lds_private_warp 4.81s, compute_store_aot_mimg_mip_warp 4.77s, pixel_aot_cmpx_e64_warp 5.42s, compute_store_aot_heap_view_load_warp 7.57s, startup_gfx2hlsl_f32_nan 6.98s, pixel_aot_f16_arith_warp 6.23s, compute_store_aot_lds_f32_warp 4.35s, compute_store_aot_mimg_load_warp 4.83s, compute_store_aot_mimg_packed_warp 4.07s, pixel_aot_cvt_f64_f32_warp 7.55s, compute_store_aot_heap_view_store_warp 8.72s, pixel_aot_core_vector_warp 6.25s, compute_store_aot_mimg_store_packed_warp 2.64s, pixel_aot_compare_gather_warp 3.36s, pixel_aot_cvt_flr_rpi_warp 5.74s, startup_gfx2hlsl_vopc_sdwa 6.45s, compute_store_aot_mtbuf_load_warp 2.63s, compute_store_aot_mubuf_reduction_x2_warp 2.75s, compute_store_aot_lds_replacement_warp 3.06s, compute_store_aot_mimg_atomic_counter_warp 2.54s, compute_store_aot_mubuf_reduction_warp 2.75s, compute_store_aot_mtbuf_store_warp 2.69s, startup_gfx2hlsl_cvt_alu_warp 5.99s, compute_store_aot_mubuf_subword_warp 2.01s, startup_gfx2hlsl_cvt_alu_hardware 5.96s, compute_store_aot_lds_packed_warp 3.11s, compute_store_aot_mimg_atomic_float_warp 1.98s, compute_store_aot_mimg_store_warp 2.60s, pixel_aot_cmpx_regions_warp 7.25s, pixel_aot_compare_sample_warp 3.12s, startup_gfx2hlsl_f32_lg_hardware 4.57s, compute_store_aot_salu_i32_warp 1.48s, pixel_aot_predicate_rounding_warp 5.30s, compute_store_aot_mimg_atomic_minmax_warp 1.76s, compute_store_aot_mubuf_store_format_warp 2.35s, compute_store_aot_descriptor_store_format_warp 1.95s, compute_store_aot_mubuf_d16_warp 2.28s, compute_store_aot_alu_minmax3_warp 1.88s, pixel_aot_sample_coarse_gradient_warp 2.65s, compute_store_aot_mimg_resinfo_warp 2.23s, compute_store_aot_mbcnt_warp 1.55s, startup_gfx2hlsl_cmp_class_f16 5.73s, compute_store_aot_bcnt_exec_warp 1.22s, compute_store_aot_cvt_u32_f32_warp 1.36s, compute_store_aot_mimg_atomic_integer_warp 1.72s, startup_gfx2hlsl_bit_alu_hardware 6.40s, pixel_aot_sample_gradient_warp 2.61s, compute_store_aot_lane_mask_warp 2.35s, compute_store_aot_mubuf_store_subword_warp 2.09s, compute_store_aot_f32_warp 2.21s, pixel_aot_cvt_int_f64_warp 4.87s, compute_store_aot_vadd_nc_i32_warp 1.44s, compute_store_aot_lds_wide_replacement_warp 2.04s, compute_store_aot_mubuf_load_format_d16_warp 1.76s, startup_gfx2hlsl_bit_alu_warp 6.65s, pixel_aot_shift64_warp 3.95s, compute_store_aot_bfe_warp 1.36s, startup_gfx2hlsl_sop2_complement 5.78s, startup_gfx2hlsl_f32_lg_warp 4.61s, compute_store_aot_alu_xor3_warp 1.86s, compute_store_aot_ff1_scalar_warp 1.29s, compute_store_aot_lds_strided_warp 1.75s, compute_store_aot_scratch_base_warp 1.59s, compute_store_aot_alu_cvt_pk_u8_warp 1.78s, startup_gfx2hlsl_cmp_class 6.37s, compute_store_aot_readlane_warp 1.38s, compute_store_aot_dot_u_warp 1.45s, compute_store_aot_alu_bcnt_warp 2.13s, compute_store_aot_mubuf_format_warp 1.98s, pixel_aot_sample_offset_warp 2.32s, pixel_aot_exec_regions_warp 6.27s, pixel_aot_f16_round_warp 4.83s, compute_store_aot_writelane_warp 1.80s, pixel_aot_gather_warp 4.10s, compute_store_aot_mubuf_exchange_warp 1.62s, startup_gfx2hlsl_s_lshl_add 5.82s, compute_store_aot_mubuf_exchange-x2_warp 1.59s, compute_store_aot_sub_co_warp 1.45s, pixel_aot_cmp_f64_warp 4.73s, compute_store_aot_ff1_exec_warp 1.31s, compute_store_aot_add_co_warp 1.40s, compute_store_aot_mubuf_csub_warp 1.29s, compute_store_aot_mubuf_vector_warp 1.65s, compute_store_aot_mimg_atomic_exchange_warp 1.35s, compute_store_aot_mubuf_counter_warp 1.49s, compute_store_aot_dpp_warp 1.17s, compute_store_aot_alu_med3_warp 1.56s, pixel_aot_get_lod_warp 1.86s, compute_store_aot_mubuf_counter-x2_warp 1.48s, compute_store_aot_mubuf_store_format_xyz_warp 1.41s, compute_store_aot_ds_route_warp 1.63s, compute_store_aot_mimg_msaa_warp 1.27s, compute_store_aot_alu_mad_i24_warp 1.50s, compute_store_aot_salu_absdiff_warp 1.52s, compute_store_aot_gfx1013_image_store_warp 1.08s, compute_store_aot_gfx1013_image_atomics_warp 1.99s, compute_store_aot_mac_f32_warp 1.48s, pixel_aot_region_body_warp 2.40s, pixel_aot_f16_fmac_ldexp_warp 3.83s, startup_gfx2hlsl_shift64_hardware 3.54s, pixel_aot_cvt_f64_int_warp 3.26s, pixel_aot_dpp_extra_warp 3.37s, startup_gfx2hlsl_dpp_pair_hardware 2.07s, pixel_aot_cmp64_warp 3.21s, compute_store_aot_vcmp_select_warp 2.84s, pixel_aot_int16_ternary_warp 2.95s, compute_store_aot_desc_numeric_warp 1.45s, pixel_aot_sample_lod_warp 1.90s, startup_gfx2hlsl_shift64_warp 3.60s, startup_gfx2hlsl_mad_dispatch_hardware 1.71s, pixel_aot_f16_cvt_int16_warp 2.73s, pixel_aot_dpp_f16_warp 4.66s, pixel_aot_dpp_cvt_warp 2.65s, compute_store_aot_alu_lane_gaps_warp 1.93s, pixel_aot_dmask_warp 1.62s, startup_gfx2hlsl_dpp_pair_warp 1.98s, startup_gfx2hlsl_f32_sdwa 3.33s, startup_gfx2hlsl_dpp_quad_swap_hardware 2.13s, pixel_aot_pk_fmac_warp 2.24s, pixel_aot_plain_movrel_warp 2.02s, startup_gfx2hlsl_compute_hardware 2.29s, pixel_aot_cvt_float_int_e64_warp 2.28s, pixel_aot_flat_scratch_warp 1.57s, compute_store_aot_gfx1013_image_store_d16_warp 0.96s, startup_gfx2hlsl_watch 2.80s, pixel_aot_scc_skip_warp 1.95s, pixel_aot_cvt_f32_f64_warp 2.09s, startup_gfx2hlsl_dpp_quad_swap_warp 2.11s, pixel_aot_f16_to_int16_warp 2.21s, pixel_aot_bitset64_warp 2.14s, pixel_aot_int16_vop3_warp 2.08s, pixel_aot_vop3_ternary_int_warp 2.03s, startup_gfx2hlsl_sdwa_cvt_hardware 2.11s, pixel_aot_sdwa_integer_warp 1.49s, startup_gfx2hlsl_cmp16_warp 2.15s, startup_gfx2hlsl_cmp16_hardware 2.13s, pixel_aot_align_warp 1.79s, pixel_aot_u32_from_f32_warp 1.38s, pixel_aot_dpp_movrel_warp 1.51s, pixel_aot_div_fmas_warp 1.62s, startup_gfx2hlsl_f32_lg 1.85s, pixel_aot_e64_spellings_warp 1.34s, startup_gfx2hlsl_mad_preserve_hardware 1.07s, pixel_aot_plain_bitscan_warp 1.63s, startup_gfx2hlsl_sdwa_cvt_warp 2.02s, pixel_aot_rndne_warp 1.68s, pixel_aot_first_bit_warp 1.62s, pixel_aot_sdwa_unary_warp 1.31s, pixel_aot_region_scalar_load_warp 1.77s, pixel_aot_sdwa_movrel_warp 1.43s, pixel_aot_swaprel_warp 1.23s, pixel_aot_pack_b32_warp 1.03s, pixel_aot_mac_legacy_warp 1.41s, compute_store_aot_gfx1013_gather4_l_warp 1.83s, pixel_aot_swap_warp 1.26s, pixel_aot_mad64_warp 1.40s, pixel_aot_carry_in_warp 1.28s, pixel_aot_region_scalar_alu_warp 1.27s, pixel_aot_sopk_hwreg_warp 0.92s, pixel_aot_uncompressed_integer_export_warp 1.26s, pixel_aot_title_loads_warp 1.53s, pixel_aot_uncompressed_export_warp 1.29s, startup_gfx2hlsl_mad_dispatch_warp 1.65s, pixel_aot_smovrel_warp 1.31s, pixel_aot_brev_warp 1.27s, pixel_aot_region_waits_warp 1.21s, pixel_aot_sdwa_cmp_warp 1.30s, pixel_aot_sad_warp 1.31s, pixel_aot_carry_out_warp 1.19s, pixel_aot_frexp_exp_warp 1.17s, pixel_aot_s_call_warp 1.23s, pixel_aot_e64_integer_warp 1.17s, pixel_aot_attribute_warp 1.07s, pixel_aot_integer_nc_warp 1.14s, startup_gfx2hlsl_scalar_m0_hardware 1.26s, pixel_aot_bfm_warp 1.15s, pixel_aot_vop1_nops_warp 0.97s, startup_gfx2hlsl_compute_warp 2.27s, pixel_aot_smem_pointers_warp 1.11s, pixel_aot_compressed_export_warp 1.05s, pixel_aot_e64_approx_warp 0.92s, pixel_aot_ds_swizzle_warp 1.01s, pixel_aot_pack_int16_warp 1.04s, startup_gfx2hlsl_vopc_sdwa_hardware 1.38s, startup_gfx2hlsl_scalar_m0_warp 1.22s, startup_gfx2hlsl_sgpr_spill_warp 1.05s, pixel_aot_sopp_round_mode_warp 0.98s, startup_gfx2hlsl_vopc_sdwa_warp 1.35s, startup_gfx2hlsl_capture 1.30s, startup_gfx2hlsl_mad_preserve_warp 1.04s, startup_gfx2hlsl_dpp_quad_broadcast_hardware 1.01s, startup_gfx2hlsl_sgpr_spill_hardware 1.05s, startup_gfx2hlsl_sopk_accum 1.14s, startup_gfx2hlsl_interp_f16_hardware 0.96s, startup_gfx2hlsl_interp_f16_warp 0.97s, startup_gfx2hlsl_dpp_quad_broadcast_warp 0.99s, compute_store_aot_gfx1013_image_uav_load_warp 1.33s, startup_gfx2hlsl_root 0.90s, startup_gfx2hlsl_cvt_pk_u8_warp 1.21s, startup_gfx2hlsl_bit_alu_controls 1.02s, pixel_aot_attribute_sampled_warp 0.97s, startup_gfx2hlsl_compute_mbcnt_warp 1.12s, startup_gfx2hlsl_compute_g-overlap_warp 0.32s, startup_gfx2hlsl_compute_g-swapped-offsets_warp 0.32s, startup_gfx2hlsl_join_symbols_hardware 0.40s, startup_gfx2hlsl_join_symbols_warp 0.43s, startup_gfx2hlsl_compute_mbcnt_hardware 0.76s, startup_gfx2hlsl_cvt_pk_u8_hardware 0.86s, startup_gfx2hlsl_draw_skip 0.55s, startup_gfx2hlsl_compute_j-scalar-dropped_warp 0.31s, startup_gfx2hlsl_buffer_store 0.59s, startup_gfx2hlsl_compute_b-offset_warp 0.33s, startup_gfx2hlsl_compute_controls 0.50s, startup_gfx2hlsl_refusals 0.60s, startup_gfx2hlsl_sdwa 0.25s, startup_gfx2hlsl_compute_k-block-entered_hardware 0.34s, startup_gfx2hlsl_compute_swapped-axes_warp 0.33s, startup_gfx2hlsl_compute_c-unpredicated_warp 0.35s, startup_gfx2hlsl_compute_dropped-store_warp 0.32s, startup_gfx2hlsl_compute_j-scalar-dropped_hardware 0.35s, startup_gfx2hlsl_join_symbols_folded_hardware 0.24s, startup_gfx2hlsl_compute_h-inner-unpredicated_warp 0.31s, startup_gfx2hlsl_join_symbols_controls 0.27s, startup_gfx2hlsl_compute_g-overlap_hardware 0.30s, startup_gfx2hlsl_compute_f-peer_hardware 0.29s, startup_gfx2hlsl_compute_f-broadcast_hardware 0.32s, startup_gfx2hlsl_compute_g-swapped-offsets_hardware 0.30s, startup_gfx2hlsl_scalar_shift64_bfe_controls 0.23s, startup_gfx2hlsl_compute_h-inner-unpredicated_hardware 0.29s, startup_gfx2hlsl_compute_swapped-axes_hardware 0.28s, startup_gfx2hlsl_compute_k-block-entered_warp 0.28s, startup_gfx2hlsl_compute_dropped-store_hardware 0.27s, startup_gfx2hlsl_compute_c-unpredicated_hardware 0.30s, startup_gfx2hlsl_compute_b-offset_hardware 0.30s, startup_gfx2hlsl_dpp_quad_swap_controls 0.14s, startup_gfx2hlsl_compute_f-peer_warp 0.30s, startup_gfx2hlsl_swap 0.32s, startup_gfx2hlsl_compute_f-broadcast_warp 0.29s, startup_gfx2hlsl_cmp16_controls 0.31s, startup_gfx2hlsl_interp_f16_controls 0.22s, startup_gfx2hlsl_cvt_alu_controls 0.18s, startup_gfx2hlsl_scalar_m0_controls 0.11s, startup_gfx2hlsl_sample_c_lz_mip 0.18s, startup_gfx2hlsl_join_symbols_folded_warp 0.20s, startup_gfx2hlsl_dpp_pair 0.15s, startup_gfx2hlsl_sdwa_cvt 0.33s, startup_gfx2hlsl_operand_count 0.22s, startup_gfx2hlsl_cndmask_neg 0.10s, startup_gfx2hlsl_vcvt_omod 0.11s, startup_gfx2hlsl_sopk_signext 0.15s, startup_gfx2hlsl_b64_shift 0.10s, startup_gfx2hlsl_desc_ptr_prop 0.11s, startup_gfx2hlsl_shift64_controls 0.18s, startup_gfx2hlsl_readfirstlane_uniform 0.15s, startup_gfx2hlsl_opsel 0.11s, startup_gfx2hlsl_sgpr_spill_controls 0.14s, startup_gfx2hlsl_tbuffer_16f 0.10s, startup_gfx2hlsl_smem_offset 0.10s, startup_gfx2hlsl_cvt_pk_u8_controls 0.12s, startup_gfx2hlsl_dpp_quad_broadcast 0.14s, startup_gfx2hlsl_s_sext_cmov 0.11s, startup_gfx2hlsl_export_mask_drop_control 0.15s, startup_gfx2hlsl_mad_controls 0.15s, startup_gfx2hlsl_op_refusals 0.10s, startup_gfx2hlsl_export_mask 0.14s, startup_gfx2hlsl_add_sub_co_controls 0.15s, startup_gfx2hlsl_image_get_lod_controls 0.12s, startup_gfx2hlsl_calculated_target 0.14s, startup_gfx2hlsl_int_med3_controls 0.16s, startup_gfx2hlsl_s_bitcmp 0.14s, startup_gfx2hlsl_readfirstlane_recompute 0.12s, startup_gfx2hlsl_scalar_brev_fold 0.16s, startup_gfx2hlsl_mask_overwrite_controls 0.12s, startup_gfx2hlsl_cselect_mask_controls 0.12s, startup_gfx2hlsl_saveexec_same_reg_controls 0.13s, startup_gfx2hlsl_handler_arity 0.13s, startup_gfx2hlsl_loop_constants 0.11s, startup_gfx2hlsl_image_arity 0.11s, startup_gfx2hlsl_neg_operand 0.10s, startup_gfx2hlsl_compare_dst_controls 0.10s)
  • Windows Python checks: tests/mesh_heap_sampler_check.py ok (0.5s), tests/startup_buffer_address_check.py ok (0.3s), tests/startup_compute_request_offline_check.py ok (0.3s), tests/startup_compute_translate_check.py ok (0.2s), tests/startup_flat_param_check.py ok (0.1s), tests/startup_gfx2hlsl_add_sub_co_check.py ok (0.1s), tests/startup_gfx2hlsl_bit_alu_check.py ok (0.5s), tests/startup_gfx2hlsl_capture_check.py ok (0.7s), tests/startup_gfx2hlsl_cmp16_check.py ok (0.2s), tests/startup_gfx2hlsl_compare_dst_check.py ok (0.1s), tests/startup_gfx2hlsl_compute_check.py ok (0.3s), tests/startup_gfx2hlsl_cselect_mask_check.py ok (0.1s), tests/startup_gfx2hlsl_cvt_alu_check.py ok (0.1s), tests/startup_gfx2hlsl_f32_lg_check.py ok (1.0s), tests/startup_gfx2hlsl_f32_nan_check.py ok (3.9s), tests/startup_gfx2hlsl_handler_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_get_lod_check.py ok (0.1s), tests/startup_gfx2hlsl_int_med3_check.py ok (0.1s), tests/startup_gfx2hlsl_join_symbols_check.py ok (0.2s), tests/startup_gfx2hlsl_loop_constants_check.py ok (0.1s), tests/startup_gfx2hlsl_mask_overwrite_check.py ok (0.1s), tests/startup_gfx2hlsl_operand_count_check.py ok (0.1s), tests/startup_gfx2hlsl_readfirstlane_recompute_check.py ok (0.1s), tests/startup_gfx2hlsl_readfirstlane_uniform_check.py ok (0.1s), tests/startup_gfx2hlsl_refusals_check.py ok (0.3s), tests/startup_gfx2hlsl_root_check.py ok (0.5s), tests/startup_gfx2hlsl_saveexec_same_reg_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_brev_fold_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_m0_check.py ok (0.1s), tests/startup_gfx2hlsl_sdwa_cvt_check.py ok (0.2s), tests/startup_gfx2hlsl_sgpr_spill_check.py ok (0.1s), tests/startup_gfx2hlsl_shift64_check.py ok (0.1s), tests/startup_gfx2hlsl_smem_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_sop2_complement_check.py ok (3.3s), tests/startup_gfx2hlsl_sopk_accum_check.py ok (0.6s), tests/startup_gfx2hlsl_sopk_signext_check.py ok (0.1s), tests/startup_gfx2hlsl_swap_check.py ok (0.2s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (3.5s), tests/startup_gfx2hlsl_watch_check.py ok (2.2s), tests/startup_image_2d_array_check.py ok (0.1s), tests/startup_image_3d_check.py ok (0.1s), tests/startup_image_gather_lz_check.py ok (0.5s), tests/startup_image_load_d16_check.py ok (0.7s), tests/startup_image_sample_a16_check.py ok (0.1s), tests/startup_image_sample_b_check.py ok (0.1s), tests/startup_image_sample_c_check.py ok (0.2s), tests/startup_image_sample_l_check.py ok (0.1s), tests/startup_image_sample_lod_check.py ok (0.1s), tests/startup_inline_sampler_check.py ok (0.1s), tests/startup_run_ps1_check.py ok (7.8s), tests/startup_run_sh_check.py skipped by itself on Windows, rc=77 (0.1s), tests/startup_sampler_heap_check.py ok (0.1s), tests/startup_smem_address_check.py ok (0.1s), tests/startup_stream_fetch_check.py ok (0.2s), tests/startup_stream_interface_check.py ok (0.2s), tests/startup_translator_check.py ok (0.3s)
  • sccache: 0/2 hits; wall 303.9s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7168711471 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7168711471). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T16:54:28Z. --- Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `99e1c69f7f72a63a5ef4a8f1bd83360f7b3b5ad5`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim -- -j 2`): `2.76s` (configure `1.65s`) - Test (`ctest --preset dev -R '^(startup_gfx2hlsl_.*|pixel_aot_.*_warp|compute_store_aot_.*_warp|form_coverage)$' --parallel 6 --no-tests=error --output-on-failure`): **296/296 passed** (`127.64s`: `pixel_aot_bits_warp` `13.46s`, `pixel_aot_buffer_color_warp` `7.37s`, `form_coverage` `26.25s`, `pixel_aot_three_way_warp` `7.53s`, `startup_gfx2hlsl_f32_nan_warp` `30.21s`, `pixel_aot_compare_warp` `31.60s`, `pixel_aot_comparisons_warp` `9.74s`, `startup_gfx2hlsl_f32_sdwa_warp` `36.11s`, `pixel_aot_e64_warp` `7.79s`, `compute_store_aot_heap_view_load_warp` `9.53s`, `startup_gfx2hlsl_cvt_alu_warp` `6.67s`, `compute_store_aot_descriptor_load_format_warp` `43.23s`, `compute_store_aot_guard_read_warp` `7.84s`, `pixel_aot_blend_scalar_warp` `9.86s`, `compute_store_aot_lds_qword_warp` `6.84s`, `compute_store_aot_lds_arithmetic_warp` `6.39s`, `startup_gfx2hlsl_f32_sdwa_hardware` `19.33s`, `pixel_aot_cmpx_regions_warp` `7.26s`, `pixel_aot_cvt_flr_rpi_warp` `5.98s`, `startup_gfx2hlsl_f32_nan_hardware` `13.47s`, `compute_store_aot_mimg_mip_warp` `4.89s`, `compute_store_aot_mimg_load_warp` `4.96s`, `compute_store_aot_heap_view_store_warp` `8.84s`, `pixel_aot_cvt_f64_f32_warp` `7.49s`, `pixel_aot_f16_arith_warp` `6.46s`, `pixel_aot_predicate_rounding_warp` `5.65s`, `compute_store_aot_lds_private_warp` `4.90s`, `compute_store_aot_mimg_packed_warp` `4.07s`, `pixel_aot_compare_gather_warp` `3.39s`, `pixel_aot_gather_warp` `3.50s`, `compute_store_aot_lds_f32_warp` `4.35s`, `pixel_aot_cmpx_e64_warp` `5.21s`, `pixel_aot_core_vector_warp` `6.01s`, `compute_store_aot_lds_replacement_warp` `3.08s`, `startup_gfx2hlsl_f32_nan` `6.98s`, `pixel_aot_exec_regions_warp` `5.87s`, `pixel_aot_compare_sample_warp` `3.17s`, `startup_gfx2hlsl_bit_alu_warp` `6.73s`, `compute_store_aot_lds_packed_warp` `3.26s`, `startup_gfx2hlsl_f32_lg_warp` `4.94s`, `pixel_aot_sample_coarse_gradient_warp` `2.76s`, `pixel_aot_sample_gradient_warp` `2.63s`, `compute_store_aot_mubuf_reduction_x2_warp` `2.72s`, `compute_store_aot_mimg_atomic_counter_warp` `2.33s`, `compute_store_aot_alu_lane_gaps_warp` `1.81s`, `compute_store_aot_lane_mask_warp` `2.38s`, `compute_store_aot_mtbuf_store_warp` `2.73s`, `compute_store_aot_mubuf_reduction_warp` `2.79s`, `startup_gfx2hlsl_sop2_complement` `5.82s`, `compute_store_aot_mimg_store_packed_warp` `2.70s`, `compute_store_aot_mimg_store_warp` `2.60s`, `startup_gfx2hlsl_cvt_alu_hardware` `5.83s`, `compute_store_aot_gfx1013_image_atomics_warp` `1.96s`, `compute_store_aot_mubuf_d16_warp` `2.31s`, `compute_store_aot_mubuf_store_format_warp` `2.41s`, `pixel_aot_dpp_f16_warp` `4.34s`, `compute_store_aot_vcmp_select_warp` `2.67s`, `compute_store_aot_mimg_atomic_float_warp` `2.05s`, `compute_store_aot_mtbuf_load_warp` `2.61s`, `pixel_aot_sample_offset_warp` `2.14s`, `compute_store_aot_descriptor_store_format_warp` `1.99s`, `compute_store_aot_mimg_resinfo_warp` `2.21s`, `compute_store_aot_mubuf_store_subword_warp` `2.10s`, `compute_store_aot_f32_warp` `2.11s`, `pixel_aot_cvt_int_f64_warp` `4.41s`, `compute_store_aot_lds_wide_replacement_warp` `1.94s`, `startup_gfx2hlsl_cmp_class_f16` `5.57s`, `compute_store_aot_sub_co_warp` `1.36s`, `pixel_aot_f16_round_warp` `4.34s`, `compute_store_aot_ff1_scalar_warp` `1.40s`, `compute_store_aot_scratch_base_warp` `1.61s`, `compute_store_aot_mbcnt_warp` `1.46s`, `startup_gfx2hlsl_vopc_sdwa` `5.78s`, `compute_store_aot_add_co_warp` `1.33s`, `compute_store_aot_cvt_u32_f32_warp` `1.42s`, `compute_store_aot_gfx1013_gather4_l_warp` `1.74s`, `compute_store_aot_bcnt_exec_warp` `1.34s`, `compute_store_aot_mubuf_subword_warp` `1.91s`, `compute_store_aot_mimg_atomic_minmax_warp` `1.78s`, `startup_gfx2hlsl_bit_alu_hardware` `6.57s`, `compute_store_aot_dot_u_warp` `1.35s`, `compute_store_aot_writelane_warp` `1.39s`, `compute_store_aot_vadd_nc_i32_warp` `1.49s`, `compute_store_aot_salu_i32_warp` `1.39s`, `compute_store_aot_ff1_exec_warp` `1.20s`, `pixel_aot_get_lod_warp` `1.78s`, `compute_store_aot_lds_strided_warp` `1.76s`, `compute_store_aot_mimg_atomic_integer_warp` `1.76s`, `compute_store_aot_alu_xor3_warp` `1.97s`, `compute_store_aot_alu_bcnt_warp` `2.05s`, `compute_store_aot_alu_minmax3_warp` `1.89s`, `compute_store_aot_salu_absdiff_warp` `1.45s`, `compute_store_aot_bfe_warp` `1.42s`, `startup_gfx2hlsl_f32_lg_hardware` `4.87s`, `compute_store_aot_mubuf_format_warp` `1.70s`, `compute_store_aot_mubuf_load_format_d16_warp` `1.68s`, `startup_gfx2hlsl_s_lshl_add` `4.68s`, `compute_store_aot_readlane_warp` `1.22s`, `compute_store_aot_alu_cvt_pk_u8_warp` `1.79s`, `startup_gfx2hlsl_cmp_class` `6.02s`, `pixel_aot_cmp_f64_warp` `4.34s`, `pixel_aot_dpp_extra_warp` `3.09s`, `compute_store_aot_mac_f32_warp` `1.37s`, `compute_store_aot_mubuf_csub_warp` `1.05s`, `compute_store_aot_alu_mad_i24_warp` `1.50s`, `compute_store_aot_mubuf_exchange_warp` `1.45s`, `compute_store_aot_alu_med3_warp` `1.46s`, `compute_store_aot_mubuf_counter_warp` `1.33s`, `compute_store_aot_mubuf_vector_warp` `1.57s`, `compute_store_aot_mubuf_counter-x2_warp` `1.31s`, `compute_store_aot_mubuf_exchange-x2_warp` `1.46s`, `compute_store_aot_ds_route_warp` `1.34s`, `pixel_aot_shift64_warp` `4.11s`, `pixel_aot_f16_fmac_ldexp_warp` `3.75s`, `compute_store_aot_dpp_warp` `1.16s`, `pixel_aot_region_body_warp` `2.46s`, `pixel_aot_sample_lod_warp` `1.76s`, `compute_store_aot_mimg_msaa_warp` `1.15s`, `compute_store_aot_mimg_atomic_exchange_warp` `1.25s`, `pixel_aot_dmask_warp` `1.56s`, `compute_store_aot_mubuf_store_format_xyz_warp` `1.15s`, `compute_store_aot_gfx1013_image_store_warp` `1.00s`, `pixel_aot_rndne_warp` `1.61s`, `pixel_aot_cmp64_warp` `2.98s`, `pixel_aot_attribute_warp` `1.03s`, `pixel_aot_vop3_ternary_int_warp` `1.68s`, `pixel_aot_int16_ternary_warp` `2.74s`, `pixel_aot_cvt_f64_int_warp` `2.43s`, `startup_gfx2hlsl_shift64_warp` `3.56s`, `pixel_aot_u32_from_f32_warp` `1.47s`, `startup_gfx2hlsl_sdwa_cvt_warp` `2.09s`, `pixel_aot_dpp_cvt_warp` `2.56s`, `pixel_aot_scc_skip_warp` `1.96s`, `pixel_aot_f16_cvt_int16_warp` `2.56s`, `startup_gfx2hlsl_dpp_pair_warp` `2.09s`, `pixel_aot_cvt_f32_f64_warp` `2.01s`, `compute_store_aot_gfx1013_image_store_d16_warp` `1.03s`, `pixel_aot_cvt_float_int_e64_warp` `2.24s`, `compute_store_aot_desc_numeric_warp` `1.40s`, `startup_gfx2hlsl_f32_sdwa` `3.08s`, `pixel_aot_swaprel_warp` `1.20s`, `compute_store_aot_gfx1013_image_uav_load_warp` `0.93s`, `pixel_aot_plain_bitscan_warp` `1.55s`, `pixel_aot_mac_legacy_warp` `1.32s`, `startup_gfx2hlsl_dpp_pair_hardware` `2.01s`, `pixel_aot_align_warp` `1.51s`, `pixel_aot_plain_movrel_warp` `1.77s`, `pixel_aot_pk_fmac_warp` `2.10s`, `pixel_aot_f16_to_int16_warp` `1.84s`, `startup_gfx2hlsl_watch` `2.68s`, `startup_gfx2hlsl_shift64_hardware` `3.35s`, `pixel_aot_bitset64_warp` `1.77s`, `pixel_aot_int16_vop3_warp` `1.72s`, `startup_gfx2hlsl_dpp_quad_swap_warp` `1.94s`, `pixel_aot_flat_scratch_warp` `1.46s`, `pixel_aot_sdwa_integer_warp` `1.32s`, `startup_gfx2hlsl_mad_dispatch_hardware` `1.64s`, `pixel_aot_e64_spellings_warp` `1.28s`, `startup_gfx2hlsl_dpp_quad_swap_hardware` `2.10s`, `pixel_aot_first_bit_warp` `1.56s`, `pixel_aot_dpp_movrel_warp` `1.43s`, `startup_gfx2hlsl_compute_hardware` `2.15s`, `pixel_aot_mad64_warp` `1.27s`, `pixel_aot_sdwa_movrel_warp` `1.30s`, `pixel_aot_div_fmas_warp` `1.39s`, `pixel_aot_region_scalar_load_warp` `1.60s`, `pixel_aot_uncompressed_integer_export_warp` `1.21s`, `startup_gfx2hlsl_mad_dispatch_warp` `1.64s`, `pixel_aot_carry_in_warp` `1.13s`, `pixel_aot_uncompressed_export_warp` `1.16s`, `pixel_aot_carry_out_warp` `1.10s`, `pixel_aot_sdwa_unary_warp` `1.13s`, `startup_gfx2hlsl_cmp16_warp` `2.03s`, `pixel_aot_swap_warp` `1.20s`, `pixel_aot_brev_warp` `1.17s`, `startup_gfx2hlsl_sdwa_cvt_hardware` `1.89s`, `startup_gfx2hlsl_mad_preserve_hardware` `1.04s`, `pixel_aot_smovrel_warp` `1.28s`, `pixel_aot_region_scalar_alu_warp` `1.21s`, `startup_gfx2hlsl_cmp16_hardware` `1.96s`, `pixel_aot_region_waits_warp` `1.20s`, `pixel_aot_sdwa_cmp_warp` `1.13s`, `pixel_aot_frexp_exp_warp` `1.06s`, `pixel_aot_sad_warp` `1.10s`, `pixel_aot_e64_integer_warp` `1.01s`, `pixel_aot_s_call_warp` `1.14s`, `startup_gfx2hlsl_f32_lg` `1.55s`, `pixel_aot_vop1_nops_warp` `0.82s`, `pixel_aot_bfm_warp` `0.99s`, `pixel_aot_title_loads_warp` `1.23s`, `pixel_aot_smem_pointers_warp` `0.99s`, `pixel_aot_compressed_export_warp` `0.97s`, `pixel_aot_sopk_hwreg_warp` `0.82s`, `pixel_aot_integer_nc_warp` `1.00s`, `pixel_aot_pack_b32_warp` `0.94s`, `startup_gfx2hlsl_compute_warp` `2.12s`, `pixel_aot_ds_swizzle_warp` `0.98s`, `pixel_aot_pack_int16_warp` `0.98s`, `pixel_aot_e64_approx_warp` `0.88s`, `startup_gfx2hlsl_scalar_m0_warp` `1.19s`, `pixel_aot_sopp_round_mode_warp` `0.91s`, `startup_gfx2hlsl_compute_dropped-store_hardware` `0.34s`, `startup_gfx2hlsl_compute_swapped-axes_hardware` `0.34s`, `startup_gfx2hlsl_compute_b-offset_hardware` `0.33s`, `startup_gfx2hlsl_vopc_sdwa_warp` `1.38s`, `startup_gfx2hlsl_mad_preserve_warp` `1.07s`, `startup_gfx2hlsl_vopc_sdwa_hardware` `1.33s`, `startup_gfx2hlsl_compute_c-unpredicated_hardware` `0.34s`, `startup_gfx2hlsl_compute_mbcnt_warp` `0.75s`, `startup_gfx2hlsl_sgpr_spill_warp` `1.01s`, `startup_gfx2hlsl_interp_f16_warp` `0.95s`, `startup_gfx2hlsl_dpp_quad_broadcast_warp` `1.01s`, `pixel_aot_attribute_sampled_warp` `0.76s`, `startup_gfx2hlsl_scalar_m0_hardware` `1.15s`, `startup_gfx2hlsl_capture` `1.22s`, `startup_gfx2hlsl_compute_dropped-store_warp` `0.29s`, `startup_gfx2hlsl_compute_c-unpredicated_warp` `0.29s`, `startup_gfx2hlsl_compute_b-offset_warp` `0.31s`, `startup_gfx2hlsl_sgpr_spill_hardware` `1.03s`, `startup_gfx2hlsl_compute_swapped-axes_warp` `0.33s`, `startup_gfx2hlsl_compute_controls` `0.57s`, `startup_gfx2hlsl_root` `0.83s`, `startup_gfx2hlsl_dpp_quad_broadcast_hardware` `1.22s`, `startup_gfx2hlsl_cvt_pk_u8_warp` `1.03s`, `startup_gfx2hlsl_join_symbols_warp` `0.41s`, `startup_gfx2hlsl_compute_g-overlap_warp` `0.30s`, `startup_gfx2hlsl_sopk_accum` `1.15s`, `startup_gfx2hlsl_interp_f16_hardware` `0.98s`, `startup_gfx2hlsl_join_symbols_controls` `0.25s`, `startup_gfx2hlsl_bit_alu_controls` `0.85s`, `startup_gfx2hlsl_cvt_pk_u8_hardware` `0.81s`, `startup_gfx2hlsl_refusals` `0.57s`, `startup_gfx2hlsl_sdwa` `0.18s`, `startup_gfx2hlsl_sample_c_lz_mip` `0.19s`, `startup_gfx2hlsl_buffer_store` `0.56s`, `startup_gfx2hlsl_compute_mbcnt_hardware` `0.70s`, `startup_gfx2hlsl_compute_g-swapped-offsets_warp` `0.29s`, `startup_gfx2hlsl_cvt_alu_controls` `0.18s`, `startup_gfx2hlsl_compute_j-scalar-dropped_warp` `0.29s`, `startup_gfx2hlsl_swap` `0.31s`, `startup_gfx2hlsl_join_symbols_hardware` `0.38s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_warp` `0.29s`, `startup_gfx2hlsl_draw_skip` `0.49s`, `startup_gfx2hlsl_compute_k-block-entered_hardware` `0.29s`, `startup_gfx2hlsl_compute_g-swapped-offsets_hardware` `0.29s`, `startup_gfx2hlsl_compute_f-peer_hardware` `0.31s`, `startup_gfx2hlsl_interp_f16_controls` `0.23s`, `startup_gfx2hlsl_compute_k-block-entered_warp` `0.30s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_hardware` `0.29s`, `startup_gfx2hlsl_compute_j-scalar-dropped_hardware` `0.30s`, `startup_gfx2hlsl_compute_g-overlap_hardware` `0.29s`, `startup_gfx2hlsl_compute_f-broadcast_hardware` `0.29s`, `startup_gfx2hlsl_sdwa_cvt` `0.30s`, `startup_gfx2hlsl_join_symbols_folded_warp` `0.22s`, `startup_gfx2hlsl_compute_f-broadcast_warp` `0.30s`, `startup_gfx2hlsl_dpp_quad_swap_controls` `0.16s`, `startup_gfx2hlsl_sopk_signext` `0.16s`, `startup_gfx2hlsl_cmp16_controls` `0.27s`, `startup_gfx2hlsl_compute_f-peer_warp` `0.31s`, `startup_gfx2hlsl_shift64_controls` `0.15s`, `startup_gfx2hlsl_operand_count` `0.21s`, `startup_gfx2hlsl_dpp_pair` `0.13s`, `startup_gfx2hlsl_scalar_m0_controls` `0.11s`, `startup_gfx2hlsl_export_mask_drop_control` `0.15s`, `startup_gfx2hlsl_export_mask` `0.14s`, `startup_gfx2hlsl_join_symbols_folded_hardware` `0.22s`, `startup_gfx2hlsl_sgpr_spill_controls` `0.14s`, `startup_gfx2hlsl_add_sub_co_controls` `0.12s`, `startup_gfx2hlsl_calculated_target` `0.11s`, `startup_gfx2hlsl_readfirstlane_uniform` `0.14s`, `startup_gfx2hlsl_s_sext_cmov` `0.12s`, `startup_gfx2hlsl_cvt_pk_u8_controls` `0.12s`, `startup_gfx2hlsl_scalar_shift64_bfe_controls` `0.22s`, `startup_gfx2hlsl_opsel` `0.10s`, `startup_gfx2hlsl_tbuffer_16f` `0.11s`, `startup_gfx2hlsl_vcvt_omod` `0.11s`, `startup_gfx2hlsl_dpp_quad_broadcast` `0.14s`, `startup_gfx2hlsl_mask_overwrite_controls` `0.12s`, `startup_gfx2hlsl_int_med3_controls` `0.12s`, `startup_gfx2hlsl_cselect_mask_controls` `0.11s`, `startup_gfx2hlsl_s_bitcmp` `0.11s`, `startup_gfx2hlsl_cndmask_neg` `0.11s`, `startup_gfx2hlsl_desc_ptr_prop` `0.11s`, `startup_gfx2hlsl_smem_offset` `0.11s`, `startup_gfx2hlsl_b64_shift` `0.10s`, `startup_gfx2hlsl_readfirstlane_recompute` `0.12s`, `startup_gfx2hlsl_op_refusals` `0.10s`, `startup_gfx2hlsl_neg_operand` `0.10s`, `startup_gfx2hlsl_handler_arity` `0.11s`, `startup_gfx2hlsl_loop_constants` `0.10s`, `startup_gfx2hlsl_compare_dst_controls` `0.10s`, `startup_gfx2hlsl_scalar_brev_fold` `0.11s`, `startup_gfx2hlsl_saveexec_same_reg_controls` `0.10s`, `startup_gfx2hlsl_mad_controls` `0.13s`, `startup_gfx2hlsl_image_arity` `0.10s`, `startup_gfx2hlsl_image_get_lod_controls` `0.11s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim -- -j 2`): `127.65s` (configure `1.66s`) - Test (`ctest --preset release -R '^(startup_gfx2hlsl_.*|pixel_aot_.*_warp|compute_store_aot_.*_warp|form_coverage)$' --parallel 6 --no-tests=error --output-on-failure`): **296/296 passed** (`131.40s`: `pixel_aot_three_way_warp` `17.18s`, `pixel_aot_buffer_color_warp` `17.54s`, `pixel_aot_bits_warp` `22.31s`, `form_coverage` `29.01s`, `startup_gfx2hlsl_f32_nan_warp` `14.63s`, `startup_gfx2hlsl_f32_sdwa_warp` `35.42s`, `pixel_aot_compare_warp` `14.62s`, `startup_gfx2hlsl_f32_sdwa_hardware` `19.69s`, `pixel_aot_e64_warp` `7.53s`, `pixel_aot_comparisons_warp` `11.29s`, `compute_store_aot_guard_read_warp` `8.07s`, `compute_store_aot_lds_qword_warp` `7.29s`, `compute_store_aot_lds_arithmetic_warp` `6.80s`, `pixel_aot_blend_scalar_warp` `10.14s`, `compute_store_aot_descriptor_load_format_warp` `47.57s`, `startup_gfx2hlsl_f32_nan_hardware` `13.67s`, `compute_store_aot_lds_private_warp` `4.81s`, `compute_store_aot_mimg_mip_warp` `4.77s`, `pixel_aot_cmpx_e64_warp` `5.42s`, `compute_store_aot_heap_view_load_warp` `7.57s`, `startup_gfx2hlsl_f32_nan` `6.98s`, `pixel_aot_f16_arith_warp` `6.23s`, `compute_store_aot_lds_f32_warp` `4.35s`, `compute_store_aot_mimg_load_warp` `4.83s`, `compute_store_aot_mimg_packed_warp` `4.07s`, `pixel_aot_cvt_f64_f32_warp` `7.55s`, `compute_store_aot_heap_view_store_warp` `8.72s`, `pixel_aot_core_vector_warp` `6.25s`, `compute_store_aot_mimg_store_packed_warp` `2.64s`, `pixel_aot_compare_gather_warp` `3.36s`, `pixel_aot_cvt_flr_rpi_warp` `5.74s`, `startup_gfx2hlsl_vopc_sdwa` `6.45s`, `compute_store_aot_mtbuf_load_warp` `2.63s`, `compute_store_aot_mubuf_reduction_x2_warp` `2.75s`, `compute_store_aot_lds_replacement_warp` `3.06s`, `compute_store_aot_mimg_atomic_counter_warp` `2.54s`, `compute_store_aot_mubuf_reduction_warp` `2.75s`, `compute_store_aot_mtbuf_store_warp` `2.69s`, `startup_gfx2hlsl_cvt_alu_warp` `5.99s`, `compute_store_aot_mubuf_subword_warp` `2.01s`, `startup_gfx2hlsl_cvt_alu_hardware` `5.96s`, `compute_store_aot_lds_packed_warp` `3.11s`, `compute_store_aot_mimg_atomic_float_warp` `1.98s`, `compute_store_aot_mimg_store_warp` `2.60s`, `pixel_aot_cmpx_regions_warp` `7.25s`, `pixel_aot_compare_sample_warp` `3.12s`, `startup_gfx2hlsl_f32_lg_hardware` `4.57s`, `compute_store_aot_salu_i32_warp` `1.48s`, `pixel_aot_predicate_rounding_warp` `5.30s`, `compute_store_aot_mimg_atomic_minmax_warp` `1.76s`, `compute_store_aot_mubuf_store_format_warp` `2.35s`, `compute_store_aot_descriptor_store_format_warp` `1.95s`, `compute_store_aot_mubuf_d16_warp` `2.28s`, `compute_store_aot_alu_minmax3_warp` `1.88s`, `pixel_aot_sample_coarse_gradient_warp` `2.65s`, `compute_store_aot_mimg_resinfo_warp` `2.23s`, `compute_store_aot_mbcnt_warp` `1.55s`, `startup_gfx2hlsl_cmp_class_f16` `5.73s`, `compute_store_aot_bcnt_exec_warp` `1.22s`, `compute_store_aot_cvt_u32_f32_warp` `1.36s`, `compute_store_aot_mimg_atomic_integer_warp` `1.72s`, `startup_gfx2hlsl_bit_alu_hardware` `6.40s`, `pixel_aot_sample_gradient_warp` `2.61s`, `compute_store_aot_lane_mask_warp` `2.35s`, `compute_store_aot_mubuf_store_subword_warp` `2.09s`, `compute_store_aot_f32_warp` `2.21s`, `pixel_aot_cvt_int_f64_warp` `4.87s`, `compute_store_aot_vadd_nc_i32_warp` `1.44s`, `compute_store_aot_lds_wide_replacement_warp` `2.04s`, `compute_store_aot_mubuf_load_format_d16_warp` `1.76s`, `startup_gfx2hlsl_bit_alu_warp` `6.65s`, `pixel_aot_shift64_warp` `3.95s`, `compute_store_aot_bfe_warp` `1.36s`, `startup_gfx2hlsl_sop2_complement` `5.78s`, `startup_gfx2hlsl_f32_lg_warp` `4.61s`, `compute_store_aot_alu_xor3_warp` `1.86s`, `compute_store_aot_ff1_scalar_warp` `1.29s`, `compute_store_aot_lds_strided_warp` `1.75s`, `compute_store_aot_scratch_base_warp` `1.59s`, `compute_store_aot_alu_cvt_pk_u8_warp` `1.78s`, `startup_gfx2hlsl_cmp_class` `6.37s`, `compute_store_aot_readlane_warp` `1.38s`, `compute_store_aot_dot_u_warp` `1.45s`, `compute_store_aot_alu_bcnt_warp` `2.13s`, `compute_store_aot_mubuf_format_warp` `1.98s`, `pixel_aot_sample_offset_warp` `2.32s`, `pixel_aot_exec_regions_warp` `6.27s`, `pixel_aot_f16_round_warp` `4.83s`, `compute_store_aot_writelane_warp` `1.80s`, `pixel_aot_gather_warp` `4.10s`, `compute_store_aot_mubuf_exchange_warp` `1.62s`, `startup_gfx2hlsl_s_lshl_add` `5.82s`, `compute_store_aot_mubuf_exchange-x2_warp` `1.59s`, `compute_store_aot_sub_co_warp` `1.45s`, `pixel_aot_cmp_f64_warp` `4.73s`, `compute_store_aot_ff1_exec_warp` `1.31s`, `compute_store_aot_add_co_warp` `1.40s`, `compute_store_aot_mubuf_csub_warp` `1.29s`, `compute_store_aot_mubuf_vector_warp` `1.65s`, `compute_store_aot_mimg_atomic_exchange_warp` `1.35s`, `compute_store_aot_mubuf_counter_warp` `1.49s`, `compute_store_aot_dpp_warp` `1.17s`, `compute_store_aot_alu_med3_warp` `1.56s`, `pixel_aot_get_lod_warp` `1.86s`, `compute_store_aot_mubuf_counter-x2_warp` `1.48s`, `compute_store_aot_mubuf_store_format_xyz_warp` `1.41s`, `compute_store_aot_ds_route_warp` `1.63s`, `compute_store_aot_mimg_msaa_warp` `1.27s`, `compute_store_aot_alu_mad_i24_warp` `1.50s`, `compute_store_aot_salu_absdiff_warp` `1.52s`, `compute_store_aot_gfx1013_image_store_warp` `1.08s`, `compute_store_aot_gfx1013_image_atomics_warp` `1.99s`, `compute_store_aot_mac_f32_warp` `1.48s`, `pixel_aot_region_body_warp` `2.40s`, `pixel_aot_f16_fmac_ldexp_warp` `3.83s`, `startup_gfx2hlsl_shift64_hardware` `3.54s`, `pixel_aot_cvt_f64_int_warp` `3.26s`, `pixel_aot_dpp_extra_warp` `3.37s`, `startup_gfx2hlsl_dpp_pair_hardware` `2.07s`, `pixel_aot_cmp64_warp` `3.21s`, `compute_store_aot_vcmp_select_warp` `2.84s`, `pixel_aot_int16_ternary_warp` `2.95s`, `compute_store_aot_desc_numeric_warp` `1.45s`, `pixel_aot_sample_lod_warp` `1.90s`, `startup_gfx2hlsl_shift64_warp` `3.60s`, `startup_gfx2hlsl_mad_dispatch_hardware` `1.71s`, `pixel_aot_f16_cvt_int16_warp` `2.73s`, `pixel_aot_dpp_f16_warp` `4.66s`, `pixel_aot_dpp_cvt_warp` `2.65s`, `compute_store_aot_alu_lane_gaps_warp` `1.93s`, `pixel_aot_dmask_warp` `1.62s`, `startup_gfx2hlsl_dpp_pair_warp` `1.98s`, `startup_gfx2hlsl_f32_sdwa` `3.33s`, `startup_gfx2hlsl_dpp_quad_swap_hardware` `2.13s`, `pixel_aot_pk_fmac_warp` `2.24s`, `pixel_aot_plain_movrel_warp` `2.02s`, `startup_gfx2hlsl_compute_hardware` `2.29s`, `pixel_aot_cvt_float_int_e64_warp` `2.28s`, `pixel_aot_flat_scratch_warp` `1.57s`, `compute_store_aot_gfx1013_image_store_d16_warp` `0.96s`, `startup_gfx2hlsl_watch` `2.80s`, `pixel_aot_scc_skip_warp` `1.95s`, `pixel_aot_cvt_f32_f64_warp` `2.09s`, `startup_gfx2hlsl_dpp_quad_swap_warp` `2.11s`, `pixel_aot_f16_to_int16_warp` `2.21s`, `pixel_aot_bitset64_warp` `2.14s`, `pixel_aot_int16_vop3_warp` `2.08s`, `pixel_aot_vop3_ternary_int_warp` `2.03s`, `startup_gfx2hlsl_sdwa_cvt_hardware` `2.11s`, `pixel_aot_sdwa_integer_warp` `1.49s`, `startup_gfx2hlsl_cmp16_warp` `2.15s`, `startup_gfx2hlsl_cmp16_hardware` `2.13s`, `pixel_aot_align_warp` `1.79s`, `pixel_aot_u32_from_f32_warp` `1.38s`, `pixel_aot_dpp_movrel_warp` `1.51s`, `pixel_aot_div_fmas_warp` `1.62s`, `startup_gfx2hlsl_f32_lg` `1.85s`, `pixel_aot_e64_spellings_warp` `1.34s`, `startup_gfx2hlsl_mad_preserve_hardware` `1.07s`, `pixel_aot_plain_bitscan_warp` `1.63s`, `startup_gfx2hlsl_sdwa_cvt_warp` `2.02s`, `pixel_aot_rndne_warp` `1.68s`, `pixel_aot_first_bit_warp` `1.62s`, `pixel_aot_sdwa_unary_warp` `1.31s`, `pixel_aot_region_scalar_load_warp` `1.77s`, `pixel_aot_sdwa_movrel_warp` `1.43s`, `pixel_aot_swaprel_warp` `1.23s`, `pixel_aot_pack_b32_warp` `1.03s`, `pixel_aot_mac_legacy_warp` `1.41s`, `compute_store_aot_gfx1013_gather4_l_warp` `1.83s`, `pixel_aot_swap_warp` `1.26s`, `pixel_aot_mad64_warp` `1.40s`, `pixel_aot_carry_in_warp` `1.28s`, `pixel_aot_region_scalar_alu_warp` `1.27s`, `pixel_aot_sopk_hwreg_warp` `0.92s`, `pixel_aot_uncompressed_integer_export_warp` `1.26s`, `pixel_aot_title_loads_warp` `1.53s`, `pixel_aot_uncompressed_export_warp` `1.29s`, `startup_gfx2hlsl_mad_dispatch_warp` `1.65s`, `pixel_aot_smovrel_warp` `1.31s`, `pixel_aot_brev_warp` `1.27s`, `pixel_aot_region_waits_warp` `1.21s`, `pixel_aot_sdwa_cmp_warp` `1.30s`, `pixel_aot_sad_warp` `1.31s`, `pixel_aot_carry_out_warp` `1.19s`, `pixel_aot_frexp_exp_warp` `1.17s`, `pixel_aot_s_call_warp` `1.23s`, `pixel_aot_e64_integer_warp` `1.17s`, `pixel_aot_attribute_warp` `1.07s`, `pixel_aot_integer_nc_warp` `1.14s`, `startup_gfx2hlsl_scalar_m0_hardware` `1.26s`, `pixel_aot_bfm_warp` `1.15s`, `pixel_aot_vop1_nops_warp` `0.97s`, `startup_gfx2hlsl_compute_warp` `2.27s`, `pixel_aot_smem_pointers_warp` `1.11s`, `pixel_aot_compressed_export_warp` `1.05s`, `pixel_aot_e64_approx_warp` `0.92s`, `pixel_aot_ds_swizzle_warp` `1.01s`, `pixel_aot_pack_int16_warp` `1.04s`, `startup_gfx2hlsl_vopc_sdwa_hardware` `1.38s`, `startup_gfx2hlsl_scalar_m0_warp` `1.22s`, `startup_gfx2hlsl_sgpr_spill_warp` `1.05s`, `pixel_aot_sopp_round_mode_warp` `0.98s`, `startup_gfx2hlsl_vopc_sdwa_warp` `1.35s`, `startup_gfx2hlsl_capture` `1.30s`, `startup_gfx2hlsl_mad_preserve_warp` `1.04s`, `startup_gfx2hlsl_dpp_quad_broadcast_hardware` `1.01s`, `startup_gfx2hlsl_sgpr_spill_hardware` `1.05s`, `startup_gfx2hlsl_sopk_accum` `1.14s`, `startup_gfx2hlsl_interp_f16_hardware` `0.96s`, `startup_gfx2hlsl_interp_f16_warp` `0.97s`, `startup_gfx2hlsl_dpp_quad_broadcast_warp` `0.99s`, `compute_store_aot_gfx1013_image_uav_load_warp` `1.33s`, `startup_gfx2hlsl_root` `0.90s`, `startup_gfx2hlsl_cvt_pk_u8_warp` `1.21s`, `startup_gfx2hlsl_bit_alu_controls` `1.02s`, `pixel_aot_attribute_sampled_warp` `0.97s`, `startup_gfx2hlsl_compute_mbcnt_warp` `1.12s`, `startup_gfx2hlsl_compute_g-overlap_warp` `0.32s`, `startup_gfx2hlsl_compute_g-swapped-offsets_warp` `0.32s`, `startup_gfx2hlsl_join_symbols_hardware` `0.40s`, `startup_gfx2hlsl_join_symbols_warp` `0.43s`, `startup_gfx2hlsl_compute_mbcnt_hardware` `0.76s`, `startup_gfx2hlsl_cvt_pk_u8_hardware` `0.86s`, `startup_gfx2hlsl_draw_skip` `0.55s`, `startup_gfx2hlsl_compute_j-scalar-dropped_warp` `0.31s`, `startup_gfx2hlsl_buffer_store` `0.59s`, `startup_gfx2hlsl_compute_b-offset_warp` `0.33s`, `startup_gfx2hlsl_compute_controls` `0.50s`, `startup_gfx2hlsl_refusals` `0.60s`, `startup_gfx2hlsl_sdwa` `0.25s`, `startup_gfx2hlsl_compute_k-block-entered_hardware` `0.34s`, `startup_gfx2hlsl_compute_swapped-axes_warp` `0.33s`, `startup_gfx2hlsl_compute_c-unpredicated_warp` `0.35s`, `startup_gfx2hlsl_compute_dropped-store_warp` `0.32s`, `startup_gfx2hlsl_compute_j-scalar-dropped_hardware` `0.35s`, `startup_gfx2hlsl_join_symbols_folded_hardware` `0.24s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_warp` `0.31s`, `startup_gfx2hlsl_join_symbols_controls` `0.27s`, `startup_gfx2hlsl_compute_g-overlap_hardware` `0.30s`, `startup_gfx2hlsl_compute_f-peer_hardware` `0.29s`, `startup_gfx2hlsl_compute_f-broadcast_hardware` `0.32s`, `startup_gfx2hlsl_compute_g-swapped-offsets_hardware` `0.30s`, `startup_gfx2hlsl_scalar_shift64_bfe_controls` `0.23s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_hardware` `0.29s`, `startup_gfx2hlsl_compute_swapped-axes_hardware` `0.28s`, `startup_gfx2hlsl_compute_k-block-entered_warp` `0.28s`, `startup_gfx2hlsl_compute_dropped-store_hardware` `0.27s`, `startup_gfx2hlsl_compute_c-unpredicated_hardware` `0.30s`, `startup_gfx2hlsl_compute_b-offset_hardware` `0.30s`, `startup_gfx2hlsl_dpp_quad_swap_controls` `0.14s`, `startup_gfx2hlsl_compute_f-peer_warp` `0.30s`, `startup_gfx2hlsl_swap` `0.32s`, `startup_gfx2hlsl_compute_f-broadcast_warp` `0.29s`, `startup_gfx2hlsl_cmp16_controls` `0.31s`, `startup_gfx2hlsl_interp_f16_controls` `0.22s`, `startup_gfx2hlsl_cvt_alu_controls` `0.18s`, `startup_gfx2hlsl_scalar_m0_controls` `0.11s`, `startup_gfx2hlsl_sample_c_lz_mip` `0.18s`, `startup_gfx2hlsl_join_symbols_folded_warp` `0.20s`, `startup_gfx2hlsl_dpp_pair` `0.15s`, `startup_gfx2hlsl_sdwa_cvt` `0.33s`, `startup_gfx2hlsl_operand_count` `0.22s`, `startup_gfx2hlsl_cndmask_neg` `0.10s`, `startup_gfx2hlsl_vcvt_omod` `0.11s`, `startup_gfx2hlsl_sopk_signext` `0.15s`, `startup_gfx2hlsl_b64_shift` `0.10s`, `startup_gfx2hlsl_desc_ptr_prop` `0.11s`, `startup_gfx2hlsl_shift64_controls` `0.18s`, `startup_gfx2hlsl_readfirstlane_uniform` `0.15s`, `startup_gfx2hlsl_opsel` `0.11s`, `startup_gfx2hlsl_sgpr_spill_controls` `0.14s`, `startup_gfx2hlsl_tbuffer_16f` `0.10s`, `startup_gfx2hlsl_smem_offset` `0.10s`, `startup_gfx2hlsl_cvt_pk_u8_controls` `0.12s`, `startup_gfx2hlsl_dpp_quad_broadcast` `0.14s`, `startup_gfx2hlsl_s_sext_cmov` `0.11s`, `startup_gfx2hlsl_export_mask_drop_control` `0.15s`, `startup_gfx2hlsl_mad_controls` `0.15s`, `startup_gfx2hlsl_op_refusals` `0.10s`, `startup_gfx2hlsl_export_mask` `0.14s`, `startup_gfx2hlsl_add_sub_co_controls` `0.15s`, `startup_gfx2hlsl_image_get_lod_controls` `0.12s`, `startup_gfx2hlsl_calculated_target` `0.14s`, `startup_gfx2hlsl_int_med3_controls` `0.16s`, `startup_gfx2hlsl_s_bitcmp` `0.14s`, `startup_gfx2hlsl_readfirstlane_recompute` `0.12s`, `startup_gfx2hlsl_scalar_brev_fold` `0.16s`, `startup_gfx2hlsl_mask_overwrite_controls` `0.12s`, `startup_gfx2hlsl_cselect_mask_controls` `0.12s`, `startup_gfx2hlsl_saveexec_same_reg_controls` `0.13s`, `startup_gfx2hlsl_handler_arity` `0.13s`, `startup_gfx2hlsl_loop_constants` `0.11s`, `startup_gfx2hlsl_image_arity` `0.11s`, `startup_gfx2hlsl_neg_operand` `0.10s`, `startup_gfx2hlsl_compare_dst_controls` `0.10s`) - **Windows Python checks**: `tests/mesh_heap_sampler_check.py` ok (`0.5s`), `tests/startup_buffer_address_check.py` ok (`0.3s`), `tests/startup_compute_request_offline_check.py` ok (`0.3s`), `tests/startup_compute_translate_check.py` ok (`0.2s`), `tests/startup_flat_param_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_add_sub_co_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_bit_alu_check.py` ok (`0.5s`), `tests/startup_gfx2hlsl_capture_check.py` ok (`0.7s`), `tests/startup_gfx2hlsl_cmp16_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_compare_dst_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_compute_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_cselect_mask_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_cvt_alu_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_f32_lg_check.py` ok (`1.0s`), `tests/startup_gfx2hlsl_f32_nan_check.py` ok (`3.9s`), `tests/startup_gfx2hlsl_handler_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_get_lod_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_int_med3_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_join_symbols_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_loop_constants_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_mask_overwrite_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_operand_count_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_readfirstlane_recompute_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_readfirstlane_uniform_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_refusals_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_root_check.py` ok (`0.5s`), `tests/startup_gfx2hlsl_saveexec_same_reg_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_brev_fold_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_m0_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sdwa_cvt_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sgpr_spill_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_shift64_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_smem_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sop2_complement_check.py` ok (`3.3s`), `tests/startup_gfx2hlsl_sopk_accum_check.py` ok (`0.6s`), `tests/startup_gfx2hlsl_sopk_signext_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_swap_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`3.5s`), `tests/startup_gfx2hlsl_watch_check.py` ok (`2.2s`), `tests/startup_image_2d_array_check.py` ok (`0.1s`), `tests/startup_image_3d_check.py` ok (`0.1s`), `tests/startup_image_gather_lz_check.py` ok (`0.5s`), `tests/startup_image_load_d16_check.py` ok (`0.7s`), `tests/startup_image_sample_a16_check.py` ok (`0.1s`), `tests/startup_image_sample_b_check.py` ok (`0.1s`), `tests/startup_image_sample_c_check.py` ok (`0.2s`), `tests/startup_image_sample_l_check.py` ok (`0.1s`), `tests/startup_image_sample_lod_check.py` ok (`0.1s`), `tests/startup_inline_sampler_check.py` ok (`0.1s`), `tests/startup_run_ps1_check.py` ok (`7.8s`), `tests/startup_run_sh_check.py` skipped by itself on Windows, rc=77 (`0.1s`), `tests/startup_sampler_heap_check.py` ok (`0.1s`), `tests/startup_smem_address_check.py` ok (`0.1s`), `tests/startup_stream_fetch_check.py` ok (`0.2s`), `tests/startup_stream_interface_check.py` ok (`0.2s`), `tests/startup_translator_check.py` ok (`0.3s`) - `sccache`: 0/2 hits; wall `303.9s` AI-assisted; commands listed were executed locally.
RavenCurseBurg commented 2026-11-25 19:04:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T18:29:19Z.


While checking #2463 I reproduced a branch case both on this PR alone (99e1c69f) and with #2460 (661c9a1a) integrated. An in-place literal table-pointer add followed by a copy, a forward conditional writing an unrelated SGPR, and an immediate s_load on the copied pointer can raise TypeError in the translator. In a branch-bearing program pointer_add declines the add, the older path records ('ptr', source, 'added'), and op_s_load_dwordx4 uses the string as an integer byte offset. A straight-line control with the same table, add and load binds byte 32.

I am testing the forward-only, 32-bit graphics table case for #2463 separately. The other inputs to the established branch refusal can keep returning Unsupported. Posting here because the marker and numeric-offset paths meet in #2069.

AI-assisted with Codex (GPT-6.2 Astra, xhigh).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7170975763 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7170975763). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T18:29:19Z. --- While checking #2463 I reproduced a branch case both on this PR alone (`99e1c69f`) and with #2460 (`661c9a1a`) integrated. An in-place literal table-pointer add followed by a copy, a forward conditional writing an unrelated SGPR, and an immediate s_load on the copied pointer can raise TypeError in the translator. In a branch-bearing program pointer_add declines the add, the older path records ('ptr', source, 'added'), and op_s_load_dwordx4 uses the string as an integer byte offset. A straight-line control with the same table, add and load binds byte 32. I am testing the forward-only, 32-bit graphics table case for #2463 separately. The other inputs to the established branch refusal can keep returning Unsupported. Posting here because the marker and numeric-offset paths meet in #2069. AI-assisted with Codex (GPT-6.2 Astra, xhigh).
tedin7 commented 2026-11-25 19:04:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T18:30:25Z.


@R0Y00 the changes you requested are addressed on the current head 99e1c69f7f72a63a5ef4a8f1bd83360f7b3b5ad5 (see our reply above). Could you re-review, or dismiss the change request if it is resolved? Under the new scope, MasterDomino can then review and merge it.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171000423 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7171000423). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T18:30:25Z. --- @R0Y00 the changes you requested are addressed on the current head `99e1c69f7f72a63a5ef4a8f1bd83360f7b3b5ad5` (see our reply above). Could you re-review, or dismiss the change request if it is resolved? Under the new scope, MasterDomino can then review and merge it. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-25 19:04:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T18:51:57Z.


The new completed-pair controls address the original straight-line issue. Keep this review open for the branch case RavenCurseBurg reproduced on 99e1c69f: the added marker reaches the numeric offset calculation and raises TypeError. Please keep the joined pointer unsupported here unless this PR proves it. Add that exact branch shape as a refusal control and keep its straight-line sibling passing. The new forward-branch support can stay in the separate #2463 work.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171508618 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7171508618). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T18:51:57Z. --- The new completed-pair controls address the original straight-line issue. Keep this review open for the branch case RavenCurseBurg reproduced on `99e1c69f`: the `added` marker reaches the numeric offset calculation and raises TypeError. Please keep the joined pointer unsupported here unless this PR proves it. Add that exact branch shape as a refusal control and keep its straight-line sibling passing. The new forward-branch support can stay in the separate #2463 work.
tedin7 commented 2026-11-25 19:04:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T18:54:18Z.


@R0Y00 the branch case is fixed on a747241f (merged with current main, no conflicts left).

  • Cause: in a program with branches, s_add_u32 s8, s8, 0x40 leaves the added marker on the pointer, and s_load_dwordx4 then added an int to that marker and raised TypeError.
  • Fix: op_s_load_dwordx4 now refuses a load through a pointer whose offset is untracked (s_load through s8: the pointer was advanced by an untracked offset). The joined pointer stays unsupported here.
  • New controls in tests/startup_gfx2hlsl_desc_ptr_prop_check.py: the in-place advance plus load with branches is a refusal (it was the TypeError before), and the same straight-line shape still folds to +0x50.

Commands run locally: python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py, startup_gfx2hlsl_join_symbols_check.py, startup_gfx2hlsl_refusals_check.py, startup_smem_address_check.py, startup_gfx2hlsl_root_check.py (all ok), git diff --check (clean). Forward-branch support stays in #2463.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171561073 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7171561073). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T18:54:18Z. --- @R0Y00 the branch case is fixed on `a747241f` (merged with current main, no conflicts left). - Cause: in a program with branches, `s_add_u32 s8, s8, 0x40` leaves the `added` marker on the pointer, and `s_load_dwordx4` then added an int to that marker and raised TypeError. - Fix: `op_s_load_dwordx4` now refuses a load through a pointer whose offset is untracked (`s_load through s8: the pointer was advanced by an untracked offset`). The joined pointer stays unsupported here. - New controls in `tests/startup_gfx2hlsl_desc_ptr_prop_check.py`: the in-place advance plus load with branches is a refusal (it was the TypeError before), and the same straight-line shape still folds to +0x50. Commands run locally: `python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py`, `startup_gfx2hlsl_join_symbols_check.py`, `startup_gfx2hlsl_refusals_check.py`, `startup_smem_address_check.py`, `startup_gfx2hlsl_root_check.py` (all ok), `git diff --check` (clean). Forward-branch support stays in #2463. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-25 21:01:29 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T20:10:18Z.


The branch-only untracked offset guard passes on 62bf81d0. I found two remaining cases using the source-built root-pointer fixture. A complete in-place pair (s_add_u32 s8, s8, 0x20; s_addc_u32 s9, s9, 0) refuses because the first instruction replaces s9 with pending before the second can read it. Conversely, the out-of-place low add followed by s_mov_b32 s21, s9 and s_load_dwordx4 s[4:7], s[20:21], 0x10 is accepted and emits r0.Load(80) without the matching ADDC. Please keep completion state on the advanced low result until the adjacent matching pair completes, without changing the original high source. Add a valid in-place case and a copied-but-unadvanced high-word refusal. The original request remains open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7173286300 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7173286300). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T20:10:18Z. --- The branch-only `untracked offset` guard passes on `62bf81d0`. I found two remaining cases using the source-built root-pointer fixture. A complete in-place pair (`s_add_u32 s8, s8, 0x20`; `s_addc_u32 s9, s9, 0`) refuses because the first instruction replaces `s9` with `pending` before the second can read it. Conversely, the out-of-place low add followed by `s_mov_b32 s21, s9` and `s_load_dwordx4 s[4:7], s[20:21], 0x10` is accepted and emits `r0.Load(80)` without the matching ADDC. Please keep completion state on the advanced low result until the adjacent matching pair completes, without changing the original high source. Add a valid in-place case and a copied-but-unadvanced high-word refusal. The original request remains open.
tedin7 commented 2026-11-25 21:01:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T20:30:17Z.


@R0Y00 both cases are fixed on 77abd82a (merged with current main, no conflicts).

  • Cause: the low add wrote a pending marker into the next register. In place, that replaced the original high word, so the matching s_addc_u32 could not read it. Out of place, s_mov s21, s9 copied the unadvanced high word over the marker, so the load was accepted without the pair.
  • Fix: the low add now only opens the pair (the high register and the original high source are left untouched). The matching adjacent s_addc_u32 closes it. A load through an open pair is refused.
  • New controls in tests/startup_gfx2hlsl_desc_ptr_prop_check.py:
    • a complete in-place pair (s_add_u32 s8, s8, 0x20; s_addc_u32 s9, s9, 0) now folds to +0x30;
    • the low add followed by s_mov_b32 s21, s9 and the load is a refusal;
    • a complete out-of-place pair leaves the original high source unchanged.
      The first two failed on the previous head and pass now. The missing, overwritten and mismatched high word controls and the large low-word add control still pass.

Commands run locally: python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py, startup_gfx2hlsl_join_symbols_check.py, startup_gfx2hlsl_refusals_check.py, startup_smem_address_check.py, startup_gfx2hlsl_root_check.py (all ok), git diff --check (clean).

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7173768314 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7173768314). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T20:30:17Z. --- @R0Y00 both cases are fixed on `77abd82a` (merged with current main, no conflicts). - Cause: the low add wrote a `pending` marker into the next register. In place, that replaced the original high word, so the matching `s_addc_u32` could not read it. Out of place, `s_mov s21, s9` copied the unadvanced high word over the marker, so the load was accepted without the pair. - Fix: the low add now only opens the pair (the high register and the original high source are left untouched). The matching adjacent `s_addc_u32` closes it. A load through an open pair is refused. - New controls in `tests/startup_gfx2hlsl_desc_ptr_prop_check.py`: - a complete in-place pair (`s_add_u32 s8, s8, 0x20`; `s_addc_u32 s9, s9, 0`) now folds to +0x30; - the low add followed by `s_mov_b32 s21, s9` and the load is a refusal; - a complete out-of-place pair leaves the original high source unchanged. The first two failed on the previous head and pass now. The missing, overwritten and mismatched high word controls and the large low-word add control still pass. Commands run locally: `python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py`, `startup_gfx2hlsl_join_symbols_check.py`, `startup_gfx2hlsl_refusals_check.py`, `startup_smem_address_check.py`, `startup_gfx2hlsl_root_check.py` (all ok), `git diff --check` (clean). AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-25 22:01:51 +00:00
tedin7 commented 2026-11-25 22:02:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:15:06Z.


Merged current main into this branch at 1ecf3bcbc (merge commit, no force-push). One conflict in tools/startup/gfx2hlsl.py, kept both sides:

  • The descriptor-pointer add guard stays first, then main's raw-descriptor conversion branch.
  • The s_load descriptor symbol keeps our base_off + off and main's new load-tag suffix.

Commands run locally: python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py (all cases ok), python3 -B tests/startup_gfx2hlsl_compute_check.py (the test main changed in the same area, passes), git diff --check (clean). CI on 1ecf3bcbc: Linux checks, gfx1013 fixtures and Windows build/test are green. No Win2025 run on this head yet. The previous review request is still open: @R0Y00, the two cases from your last comment are fixed on the earlier head and unchanged here. Could you take another look?

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174817951 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7174817951). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T21:15:06Z. --- Merged current main into this branch at `1ecf3bcbc` (merge commit, no force-push). One conflict in `tools/startup/gfx2hlsl.py`, kept both sides: - The descriptor-pointer add guard stays first, then main's raw-descriptor conversion branch. - The `s_load` descriptor symbol keeps our `base_off + off` and main's new load-tag suffix. Commands run locally: `python3 -B tests/startup_gfx2hlsl_desc_ptr_prop_check.py` (all cases ok), `python3 -B tests/startup_gfx2hlsl_compute_check.py` (the test main changed in the same area, passes), `git diff --check` (clean). CI on `1ecf3bcbc`: Linux checks, gfx1013 fixtures and Windows build/test are green. No Win2025 run on this head yet. The previous review request is still open: @R0Y00, the two cases from your last comment are fixed on the earlier head and unchanged here. Could you take another look? AI-assisted; commands listed were executed locally.
RavenCurseBurg commented 2026-11-25 22:02:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T21:21:23Z.


I checked the merge with #2546 at 1ecf3bcb using the structured-to-raw store fixture and LLVM 15. Across six pointer-add / load-immediate combinations, both ordinary and converted stores emitted identical HLSL and the expected SRV/UAV offsets. In particular, adding 16 and loading at 16 bound the same bytes (32/48) as adding 32 and loading at 0. The farthest case bound 80/96. With an untouched low word, reloading the stride from the same high word succeeded. Substituting a stride from a different high word refused in all six cases.

The replay on this exact parent takes an LLVM 15 assembler as its argument. I have also synced the dependent #2507 to this head.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174966311 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7174966311). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T21:21:23Z. --- I checked the merge with #2546 at `1ecf3bcb` using the structured-to-raw store fixture and LLVM 15. Across six pointer-add / load-immediate combinations, both ordinary and converted stores emitted identical HLSL and the expected SRV/UAV offsets. In particular, adding 16 and loading at 16 bound the same bytes (32/48) as adding 32 and loading at 0. The farthest case bound 80/96. With an untouched low word, reloading the stride from the same high word succeeded. Substituting a stride from a different high word refused in all six cases. The [replay on this exact parent](https://github.com/RavenCurseBurg/Xbox2Windows/blob/b5f51f6b4690512356534eec9b0d7d81d12e35ca/tests/measure_raw_descriptor_offsets.py) takes an LLVM 15 assembler as its argument. I have also synced the dependent #2507 to this head.
tedin7 commented 2026-11-25 22:02:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:33:34Z.


Closing this PR for now so we can focus on the test-speed work. The branch stays as it is, and review comments here remain valid.

We will reopen it later, bring it up to date with main, re-run the Win2025 WARP checks at its head, and post the result here.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175237771 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7175237771). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T21:33:34Z. --- Closing this PR for now so we can focus on the test-speed work. The branch stays as it is, and review comments here remain valid. We will reopen it later, bring it up to date with `main`, re-run the Win2025 WARP checks at its head, and post the result here. AI-assisted; commands listed were executed locally.
upstream-sync reopened this pull request 2026-11-25 23:01:42 +00:00
R0Y00 commented 2026-11-25 23:01:42 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


The updated pair and full-SMEM translation controls pass. I found two remaining same-origin high-word cases in the existing device-free harness. Given the test's ROOT symbols, run s_add_u32 s20,s8,0x40; s_addc_u32 s21,s9,0; s_mov_b32 s21,s9; then s_load_dwordx4 s[4:7],s[20:21],0x10. This still emits Load(80) after the completed high word was overwritten by the original one. A second variant advances that same low word with s_add_u32 s22,s20,0x20 but uses the original high word again in s_addc_u32 s23,s9,0; the load is accepted and emits Load(112). A low-DWORD carry in the first add makes both folds wrong. A small literal does not by itself exclude that carry.

Please bind the high-word proof to the relevant accumulated offset or pair provenance, so the original high word and the advanced high word cannot compare equal merely because they came from the same root. Keep the matching-high controls and the full GPU readback. Add the two cases above and a positive case that uses the completed high word of the first pair for the second advance.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6065888486 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6065888486). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T22:31:04Z. **Review:** CHANGES_REQUESTED --- The updated pair and full-SMEM translation controls pass. I found two remaining same-origin high-word cases in the existing device-free harness. Given the test's `ROOT` symbols, run `s_add_u32 s20,s8,0x40`; `s_addc_u32 s21,s9,0`; `s_mov_b32 s21,s9`; then `s_load_dwordx4 s[4:7],s[20:21],0x10`. This still emits `Load(80)` after the completed high word was overwritten by the original one. A second variant advances that same low word with `s_add_u32 s22,s20,0x20` but uses the original high word again in `s_addc_u32 s23,s9,0`; the load is accepted and emits `Load(112)`. A low-DWORD carry in the first add makes both folds wrong. A small literal does not by itself exclude that carry. Please bind the high-word proof to the relevant accumulated offset or pair provenance, so the original high word and the advanced high word cannot compare equal merely because they came from the same root. Keep the matching-high controls and the full GPU readback. Add the two cases above and a positive case that uses the completed high word of the first pair for the second advance.
RavenCurseBurg commented 2026-11-25 23:02:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T22:14:54Z.


I found a full-pipeline case for the current head 1ecf3bcb. The two instruction handlers accept the matched s_add_u32 / s_addc_u32 pair, but the final SCC-read pass rejects the high add itself with scc from descriptor data in s_addc_u32. I reproduced this using a source-built vertex shader that reads the second vertex-buffer view.

I put a two-file fix and host regressions directly on your head for cherry-pick. A high add validated by the existing adjacent-pair proof has already consumed its input carry symbolically. Its outgoing SCC remains unavailable to an ordinary numeric reader. The complete in-place and out-of-place pairs now publish the expected VB binding. Copying the old high word still refuses. A following s_cselect_b32 still refuses until a fresh scalar compare establishes SCC. All 78 related host and documentation checks passed.

The independent draw fixture reuses the existing direct/indexed 8×4 stream scene. LLVM 15 matches all three programs. With the direct address, in-place pair and out-of-place pair, all 32 pixels matched POSITION from VB 1. Rebinding exactly the same compiled shader to VB 0 gave the TEXCOORD reference, with exactly 11 pixels changed for each program. Intel UHD 770, RTX 4060 and WARP passed with both FXC and DXC (36 readbacks). The Windows Server 2025 Release run passed all four selected CTests and all 12 WARP readbacks with the new fixture. I verified the recorded source commit and all four artifact digests, then repeated the 36 local readbacks with that same build. The host fix is 6ef0e9fa; the tested build 2b57389c adds only the standalone draw script.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176122152 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7176122152). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T22:14:54Z. --- I found a full-pipeline case for the current head `1ecf3bcb`. The two instruction handlers accept the matched `s_add_u32` / `s_addc_u32` pair, but the final SCC-read pass rejects the high add itself with `scc from descriptor data in s_addc_u32`. I reproduced this using a source-built vertex shader that reads the second vertex-buffer view. I put a [two-file fix and host regressions](https://github.com/RavenCurseBurg/Xbox2Windows/commit/6ef0e9fa974941af15ccfd11f6b870480d4a4650) directly on your head for cherry-pick. A high add validated by the existing adjacent-pair proof has already consumed its input carry symbolically. Its outgoing SCC remains unavailable to an ordinary numeric reader. The complete in-place and out-of-place pairs now publish the expected VB binding. Copying the old high word still refuses. A following `s_cselect_b32` still refuses until a fresh scalar compare establishes SCC. All 78 related host and documentation checks passed. The [independent draw fixture](https://github.com/RavenCurseBurg/Xbox2Windows/blob/2b57389c36e49b8664e6bd06e7962e0f4d9af213/tests/measure_vertex_pointer_carry.py) reuses the existing direct/indexed 8×4 stream scene. LLVM 15 matches all three programs. With the direct address, in-place pair and out-of-place pair, all 32 pixels matched POSITION from VB 1. Rebinding exactly the same compiled shader to VB 0 gave the TEXCOORD reference, with exactly 11 pixels changed for each program. Intel UHD 770, RTX 4060 and WARP passed with both FXC and DXC (36 readbacks). The [Windows Server 2025 Release run](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45711225994) passed all four selected CTests and all 12 WARP readbacks with the new fixture. I verified the recorded source commit and all four artifact digests, then repeated the 36 local readbacks with that same build. The host fix is 6ef0e9fa; the tested build 2b57389c adds only the standalone draw script.
tedin7 commented 2026-11-25 23:02:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:26:34Z.


Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 6688f74e12eb937c24b861bea9c260399bacc1a2:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2): 0.87s (configure 3.58s)
    • Test (ctest --preset dev -R 'startup_smem_address_warp|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address_warp' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (2.62s: startup_smem_address_warp 2.17s, startup_gfx2hlsl_desc_ptr_prop 0.13s, startup_buffer_address_warp 2.41s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2): 2.63s (configure 2.92s)
    • Test (ctest --preset release -R 'startup_smem_address_warp|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address_warp' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (2.21s: startup_smem_address_warp 1.86s, startup_gfx2hlsl_desc_ptr_prop 0.12s, startup_buffer_address_warp 2.06s)
  • Windows Python checks: tests/mesh_heap_sampler_check.py ok (1.1s), tests/startup_buffer_address_check.py ok (0.7s), tests/startup_buffer_format_word3_table_check.py ok (0.1s), tests/startup_compute_request_offline_check.py ok (0.7s), tests/startup_compute_translate_check.py ok (0.3s), tests/startup_flat_param_check.py ok (0.2s), tests/startup_gfx2hlsl_add_sub_co_check.py ok (0.2s), tests/startup_gfx2hlsl_add_sub_co_ci_check.py ok (0.2s), tests/startup_gfx2hlsl_bit_alu_check.py ok (1.1s), tests/startup_gfx2hlsl_capture_check.py ok (1.6s), tests/startup_gfx2hlsl_cmp16_check.py ok (0.4s), tests/startup_gfx2hlsl_compare_dst_check.py ok (0.1s), tests/startup_gfx2hlsl_compute_check.py ok (0.6s), tests/startup_gfx2hlsl_cselect_mask_check.py ok (0.1s), tests/startup_gfx2hlsl_cvt_alu_check.py ok (0.2s), tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py ok (0.2s), tests/startup_gfx2hlsl_f32_lg_check.py ok (2.0s), tests/startup_gfx2hlsl_f32_nan_check.py ok (7.7s), tests/startup_gfx2hlsl_fma_mix_check.py ok (0.2s), tests/startup_gfx2hlsl_getpc_refusal_check.py ok (0.2s), tests/startup_gfx2hlsl_handler_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_get_lod_check.py ok (0.2s), tests/startup_gfx2hlsl_int_med3_check.py ok (0.2s), tests/startup_gfx2hlsl_join_symbols_check.py ok (0.4s), tests/startup_gfx2hlsl_loop_constants_check.py ok (0.1s), tests/startup_gfx2hlsl_mask_overwrite_check.py ok (0.1s), tests/startup_gfx2hlsl_operand_count_check.py ok (0.4s), tests/startup_gfx2hlsl_pack_absdiff_check.py ok (4.0s), tests/startup_gfx2hlsl_readfirstlane_recompute_check.py ok (0.1s), tests/startup_gfx2hlsl_readfirstlane_uniform_check.py ok (0.2s), tests/startup_gfx2hlsl_refusals_check.py ok (0.8s), tests/startup_gfx2hlsl_root_check.py ok (0.9s), tests/startup_gfx2hlsl_sad_check.py ok (0.6s), tests/startup_gfx2hlsl_saveexec_same_reg_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_arity_check.py ok (0.3s), tests/startup_gfx2hlsl_scalar_brev_fold_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_m0_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_table_arity_check.py ok (0.4s), tests/startup_gfx2hlsl_sdwa_cvt_check.py ok (0.4s), tests/startup_gfx2hlsl_sgpr_spill_check.py ok (0.1s), tests/startup_gfx2hlsl_shift64_check.py ok (0.2s), tests/startup_gfx2hlsl_sload_const_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_smem_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_sop2_complement_check.py ok (8.7s), tests/startup_gfx2hlsl_sopk_accum_check.py ok (1.2s), tests/startup_gfx2hlsl_sopk_signext_check.py ok (0.2s), tests/startup_gfx2hlsl_swap_check.py ok (0.4s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (6.0s), tests/startup_gfx2hlsl_waitcnt_depctr_check.py ok (0.1s), tests/startup_gfx2hlsl_watch_check.py ok (2.9s), tests/startup_image_2d_array_check.py ok (0.2s), tests/startup_image_3d_check.py ok (0.1s), tests/startup_image_gather_lz_check.py ok (0.7s), tests/startup_image_load_d16_check.py ok (1.2s), tests/startup_image_sample_a16_check.py ok (0.3s), tests/startup_image_sample_b_check.py ok (0.2s), tests/startup_image_sample_c_check.py ok (0.4s), tests/startup_image_sample_l_check.py ok (0.3s), tests/startup_image_sample_lod_check.py ok (0.8s), tests/startup_inline_sampler_check.py ok (0.2s), tests/startup_mesh57_skeleton_check.py ok (0.5s), tests/startup_run_ps1_check.py ok (22.6s), tests/startup_run_sh_check.py skipped (0.1s), tests/startup_sampler_heap_check.py ok (0.2s), tests/startup_shader_cache_rekey_check.py ok (3.4s), tests/startup_smem_address_check.py ok (0.2s), tests/startup_stream_fetch_check.py ok (0.4s), tests/startup_stream_interface_check.py ok (0.4s), tests/startup_translator_check.py ok (0.8s)
  • sccache: 198/312 hits; wall 110.2s
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176366760 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7176366760). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T22:26:34Z. --- Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `6688f74e12eb937c24b861bea9c260399bacc1a2`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2`): `0.87s` (configure `3.58s`) - Test (`ctest --preset dev -R 'startup_smem_address_warp|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address_warp' --parallel 2 --no-tests=error --output-on-failure`): **3/3 passed** (`2.62s`: `startup_smem_address_warp` `2.17s`, `startup_gfx2hlsl_desc_ptr_prop` `0.13s`, `startup_buffer_address_warp` `2.41s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2`): `2.63s` (configure `2.92s`) - Test (`ctest --preset release -R 'startup_smem_address_warp|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address_warp' --parallel 2 --no-tests=error --output-on-failure`): **3/3 passed** (`2.21s`: `startup_smem_address_warp` `1.86s`, `startup_gfx2hlsl_desc_ptr_prop` `0.12s`, `startup_buffer_address_warp` `2.06s`) - **Windows Python checks**: `tests/mesh_heap_sampler_check.py` ok (`1.1s`), `tests/startup_buffer_address_check.py` ok (`0.7s`), `tests/startup_buffer_format_word3_table_check.py` ok (`0.1s`), `tests/startup_compute_request_offline_check.py` ok (`0.7s`), `tests/startup_compute_translate_check.py` ok (`0.3s`), `tests/startup_flat_param_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_add_sub_co_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_add_sub_co_ci_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_bit_alu_check.py` ok (`1.1s`), `tests/startup_gfx2hlsl_capture_check.py` ok (`1.6s`), `tests/startup_gfx2hlsl_cmp16_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_compare_dst_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_compute_check.py` ok (`0.6s`), `tests/startup_gfx2hlsl_cselect_mask_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_cvt_alu_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_f32_lg_check.py` ok (`2.0s`), `tests/startup_gfx2hlsl_f32_nan_check.py` ok (`7.7s`), `tests/startup_gfx2hlsl_fma_mix_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_getpc_refusal_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_handler_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_get_lod_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_int_med3_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_join_symbols_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_loop_constants_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_mask_overwrite_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_operand_count_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_pack_absdiff_check.py` ok (`4.0s`), `tests/startup_gfx2hlsl_readfirstlane_recompute_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_readfirstlane_uniform_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_refusals_check.py` ok (`0.8s`), `tests/startup_gfx2hlsl_root_check.py` ok (`0.9s`), `tests/startup_gfx2hlsl_sad_check.py` ok (`0.6s`), `tests/startup_gfx2hlsl_saveexec_same_reg_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_arity_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_scalar_brev_fold_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_m0_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_table_arity_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_sdwa_cvt_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_sgpr_spill_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_shift64_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sload_const_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_smem_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sop2_complement_check.py` ok (`8.7s`), `tests/startup_gfx2hlsl_sopk_accum_check.py` ok (`1.2s`), `tests/startup_gfx2hlsl_sopk_signext_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_swap_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`6.0s`), `tests/startup_gfx2hlsl_waitcnt_depctr_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_watch_check.py` ok (`2.9s`), `tests/startup_image_2d_array_check.py` ok (`0.2s`), `tests/startup_image_3d_check.py` ok (`0.1s`), `tests/startup_image_gather_lz_check.py` ok (`0.7s`), `tests/startup_image_load_d16_check.py` ok (`1.2s`), `tests/startup_image_sample_a16_check.py` ok (`0.3s`), `tests/startup_image_sample_b_check.py` ok (`0.2s`), `tests/startup_image_sample_c_check.py` ok (`0.4s`), `tests/startup_image_sample_l_check.py` ok (`0.3s`), `tests/startup_image_sample_lod_check.py` ok (`0.8s`), `tests/startup_inline_sampler_check.py` ok (`0.2s`), `tests/startup_mesh57_skeleton_check.py` ok (`0.5s`), `tests/startup_run_ps1_check.py` ok (`22.6s`), `tests/startup_run_sh_check.py` skipped (`0.1s`), `tests/startup_sampler_heap_check.py` ok (`0.2s`), `tests/startup_shader_cache_rekey_check.py` ok (`3.4s`), `tests/startup_smem_address_check.py` ok (`0.2s`), `tests/startup_stream_fetch_check.py` ok (`0.4s`), `tests/startup_stream_interface_check.py` ok (`0.4s`), `tests/startup_translator_check.py` ok (`0.8s`) - `sccache`: 198/312 hits; wall `110.2s`
tedin7 commented 2026-11-25 23:02:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:26:40Z.


@MasterDomino @R0Y00 #2069 is ready for re-review at head 6688f74e.

What changed:

  • Merged origin/main (merge commit, no force-push). The earlier completed-pair, in-place pair, copied-high-word and branch refusal controls still pass.
  • Fixed a gap those controls missed: through the full translate, the s_add_u32 / s_addc_u32 pair was refused by the SCC check. The matching s_addc_u32 is now the only accepted reader of the low add's carry; any other SCC reader is still refused.
  • An untracked-offset pointer used whole as a descriptor now refuses instead of raising a TypeError.
  • New real D3D12 WARP readback case in startup_smem_address_check.py: pair-advanced pointer + offset:0x8 is read back against the CPU reference and equals the single load at 0x10. The full-translate checks (same output as the single load, SCC refusal) are in the same file.
  • startup_gfx2hlsl_desc_ptr_prop_check.py now also runs in the Linux CI list.

Verification: CI green on this head. Win2025 dev + release: ctest -R 'startup_smem_address_warp|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address_warp' 3/3 passed on both (receipt posted above), plus the full planned Python checks.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176369037 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7176369037). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T22:26:40Z. --- @MasterDomino @R0Y00 #2069 is ready for re-review at head `6688f74e`. What changed: - Merged `origin/main` (merge commit, no force-push). The earlier completed-pair, in-place pair, copied-high-word and branch refusal controls still pass. - Fixed a gap those controls missed: through the full translate, the `s_add_u32` / `s_addc_u32` pair was refused by the SCC check. The matching `s_addc_u32` is now the only accepted reader of the low add's carry; any other SCC reader is still refused. - An untracked-offset pointer used whole as a descriptor now refuses instead of raising a TypeError. - New real D3D12 WARP readback case in `startup_smem_address_check.py`: pair-advanced pointer + `offset:0x8` is read back against the CPU reference and equals the single load at `0x10`. The full-translate checks (same output as the single load, SCC refusal) are in the same file. - `startup_gfx2hlsl_desc_ptr_prop_check.py` now also runs in the Linux CI list. Verification: CI green on this head. Win2025 dev + release: `ctest -R 'startup_smem_address_warp|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address_warp'` 3/3 passed on both (receipt posted above), plus the full planned Python checks. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-26 00:00:39 +00:00
R0Y00 commented 2026-11-26 00:00:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T23:54:59Z.

Review: APPROVED


Re-reviewed ef3425a3. The original high word can no longer replace a completed advanced one, and a second advance accepts the high word proved for its input offset. Windows Release passed 7/7 with ctest --preset release --no-tests=error -j 1 -R '^startup_(gfx2hlsl_desc_ptr_prop|smem_address|buffer_address)($|_(controls|warp|hardware)$)' -V. Both the RTX 4060 Laptop and WARP matched all 320 words in the advanced vertex-buffer-table case. The overwritten-high and wrong second carry controls refuse, while both complete-pair paths fold.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6066660365 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#pullrequestreview-6066660365). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T23:54:59Z. **Review:** APPROVED --- Re-reviewed `ef3425a3`. The original high word can no longer replace a completed advanced one, and a second advance accepts the high word proved for its input offset. Windows Release passed 7/7 with `ctest --preset release --no-tests=error -j 1 -R '^startup_(gfx2hlsl_desc_ptr_prop|smem_address|buffer_address)($|_(controls|warp|hardware)$)' -V`. Both the RTX 4060 Laptop and WARP matched all 320 words in the advanced vertex-buffer-table case. The overwritten-high and wrong second carry controls refuse, while both complete-pair paths fold.
tedin7 commented 2026-11-26 00:01:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:42:05Z.


Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit ef3425a3bead85ab1259764352e1283bfa52c45e:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target offscreen_check d3d12_xs_shim -- -j 2): 2.69s (configure 0.00s)
    • Test (ctest --preset dev -R 'startup_smem_address|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address' --parallel 6 --no-tests=error --output-on-failure): 7/7 passed (2.49s: startup_smem_address_controls 0.25s, startup_gfx2hlsl_desc_ptr_prop 0.13s, startup_buffer_address_controls 0.74s, startup_smem_address_warp 2.13s, startup_smem_address_hardware 2.16s, startup_buffer_address_warp 2.32s, startup_buffer_address_hardware 2.35s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target offscreen_check d3d12_xs_shim -- -j 2): 3.78s (configure 0.00s)
    • Test (ctest --preset release -R 'startup_smem_address|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address' --parallel 6 --no-tests=error --output-on-failure): 7/7 passed (2.15s: startup_gfx2hlsl_desc_ptr_prop 0.12s, startup_smem_address_controls 0.24s, startup_buffer_address_controls 0.62s, startup_smem_address_warp 1.81s, startup_smem_address_hardware 1.81s, startup_buffer_address_warp 2.02s, startup_buffer_address_hardware 2.02s)
  • Windows Python checks: tests/mesh_heap_sampler_check.py ok (0.6s), tests/startup_buffer_address_check.py ok (0.4s), tests/startup_buffer_format_word3_table_check.py ok (0.1s), tests/startup_compute_request_offline_check.py ok (0.4s), tests/startup_compute_store_format_xyzw_check.py ok (0.2s), tests/startup_compute_translate_check.py ok (0.2s), tests/startup_flat_param_check.py ok (0.1s), tests/startup_gfx2hlsl_add_sub_co_check.py ok (0.1s), tests/startup_gfx2hlsl_add_sub_co_ci_check.py ok (0.1s), tests/startup_gfx2hlsl_bit_alu_check.py ok (0.6s), tests/startup_gfx2hlsl_capture_check.py ok (0.9s), tests/startup_gfx2hlsl_cmp16_check.py ok (0.2s), tests/startup_gfx2hlsl_compare_dst_check.py ok (0.1s), tests/startup_gfx2hlsl_compute_check.py ok (0.3s), tests/startup_gfx2hlsl_cselect_mask_check.py ok (0.1s), tests/startup_gfx2hlsl_cvt_alu_check.py ok (0.2s), tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py ok (0.2s), tests/startup_gfx2hlsl_cvt_pk_int16_check.py ok (0.2s), tests/startup_gfx2hlsl_f32_lg_check.py ok (1.1s), tests/startup_gfx2hlsl_f32_nan_check.py ok (4.1s), tests/startup_gfx2hlsl_fma_mix_check.py ok (0.1s), tests/startup_gfx2hlsl_getpc_refusal_check.py ok (0.1s), tests/startup_gfx2hlsl_handler_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_get_lod_check.py ok (0.1s), tests/startup_gfx2hlsl_int_med3_check.py ok (0.1s), tests/startup_gfx2hlsl_interp_p2_hi_check.py ok (0.2s), tests/startup_gfx2hlsl_join_symbols_check.py ok (0.2s), tests/startup_gfx2hlsl_loop_constants_check.py ok (0.1s), tests/startup_gfx2hlsl_mask_overwrite_check.py ok (0.1s), tests/startup_gfx2hlsl_operand_count_check.py ok (0.3s), tests/startup_gfx2hlsl_pack_absdiff_check.py ok (2.2s), tests/startup_gfx2hlsl_readfirstlane_recompute_check.py ok (0.1s), tests/startup_gfx2hlsl_readfirstlane_uniform_check.py ok (0.1s), tests/startup_gfx2hlsl_refusals_check.py ok (0.5s), tests/startup_gfx2hlsl_root_check.py ok (0.7s), tests/startup_gfx2hlsl_sad_check.py ok (0.3s), tests/startup_gfx2hlsl_saveexec_same_reg_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_arity_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_brev_fold_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_m0_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_table_arity_check.py ok (0.3s), tests/startup_gfx2hlsl_sdwa_cvt_check.py ok (0.2s), tests/startup_gfx2hlsl_sgpr_spill_check.py ok (0.1s), tests/startup_gfx2hlsl_shift64_check.py ok (0.2s), tests/startup_gfx2hlsl_sload_const_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_smem_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_sop2_complement_check.py ok (4.8s), tests/startup_gfx2hlsl_sopk_accum_check.py ok (0.8s), tests/startup_gfx2hlsl_sopk_signext_check.py ok (0.1s), tests/startup_gfx2hlsl_swap_check.py ok (0.2s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (3.8s), tests/startup_gfx2hlsl_waitcnt_depctr_check.py ok (0.1s), tests/startup_gfx2hlsl_watch_check.py ok (2.6s), tests/startup_image_2d_array_check.py ok (0.2s), tests/startup_image_3d_check.py ok (0.2s), tests/startup_image_gather_lz_check.py ok (0.5s), tests/startup_image_load_d16_check.py ok (0.9s), tests/startup_image_sample_a16_check.py ok (0.2s), tests/startup_image_sample_b_check.py ok (0.2s), tests/startup_image_sample_c_check.py ok (0.2s), tests/startup_image_sample_l_check.py ok (0.2s), tests/startup_image_sample_lod_check.py ok (0.6s), tests/startup_inline_sampler_check.py ok (0.1s), tests/startup_mesh57_skeleton_check.py ok (0.4s), tests/startup_run_ps1_check.py ok (8.6s), tests/startup_run_sh_check.py skipped (0.1s), tests/startup_sampler_heap_check.py ok (0.1s), tests/startup_shader_cache_rekey_check.py ok (1.8s), tests/startup_smem_address_check.py ok (0.2s), tests/startup_stream_fetch_check.py ok (0.2s), tests/startup_stream_interface_check.py ok (0.2s), tests/startup_translator_check.py ok (0.4s)
  • sccache: 110/138 hits; wall 57.7s
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177928584 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7177928584). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T23:42:05Z. --- Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `ef3425a3bead85ab1259764352e1283bfa52c45e`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target offscreen_check d3d12_xs_shim -- -j 2`): `2.69s` (configure `0.00s`) - Test (`ctest --preset dev -R 'startup_smem_address|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address' --parallel 6 --no-tests=error --output-on-failure`): **7/7 passed** (`2.49s`: `startup_smem_address_controls` `0.25s`, `startup_gfx2hlsl_desc_ptr_prop` `0.13s`, `startup_buffer_address_controls` `0.74s`, `startup_smem_address_warp` `2.13s`, `startup_smem_address_hardware` `2.16s`, `startup_buffer_address_warp` `2.32s`, `startup_buffer_address_hardware` `2.35s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target offscreen_check d3d12_xs_shim -- -j 2`): `3.78s` (configure `0.00s`) - Test (`ctest --preset release -R 'startup_smem_address|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address' --parallel 6 --no-tests=error --output-on-failure`): **7/7 passed** (`2.15s`: `startup_gfx2hlsl_desc_ptr_prop` `0.12s`, `startup_smem_address_controls` `0.24s`, `startup_buffer_address_controls` `0.62s`, `startup_smem_address_warp` `1.81s`, `startup_smem_address_hardware` `1.81s`, `startup_buffer_address_warp` `2.02s`, `startup_buffer_address_hardware` `2.02s`) - **Windows Python checks**: `tests/mesh_heap_sampler_check.py` ok (`0.6s`), `tests/startup_buffer_address_check.py` ok (`0.4s`), `tests/startup_buffer_format_word3_table_check.py` ok (`0.1s`), `tests/startup_compute_request_offline_check.py` ok (`0.4s`), `tests/startup_compute_store_format_xyzw_check.py` ok (`0.2s`), `tests/startup_compute_translate_check.py` ok (`0.2s`), `tests/startup_flat_param_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_add_sub_co_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_add_sub_co_ci_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_bit_alu_check.py` ok (`0.6s`), `tests/startup_gfx2hlsl_capture_check.py` ok (`0.9s`), `tests/startup_gfx2hlsl_cmp16_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_compare_dst_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_compute_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_cselect_mask_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_cvt_alu_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_cvt_pk_int16_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_f32_lg_check.py` ok (`1.1s`), `tests/startup_gfx2hlsl_f32_nan_check.py` ok (`4.1s`), `tests/startup_gfx2hlsl_fma_mix_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_getpc_refusal_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_handler_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_get_lod_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_int_med3_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_interp_p2_hi_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_join_symbols_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_loop_constants_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_mask_overwrite_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_operand_count_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_pack_absdiff_check.py` ok (`2.2s`), `tests/startup_gfx2hlsl_readfirstlane_recompute_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_readfirstlane_uniform_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_refusals_check.py` ok (`0.5s`), `tests/startup_gfx2hlsl_root_check.py` ok (`0.7s`), `tests/startup_gfx2hlsl_sad_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_saveexec_same_reg_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_arity_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_brev_fold_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_m0_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_table_arity_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_sdwa_cvt_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sgpr_spill_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_shift64_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sload_const_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_smem_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sop2_complement_check.py` ok (`4.8s`), `tests/startup_gfx2hlsl_sopk_accum_check.py` ok (`0.8s`), `tests/startup_gfx2hlsl_sopk_signext_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_swap_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`3.8s`), `tests/startup_gfx2hlsl_waitcnt_depctr_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_watch_check.py` ok (`2.6s`), `tests/startup_image_2d_array_check.py` ok (`0.2s`), `tests/startup_image_3d_check.py` ok (`0.2s`), `tests/startup_image_gather_lz_check.py` ok (`0.5s`), `tests/startup_image_load_d16_check.py` ok (`0.9s`), `tests/startup_image_sample_a16_check.py` ok (`0.2s`), `tests/startup_image_sample_b_check.py` ok (`0.2s`), `tests/startup_image_sample_c_check.py` ok (`0.2s`), `tests/startup_image_sample_l_check.py` ok (`0.2s`), `tests/startup_image_sample_lod_check.py` ok (`0.6s`), `tests/startup_inline_sampler_check.py` ok (`0.1s`), `tests/startup_mesh57_skeleton_check.py` ok (`0.4s`), `tests/startup_run_ps1_check.py` ok (`8.6s`), `tests/startup_run_sh_check.py` skipped (`0.1s`), `tests/startup_sampler_heap_check.py` ok (`0.1s`), `tests/startup_shader_cache_rekey_check.py` ok (`1.8s`), `tests/startup_smem_address_check.py` ok (`0.2s`), `tests/startup_stream_fetch_check.py` ok (`0.2s`), `tests/startup_stream_interface_check.py` ok (`0.2s`), `tests/startup_translator_check.py` ok (`0.4s`) - `sccache`: 110/138 hits; wall `57.7s`
tedin7 commented 2026-11-26 00:01:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:42:06Z.


@R0Y00 @MasterDomino, updated head ef3425a3 (merged current main, no force-push). Point by point on your 25/11 22:31Z review:

  1. s_add_u32 s20,s8,0x40; s_addc_u32 s21,s9,0; s_mov_b32 s21,s9; s_load_dwordx4 s[4:7],s[20:21],0x10: now refused. The completed high word is bound to the accumulated offset, so the original high word no longer stands in for it.
  2. Second advance s_add_u32 s22,s20,0x20 with s_addc_u32 s23,s9,0: now refused. The s_addc_u32 must read the high word completed for the offset it advances from.
  3. Positive case: s_addc_u32 s23,s21,0 (completed high word of the first pair) folds to Load(112). An in-place double advance with each completed high word also folds.
  4. The matching-high controls and the full GPU readback (startup_smem_address_warp) are kept.

Tests added to tests/startup_gfx2hlsl_desc_ptr_prop_check.py (the two refusals fail on the previous head and pass now).

Verification (Win2025, exact head ef3425a3): dev + release builds and the Windows Python checks passed; ctest -R "startup_smem_address|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address" 7/7 passed, including startup_smem_address_warp and startup_gfx2hlsl_desc_ptr_prop. Linux CI and the gfx1013 fixture job: green (the GitHub Windows job was still queued when I posted). Full receipt in the comment above.

Re-requesting review.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177928924 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2069#issuecomment-7177928924). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T23:42:06Z. --- @R0Y00 @MasterDomino, updated head `ef3425a3` (merged current main, no force-push). Point by point on your 25/11 22:31Z review: 1. **`s_add_u32 s20,s8,0x40; s_addc_u32 s21,s9,0; s_mov_b32 s21,s9; s_load_dwordx4 s[4:7],s[20:21],0x10`**: now refused. The completed high word is bound to the accumulated offset, so the original high word no longer stands in for it. 2. **Second advance `s_add_u32 s22,s20,0x20` with `s_addc_u32 s23,s9,0`**: now refused. The `s_addc_u32` must read the high word completed for the offset it advances from. 3. **Positive case**: `s_addc_u32 s23,s21,0` (completed high word of the first pair) folds to `Load(112)`. An in-place double advance with each completed high word also folds. 4. The matching-high controls and the full GPU readback (`startup_smem_address_warp`) are kept. Tests added to `tests/startup_gfx2hlsl_desc_ptr_prop_check.py` (the two refusals fail on the previous head and pass now). Verification (Win2025, exact head `ef3425a3`): dev + release builds and the Windows Python checks passed; `ctest -R "startup_smem_address|startup_gfx2hlsl_desc_ptr_prop|startup_buffer_address"` 7/7 passed, including `startup_smem_address_warp` and `startup_gfx2hlsl_desc_ptr_prop`. Linux CI and the gfx1013 fixture job: green (the GitHub Windows job was still queued when I posted). Full receipt in the comment above. Re-requesting review. AI-assisted; commands listed were executed locally.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2062
No description provided.