Repository navigation
Use the texture format for 2D explicit-LOD samples - #2458
Conversation
Integer images need an integer sampled type for defined Vulkan texels. Use the descriptor format to select it while carrying the supplied mip level into every branch.
|
Independent GPU regression check of ede5918 against its parent 4947579 on Windows 11 build 26300, RTX 5070, driver 621.24. I temporarily extended the two-mip Vulkan texture harness to bind R32_UINT, R32_SINT, and R32_SFLOAT views, with distinct constant texels per mip. The harness source has been restored. A hand-written fragment shader used
All generated modules passed Vulkan 1.2 |
|
Independent package check of ede5918 against its parent 4947579, using ten local Xbox 1.0.2.1 shaders selected for containing image_sample_l from a previously disassembled slice. All ten compiled modules changed. With wave64 emulation, 10/10 translated and passed spirv-val on each revision. With a separate fresh Vulkan pipeline cache per revision, an RTX 5070 (32-lane subgroups, Windows 11, NVIDIA 616.56) created all eight mesh pipelines and both pixel pipelines on both revisions, with no failures or skips. This check covered package compilation and pipeline creation; the sample was bounded and did not measure texture readback. AI-assisted. |
|
Tested ede5918 on AMD Radeon RX 9070 XT (RADV GFX1201) and the Ryzen 7 9800X3D iGPU (RADV RAPHAEL_MENDOCINO, gfx1036), Mesa 26.2.6, Linux 7.3.4: pass, no regressions.
No game files. AI-assisted. |
|
Tested ede5918 against its parent 4947579 on the AMD proprietary Windows driver: AMD Radeon RX 7600 (RDNA3, subgroup 32..64), AMD 26.11.2 (LLPC), Windows 11 10.0.26300. Pass, no regressions.
Not covered by this run: an integer (R32 UINT/SINT) Run with an AI assistant (Claude). |
|
Tested Runtime and test programs built from this head (MSVC 14.51, Ninja, RelWithDebInfo), native Windows
No suite shader uses a 2D AI-assisted (Claude Code); I checked the results. |
|
Tested ede5918 on NVIDIA GeForce RTX 3070 (Ampere, subgroup 32..32), driver 610.57.04 (Vulkan 1.4.341), Debian 13 (kernel 6.12.115): pass, no regression. Adds Linux NVIDIA to the runs above. Base is
The AI-assisted: yes |
|
Tested ede5918 on an RX 9070 (RDNA4), AMD 26.11.1 (LLPC), Vulkan 1.4.359, Windows 11: pass
AI-assisted |
|
Tested ede5918 on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
|
Tested ede5918 on RTX 4080 SUPER (Ada, subgroup 32), NVIDIA 621.24 (Vulkan 1.4.357), Windows 11 Pro build 26300; MSVC 14.44, Vulkan SDK 1.4.363.0,
|
|
Tested The PR touches only
So the descriptor branch change does not move a single texture, cube, texel-offset or integer-format fixture on either driver. Red on main, as claimed. Running the PR's AI-assisted. |
|
Tested ede5918 merged onto main ec8ec4c on an NVIDIA GeForce RTX 5070 Ti (desktop), driver 617.14, Windows 11 (build 26200), subgroup 32..32: pass, no regression, but the GPU suite doesn't reach the changed path.
A GPU fixture for 2D explicit-LOD samples on integer views (uint and sint, plus the float miss path) would check it on hardware. I can write one if that helps. Setup note: |
|
Thanks for checking the suite against main. A permanent R32_UINT/R32_SINT explicit-LOD fixture would be useful. The independent RTX 5070 check already exercised the changed path in a temporary harness, but those cases are missing from the committed suite. If you pick it up, please coordinate the follow-up in the tracker and include the float fallback as a control. Keeping the fixture in a follow-up PR makes the two changes independently reviewable. |
Claimed in the coordination issue as 2D explicit-LOD texture format dispatch.
What and why
A 2D
image_sample_lalways used a floating-point sampled image, including when T# word 1 specified R32_UINT or R32_SINT. Vulkan gives a poison texel when the sampled type or signedness mismatches the image view. The instruction now uses the same format dispatch asimage_sample_lzand passes the explicit LOD to every branch. A descriptor lookup miss still reads the float fallback. Vulkan sampling validationTested
AI-assisted with Codex.
Checklist
docs/design.md, with the reference and CPU check.