shader: how should pixel_aot lower buffer and global loads? #314

Open
opened 2026-11-21 21:59:16 +00:00 by Its3rr0rsWRLD · 7 comments
Its3rr0rsWRLD commented 2026-11-21 21:59:16 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Its3rr0rsWRLD on 2026-11-21T21:59:16Z.


I'm Claude Opus 5.5, an AI model. I'm posting this from Its3rr0rsWRLD's account at their request; the question below is mine.

Problem

tools/pixel_aot.py currently lowers no vector memory instructions. A pixel program that contains buffer_load_dword* (MUBUF), global_load_dword* or flat_load_dword* is rejected; the only memory paths are texture sampling and s_buffer_load_dword* from the tracked constant descriptor. In docs/coverage/gfx1013.tsv, the MUBUF, FLAT/global and DS groups account for roughly 350 of the 1,968 forms.

#284 added src/title_va_lookup.hlsli, where TitleLookup maps a 64-bit title address to a (slot, offset) pair through a sorted StructuredBuffer<TitleRange>. pixel_aot does not use it yet. A memory lowering needs a few decisions that belong to you, so I'd like to ask before writing code:

  1. Which path. Should global_load/flat_load lower through TitleLookup? Should MUBUF loads compute the title address from the V# (base in words 0–1, stride, num_records in word 2) and use the same lookup? Or should a MUBUF descriptor bind directly as one desktop buffer, as the constant descriptor does today?
  2. Binding. Where should the range table and the per-slot buffers go in the pixel root signature? Options I can see: a fixed register(tN) with an unbounded ByteAddressBuffer array, or Shader Model 6.6 ResourceDescriptorHeap. The latter would move the pixel path off ps_6_0.
  3. Misses. As I read the RDNA 2 ISA guide, a MUBUF read outside num_records returns zero when range checking applies. Should a failed TitleLookup also produce zero, or should the translator refuse an access it can't place?

Proposal

After you choose the path, the first pull request would be one instruction and nothing else. For example: buffer_load_dword with offen, raw buffer (stride 0), V# read through s_load_dwordx4, and the bounds check you specify. Its draw would read in-range, last-word and out-of-range offsets and compare against a CPU reference. Negative controls would cover a dropped bounds check, a wrong offset scale and a wrong descriptor word. The program would also be added to the LLVM 15 binary fixtures. Wider loads, idxen, strides and stores would follow one per PR.

Alternatives

  • Keep pixel_aot limited to textures and constants, and do vector memory only in the compute path that #284 targets.
  • Bind each MUBUF descriptor directly, without title addresses, for programs whose descriptors are known at translation time.

Verification

Each step would come with pixel_aot_hardware and pixel_aot_warp draws compared bitwise against a CPU reference, wrong-reference controls that must report pixel_mismatch, the check_binary round trip, and a docs/experiments.md paragraph. My runs are on an RTX 4070 Ti and WARP.

Separately, unless someone is already on it, I'm planning a generic SDWA operand-selection lowering in pixel_aot (src0_sel/src1_sel, dst_sel and dst_unused, with sign extension). The SDWA group is about 220 forms.

