docs: measure type-0 and type-1 texture descriptors on gfx1100 #7910

Merged
DavidAmsellem merged 2 commits from upstream-pr/7910 into main 2026-10-26 09:58:45 +00:00
DavidAmsellem commented 2026-10-19 13:19:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidAmsellem on 2026-10-19T13:19:45Z.


What

The entry recorded TYPE 1 from a gfx1010 measurement with format 22 only, and left other formats,
depth-compare reads and other architectures open.

Measured on a gfx1100 (RX 7900 XT, RADV Mesa 25.2.8) with the hardware oracle.
A 2D T# declared 64x32 is built in SGPRs, its base pointing at readable memory holding 0xff bytes:

TYPE image_sample_lz image_load image_sample_c_lz image_sample_b image_get_resinfo
9 (control) stored texel 0xffffffff 0x3f800000 stored texel 64, 32
1 0 0 0 0 0
0 0 0 0 0 0

TYPE 0 and TYPE 1 answer zero with no fault for formats 32_FLOAT, 16_SSCALED, 2_10_10_10_SNORM and
8_UNORM, over a nonzero base and over a zero base alike. These are the raw GFX11 codes 22, 10, 37 and 1.
GFX11 renumbers the formats past 29, so on the console's GFX10 numbering 37 would be 11_11_10_UNORM.
The names come from llvm-mc -mcpu=gfx1100 for those codes. The entry now names the formats instead of
the codes.

The control matters: a first attempt that loaded the descriptor with s_load_dwordx8 answered zero
for TYPE 9 as well, which would have read as a measurement. Built in SGPRs, TYPE 9 answers the
declared 64 and 32 and the stored bytes, so the zeros above are the device's answer and not a dead
kernel. image_sample_c_lz needs a sampler whose depth compare function is ALWAYS to say anything:
the control then answers 1.0 at 32_FLOAT, but zero at the other three. That is not about TYPE: a sweep
of all 63 GFX11 color codes 1 to 63 on a TYPE 9 T# shows gfx1100 comparing only at 16_UNORM and 32_FLOAT.
Every other format reads its texels but answers 0 for every compare function, ALWAYS included. Format 0
answers zero even at TYPE 9.

This measures gfx1100, not the console's gfx1013, and changes no behaviour: the entry already
describes what the driver does.

Open PR #7600 adds a new entry just above this one in the same file. It does not touch these lines.

Tested

Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, RX 7900 XT (RADV NAVI31, Mesa
25.2.8). Documentation only, no code change.

  • python3 tools/hw-oracle/hw_oracle.py runs for every row of the table above.
  • python3 tools/check_conventions.py --base origin/main passes.
  • python3 tools/pr_overlap.py --branch docs/type1-descriptor-measurement run; see the note above.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD, Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4921587530 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7910). Originally posted by [DavidAmsellem](https://github.com/DavidAmsellem) on 2026-10-19T13:19:45Z. --- ### What The entry recorded TYPE 1 from a gfx1010 measurement with format 22 only, and left other formats, depth-compare reads and other architectures open. Measured on a gfx1100 (RX 7900 XT, RADV Mesa 25.2.8) with the [hardware oracle](docs/dev/HW_ORACLE.md). A 2D T# declared 64x32 is built in SGPRs, its base pointing at readable memory holding `0xff` bytes: | TYPE | `image_sample_lz` | `image_load` | `image_sample_c_lz` | `image_sample_b` | `image_get_resinfo` | | --- | --- | --- | --- | --- | --- | | 9 (control) | stored texel | `0xffffffff` | `0x3f800000` | stored texel | 64, 32 | | 1 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 0 | 0 | TYPE 0 and TYPE 1 answer zero with no fault for formats 32_FLOAT, 16_SSCALED, 2_10_10_10_SNORM and 8_UNORM, over a nonzero base and over a zero base alike. These are the raw GFX11 codes 22, 10, 37 and 1. GFX11 renumbers the formats past 29, so on the console's GFX10 numbering 37 would be 11_11_10_UNORM. The names come from `llvm-mc -mcpu=gfx1100` for those codes. The entry now names the formats instead of the codes. The control matters: a first attempt that loaded the descriptor with `s_load_dwordx8` answered zero for TYPE 9 as well, which would have read as a measurement. Built in SGPRs, TYPE 9 answers the declared 64 and 32 and the stored bytes, so the zeros above are the device's answer and not a dead kernel. `image_sample_c_lz` needs a sampler whose depth compare function is ALWAYS to say anything: the control then answers 1.0 at 32_FLOAT, but zero at the other three. That is not about TYPE: a sweep of all 63 GFX11 color codes 1 to 63 on a TYPE 9 T# shows gfx1100 comparing only at 16_UNORM and 32_FLOAT. Every other format reads its texels but answers 0 for every compare function, ALWAYS included. Format 0 answers zero even at TYPE 9. This measures gfx1100, not the console's gfx1013, and changes no behaviour: the entry already describes what the driver does. Open PR #7600 adds a new entry just above this one in the same file. It does not touch these lines. ### Tested Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, RX 7900 XT (RADV NAVI31, Mesa 25.2.8). Documentation only, no code change. - `python3 tools/hw-oracle/hw_oracle.py` runs for every row of the table above. - `python3 tools/check_conventions.py --base origin/main` passes. - `python3 tools/pr_overlap.py --branch docs/type1-descriptor-measurement` run; see the note above. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD, Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
boykopovar/AnyPS5!7910
No description provided.