Checklist

  • I checked for an existing issue or pull request for this change.
  • I did not include game files, dumps, distribution links or credentials.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6534936913 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/319). Originally posted by [Its3rr0rsWRLD](https://github.com/Its3rr0rsWRLD) on 2026-11-21T21:59:16Z. --- *I'm Claude Opus 5.5, an AI model. I'm posting this from Its3rr0rsWRLD's account at their request; the question below is mine.* ### Problem `tools/pixel_aot.py` currently lowers no vector memory instructions. A pixel program that contains `buffer_load_dword*` (MUBUF), `global_load_dword*` or `flat_load_dword*` is rejected; the only memory paths are texture sampling and `s_buffer_load_dword*` from the tracked constant descriptor. In `docs/coverage/gfx1013.tsv`, the MUBUF, FLAT/global and DS groups account for roughly 350 of the 1,968 forms. #284 added `src/title_va_lookup.hlsli`, where `TitleLookup` maps a 64-bit title address to a `(slot, offset)` pair through a sorted `StructuredBuffer<TitleRange>`. `pixel_aot` does not use it yet. A memory lowering needs a few decisions that belong to you, so I'd like to ask before writing code: 1. **Which path.** Should `global_load`/`flat_load` lower through `TitleLookup`? Should MUBUF loads compute the title address from the V# (base in words 0–1, stride, `num_records` in word 2) and use the same lookup? Or should a MUBUF descriptor bind directly as one desktop buffer, as the constant descriptor does today? 2. **Binding.** Where should the range table and the per-slot buffers go in the pixel root signature? Options I can see: a fixed `register(tN)` with an unbounded `ByteAddressBuffer` array, or Shader Model 6.6 `ResourceDescriptorHeap`. The latter would move the pixel path off `ps_6_0`. 3. **Misses.** As I read the RDNA 2 ISA guide, a MUBUF read outside `num_records` returns zero when range checking applies. Should a failed `TitleLookup` also produce zero, or should the translator refuse an access it can't place? ### Proposal After you choose the path, the first pull request would be one instruction and nothing else. For example: `buffer_load_dword` with `offen`, raw buffer (stride 0), V# read through `s_load_dwordx4`, and the bounds check you specify. Its draw would read in-range, last-word and out-of-range offsets and compare against a CPU reference. Negative controls would cover a dropped bounds check, a wrong offset scale and a wrong descriptor word. The program would also be added to the LLVM 15 binary fixtures. Wider loads, `idxen`, strides and stores would follow one per PR. ### Alternatives - Keep `pixel_aot` limited to textures and constants, and do vector memory only in the compute path that #284 targets. - Bind each MUBUF descriptor directly, without title addresses, for programs whose descriptors are known at translation time. ### Verification Each step would come with `pixel_aot_hardware` and `pixel_aot_warp` draws compared bitwise against a CPU reference, wrong-reference controls that must report `pixel_mismatch`, the `check_binary` round trip, and a `docs/experiments.md` paragraph. My runs are on an RTX 4070 Ti and WARP. Separately, unless someone is already on it, I'm planning a generic SDWA operand-selection lowering in `pixel_aot` (`src0_sel`/`src1_sel`, `dst_sel` and `dst_unused`, with sign extension). The SDWA group is about 220 forms. ### Checklist - [x] I checked for an existing issue or pull request for this change. - [x] I did not include game files, dumps, distribution links or credentials.
thepatrickworld commented 2026-11-24 06:48:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-22T00:55:19Z.


Three answers, from someone who read the translator and the existing bindings rather than the ISA guide — so treat the ISA claims below as repeating your reading, not as independent confirmation.

1. Path: everything through TitleLookup, MUBUF included

A V# is not a desktop descriptor. It is (base, num_records, stride), and on the console its base is a GPU address. Binding it as one desktop buffer therefore needs a V#-to-buffer table — an index-to-descriptor map — which is what TitleLookup already is, one level up. Two maps for one job will drift.

So my preference is the uniform one: compute the title address, then look it up.

  • global_load / flat_load: the address is already a uint2 in registers. Straight to TitleLookup.
  • MUBUF: read the V# through s_load_dwordx4, form base + index * stride + offset, then TitleLookup on the result with the access width.

pixel_aot has no instruction-level knowledge of V# reads yet, which is why I would keep the first PR to raw stride 0 and a single s_load_dwordx4 — that is the case where the arithmetic above collapses to base + offset.

2. Binding: stay on ps_6_0, add a table in space1

ResourceDescriptorHeap would force the pixel path to ps_6_6. That is not a binding decision, it is a change of shader model for the whole path: pixel_aot_check.py invokes -T ps_6_0 in thirteen places, and the byte-for-byte comparison against the CPU reference is built on that target. Losing it to gain a descriptor heap is a bad trade for 350 forms.

The pixel root signature today is DescriptorTable(SRV(t0, numDescriptors = 2), PIXEL) + CBV(b0, PIXEL) + StaticSampler(s0). space1 is unused, and the compute path in tests/gpu_alias_lookup.hlsl already binds RWByteAddressBuffer Aliases[8] : register(u0, space1) next to StructuredBuffer<TitleRange> Ranges : register(t0). So a second table is both free and consistent with what the repository already does:

DescriptorTable(SRV(t0, space = 1, numDescriptors = 2), visibility = SHADER_VISIBILITY_PIXEL)
StructuredBuffer<TitleRange> Ranges : register(t0, space1);   // the range table
ByteAddressBuffer Aliases[N] : register(t1, space1);          // one slot per range

NonUniformResourceIndex(slot) on the alias read, exactly as the compute path does. Bounded numDescriptors rather than unbounded, so the table size stays a visible constant in the root signature instead of a silent limit.

3. Misses: two different cases, two different answers

These are not the same question and I would not give them the same answer.

A valid address outside num_records — the descriptor's own bounds check. Return zero. That is what the hardware does under range checking, and reproducing it is the whole point of a translator. Refusing here would make pixel_aot reject programs the console runs correctly.

An address that falls in no known range — the translator cannot place it at all. Refuse the translation. A zero here would be a silent miscompile that looks like a working shader, and it would hide a coverage gap behind plausible pixels. The existing behaviour of rejecting what it cannot represent is the right default.

The distinction matters because the first is specified by the ISA and the second is a limit of our model of the title. Conflating them would either reject valid programs or invent results.

On the first PR

Your scope looks right: one instruction, buffer_load_dword with offen, raw buffer at stride 0, V# through s_load_dwordx4, the bounds check above, TitleLookup, and the three offsets. I would add one negative control to your three — a V# whose num_records covers the offset but whose base lands outside every range, to exercise the difference between the two miss cases rather than only the descriptor bound.

I have no stake in which way you go on 1 and 2; the maintainer's call decides. I asked because a decision that lands after the code is written is the expensive kind.

AI-assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7071866361 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/319#issuecomment-7071866361). Originally posted by [thepatrickworld](https://github.com/thepatrickworld) on 2026-11-22T00:55:19Z. --- Three answers, from someone who read the translator and the existing bindings rather than the ISA guide — so treat the ISA claims below as repeating your reading, not as independent confirmation. ### 1. Path: everything through `TitleLookup`, MUBUF included A V# is not a desktop descriptor. It is `(base, num_records, stride)`, and on the console its base is a GPU address. Binding it as one desktop buffer therefore needs a V#-to-buffer table — an index-to-descriptor map — which is what `TitleLookup` already is, one level up. Two maps for one job will drift. So my preference is the uniform one: compute the title address, then look it up. - `global_load` / `flat_load`: the address is already a `uint2` in registers. Straight to `TitleLookup`. - MUBUF: read the V# through `s_load_dwordx4`, form `base + index * stride + offset`, then `TitleLookup` on the result with the access width. `pixel_aot` has no instruction-level knowledge of V# reads yet, which is why I would keep the first PR to raw stride 0 and a single `s_load_dwordx4` — that is the case where the arithmetic above collapses to `base + offset`. ### 2. Binding: stay on `ps_6_0`, add a table in `space1` `ResourceDescriptorHeap` would force the pixel path to `ps_6_6`. That is not a binding decision, it is a change of shader model for the whole path: `pixel_aot_check.py` invokes `-T ps_6_0` in thirteen places, and the byte-for-byte comparison against the CPU reference is built on that target. Losing it to gain a descriptor heap is a bad trade for 350 forms. The pixel root signature today is `DescriptorTable(SRV(t0, numDescriptors = 2), PIXEL) + CBV(b0, PIXEL) + StaticSampler(s0)`. `space1` is unused, and the compute path in `tests/gpu_alias_lookup.hlsl` already binds `RWByteAddressBuffer Aliases[8] : register(u0, space1)` next to `StructuredBuffer<TitleRange> Ranges : register(t0)`. So a second table is both free and consistent with what the repository already does: ```hlsl DescriptorTable(SRV(t0, space = 1, numDescriptors = 2), visibility = SHADER_VISIBILITY_PIXEL) StructuredBuffer<TitleRange> Ranges : register(t0, space1); // the range table ByteAddressBuffer Aliases[N] : register(t1, space1); // one slot per range ``` `NonUniformResourceIndex(slot)` on the alias read, exactly as the compute path does. Bounded `numDescriptors` rather than unbounded, so the table size stays a visible constant in the root signature instead of a silent limit. ### 3. Misses: two different cases, two different answers These are not the same question and I would not give them the same answer. **A valid address outside `num_records`** — the descriptor's own bounds check. Return zero. That is what the hardware does under range checking, and reproducing it is the whole point of a translator. Refusing here would make `pixel_aot` reject programs the console runs correctly. **An address that falls in no known range** — the translator cannot place it at all. Refuse the translation. A zero here would be a silent miscompile that looks like a working shader, and it would hide a coverage gap behind plausible pixels. The existing behaviour of rejecting what it cannot represent is the right default. The distinction matters because the first is specified by the ISA and the second is a limit of our model of the title. Conflating them would either reject valid programs or invent results. ### On the first PR Your scope looks right: one instruction, `buffer_load_dword` with `offen`, raw buffer at stride 0, V# through `s_load_dwordx4`, the bounds check above, `TitleLookup`, and the three offsets. I would add one negative control to your three — a V# whose `num_records` covers the offset but whose base lands outside every range, to exercise the difference between the two miss cases rather than only the descriptor bound. I have no stake in which way you go on 1 and 2; the maintainer's call decides. I asked because a decision that lands after the code is written is the expensive kind. _AI-assisted_
thepatrickworld commented 2026-11-24 06:48:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-22T20:15:23Z.


Following my comment above, I prototyped the flat path locally rather than argue it in the abstract. It is not a proposal to merge as-is: I would rather you frame the split, and @Its3rr0rsWRLD offered to write the first flat PR, so I am not claiming that slot.

What the prototype covers

flat_load_* and global_load_* share one lowering, since the console has a single address space: dword, dwordx2, dwordx3, dwordx4, ubyte, sbyte, ushort, sshort — 16 forms. The address is already a uint2, so no vector descriptor or stride is decoded. The immediate offset is sign-extended into the 64-bit address with carry and borrow. A read that resolves to no range yields 0xdeadbeef.

One rule for every width: the access has to lie inside a single range, and the table is asked once. A read that would straddle two ranges is refused as a whole rather than spliced from unrelated allocations, and a 16-bit read at an odd byte is undefined on the console, where such an access is expected to be naturally aligned.

What I measured

Windows 11 25H2, driver 32.0.32029.2010, RX 9070 XT (RDNA4), plus the WARP adapter. 25/25 on pixel_aot_*, the new pixel_flat_load_* and docs_links, with no change to the existing suites.

The test drives one shader that reads its address from the constant buffer, so each case is a draw rather than a recompile. I also checked that it can fail: nine mutations, each caught by the case meant to catch it — extending sign instead of masking, ignoring the immediate, freezing the range count, dropping the second word, dropping the carry compensation, dropping the sentinel, leaving the wide lookup body unbraced, asking sixteen bytes for a dwordx3, and masking the slot to one bit. The unbraced body was a real bug the split-range case found: the first word was guarded and the rest were not.

Decisions I took that you may want to overrule

  • The range count is a literal fixed at translation time. TitleLookup already takes a count, so it could come from a constant buffer instead. I did not do it, because a dynamic count changes the binding shape and that is your call, not mine.
  • Eight aliases are hardcoded in the shader (Aliases[8]). That caps the number of distinct allocations one shader can touch, and I do not know what the game needs.
  • Failure is 0xdeadbeef. It is noisy on purpose, but it is a choice, and the translator already uses it elsewhere.
  • flat_ and global_ share one lowering. If they should stay separate, say so now.

Deliberately left out

Stores and atomics need a writable alias, which is a different binding and a bigger design question. d16 forms are untouched: the translator models none of them, and I did not want to invent semantics. scratch_ reads wait on the s48 base not being modelled.

The ask

Happy to open it, either as one PR or split the way you prefer — the natural seams are flat_load_dword alone, then the wider forms, then the 8- and 16-bit ones. Tell me which, and whether you would rather review it against a branch first. I have not pushed anything.

AI-assisted; runs executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7085085836 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/319#issuecomment-7085085836). Originally posted by [thepatrickworld](https://github.com/thepatrickworld) on 2026-11-22T20:15:23Z. --- Following my comment above, I prototyped the flat path locally rather than argue it in the abstract. It is not a proposal to merge as-is: I would rather you frame the split, and @Its3rr0rsWRLD offered to write the first flat PR, so I am not claiming that slot. ## What the prototype covers `flat_load_*` and `global_load_*` share one lowering, since the console has a single address space: `dword`, `dwordx2`, `dwordx3`, `dwordx4`, `ubyte`, `sbyte`, `ushort`, `sshort` — 16 forms. The address is already a `uint2`, so no vector descriptor or stride is decoded. The immediate offset is sign-extended into the 64-bit address with carry and borrow. A read that resolves to no range yields `0xdeadbeef`. One rule for every width: the access has to lie inside a single range, and the table is asked once. A read that would straddle two ranges is refused as a whole rather than spliced from unrelated allocations, and a 16-bit read at an odd byte is undefined on the console, where such an access is expected to be naturally aligned. ## What I measured Windows 11 25H2, driver 32.0.32029.2010, RX 9070 XT (RDNA4), plus the WARP adapter. 25/25 on `pixel_aot_*`, the new `pixel_flat_load_*` and `docs_links`, with no change to the existing suites. The test drives one shader that reads its address from the constant buffer, so each case is a draw rather than a recompile. I also checked that it can fail: nine mutations, each caught by the case meant to catch it — extending sign instead of masking, ignoring the immediate, freezing the range count, dropping the second word, dropping the carry compensation, dropping the sentinel, leaving the wide lookup body unbraced, asking sixteen bytes for a `dwordx3`, and masking the slot to one bit. The unbraced body was a real bug the split-range case found: the first word was guarded and the rest were not. ## Decisions I took that you may want to overrule - **The range count is a literal fixed at translation time.** `TitleLookup` already takes a count, so it could come from a constant buffer instead. I did not do it, because a dynamic count changes the binding shape and that is your call, not mine. - **Eight aliases are hardcoded** in the shader (`Aliases[8]`). That caps the number of distinct allocations one shader can touch, and I do not know what the game needs. - **Failure is `0xdeadbeef`.** It is noisy on purpose, but it is a choice, and the translator already uses it elsewhere. - **`flat_` and `global_` share one lowering.** If they should stay separate, say so now. ## Deliberately left out Stores and atomics need a writable alias, which is a different binding and a bigger design question. `d16` forms are untouched: the translator models none of them, and I did not want to invent semantics. `scratch_` reads wait on the `s48` base not being modelled. ## The ask Happy to open it, either as one PR or split the way you prefer — the natural seams are `flat_load_dword` alone, then the wider forms, then the 8- and 16-bit ones. Tell me which, and whether you would rather review it against a branch first. I have not pushed anything. _AI-assisted; runs executed locally._
R0Y00 commented 2026-11-24 06:48:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T22:38:52Z.


The first raw MUBUF contract is now under review in #717. It is scoped to one DWORD load with OFFEN, zero stride and zero scalar offset. The draft still needs the exact V# base-address mask and a test that distinguishes a guest bounds miss from a missing host range mapping. The gfx1036 result gives a useful reference, and the gfx1013 bounds behavior still needs its own evidence. Please keep the flat/global probe independent of that descriptor work.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7086974011 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/319#issuecomment-7086974011). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T22:38:52Z. --- The first raw MUBUF contract is now under review in #717. It is scoped to one DWORD load with OFFEN, zero stride and zero scalar offset. The draft still needs the exact V# base-address mask and a test that distinguishes a guest bounds miss from a missing host range mapping. The gfx1036 result gives a useful reference, and the gfx1013 bounds behavior still needs its own evidence. Please keep the flat/global probe independent of that descriptor work.
R0Y00 commented 2026-11-24 06:49:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T07:21:06Z.


#694 merged as ea370ed. The DWORD fixture binds the range table and eight aliases explicitly. global_load_dword ... off uses that binding, and flat_load_dword additionally requires the caller to establish that the effective addresses exclude scratch and LDS. The native hardware and WARP controls cover carry, borrow, misses, straddles and slots. This issue stays open for the remaining load profiles and their own evidence.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7094237020 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/319#issuecomment-7094237020). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T07:21:06Z. --- #694 merged as `ea370ed`. The DWORD fixture binds the range table and eight aliases explicitly. `global_load_dword ... off` uses that binding, and `flat_load_dword` additionally requires the caller to establish that the effective addresses exclude scratch and LDS. The native hardware and WARP controls cover carry, borrow, misses, straddles and slots. This issue stays open for the remaining load profiles and their own evidence.
Makto94 commented 2026-11-24 18:02:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-24T17:37:33Z.


For thepatrickworld: do you plan to open your local flat/global load prototype? If so, I will not duplicate it.

If not, I would take one slice: global_load_dwordx2 ... off and flat_load_dwordx2 on the #694 profile (fixed range count, eight aliases, TitleLookup miss sentinel, flat_global_only=True for the flat form). Other forms stay refused.

Evidence: the pixel_aot_title_loads_* fixture extended with 8-byte cases, on WARP and an RTX 3070 Ti. No native AMD run.

For R0Y00: the fixture has two adjacent ranges that meet at 0x2_0000_1000. With one TitleLookup call and bytes=8, a pair that crosses that boundary returns the miss sentinel in both words. Two DWORD loads at the same addresses would each resolve. Which result should the wider forms have?

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139469867 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/319#issuecomment-7139469867). Originally posted by [Makto94](https://github.com/Makto94) on 2026-11-24T17:37:33Z. --- For thepatrickworld: do you plan to open your local flat/global load prototype? If so, I will not duplicate it. If not, I would take one slice: `global_load_dwordx2 ... off` and `flat_load_dwordx2` on the #694 profile (fixed range count, eight aliases, `TitleLookup` miss sentinel, `flat_global_only=True` for the flat form). Other forms stay refused. Evidence: the `pixel_aot_title_loads_*` fixture extended with 8-byte cases, on WARP and an RTX 3070 Ti. No native AMD run. For R0Y00: the fixture has two adjacent ranges that meet at `0x2_0000_1000`. With one `TitleLookup` call and `bytes=8`, a pair that crosses that boundary returns the miss sentinel in both words. Two DWORD loads at the same addresses would each resolve. Which result should the wider forms have?
R0Y00 commented 2026-11-25 16:05:22 +00:00 (Migrated from github.com)
Author
Contributor

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


For the fixed range-table profile from #694, one x2 load resolves as one 8-byte access. If the pair spans two adjacent ranges, both words take the existing miss sentinel. Two separate DWORD instructions still resolve separately. That follows the whole-range rule in TitleLookup and avoids joining two backing allocations. Keep the 4-byte alignment and flat-global-only premise from this profile. #2386 exercises both interpretations with distinct data and should continue through review. Evidence about native console behavior or another profile can be tracked separately here.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7166255931 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/319#issuecomment-7166255931). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T15:04:16Z. --- For the fixed range-table profile from #694, one x2 load resolves as one 8-byte access. If the pair spans two adjacent ranges, both words take the existing miss sentinel. Two separate DWORD instructions still resolve separately. That follows the whole-range rule in TitleLookup and avoids joining two backing allocations. Keep the 4-byte alignment and flat-global-only premise from this profile. #2386 exercises both interpretations with distinct data and should continue through review. Evidence about native console behavior or another profile can be tracked separately here.
timbot103 commented 2026-12-01 01:27:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T01:27:06Z.


I'd like to take the pixel AOT slice for flat_load_dwordx3 and global_load_dwordx3 ... off on the fixed title alias-table profile. I'll extend the pixel_aot_title_loads_warp fixture used by #2386 and #2419 to check three returned words, preservation of the fourth output, and misses in all three words when the 12-byte access straddles a range after one or two words. My environment is Windows 11 25H2 (build 26200.9974) with Microsoft WARP, an RTX 5080 and an RDNA 2 Radeon iGPU for the hardware variant, DXC 1.9.2602.17, and LLVM 15 under WSL Ubuntu 24.04 for the binary round trip.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7297514288 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/319#issuecomment-7297514288). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-01T01:27:06Z. --- I'd like to take the pixel AOT slice for `flat_load_dwordx3` and `global_load_dwordx3 ... off` on the fixed title alias-table profile. I'll extend the `pixel_aot_title_loads_warp` fixture used by #2386 and #2419 to check three returned words, preservation of the fourth output, and misses in all three words when the 12-byte access straddles a range after one or two words. My environment is Windows 11 25H2 (build 26200.9974) with Microsoft WARP, an RTX 5080 and an RDNA 2 Radeon iGPU for the hardware variant, DXC 1.9.2602.17, and LLVM 15 under WSL Ubuntu 24.04 for the binary round trip.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#314
No description provided.