Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The changed image table check uses the sampled view format for color images and retains the guest numeric class for stencil views; I found no blocking defect.
What I ran
Reviewed head 955816d1b26c0aacbde78fa3b1e6d3b634c97eeb using repo_read.py to inspect the diff and relevant source ranges. I ran no tests or build commands. The Windows and Linux test results in the PR description are author-reported, not independently verified.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | All three changed files inspected |
| Tests | not run | No tests run during this review |
Negative control
Not run; no tests were run during this review.
Findings
Blocking
None.
Non-blocking
None.
Sources
- Image table sampler class check at the reviewed commit
- Integer view format classification
- Added packed-float image table coverage
Not verified
Read the changed declaration in Texture.hpp, the changed sampler check in ShaderResources.cpp, and the added test case in ImageTable.cpp, plus relevant format and view helpers. files.json lists all three changed files as reviewed and no files excluded by rule; the full ShaderResources.cpp text was not included, and only the relevant source range was read. Runtime behavior, test results, and console behavior were not independently verified.
To get this to a good state
Nothing is required.
|
Windows at this head ( Setup:
The added test lines are not inside a platform guard. AI-assisted: yes. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Tested
GPU: 4 GPU tests (AGC) passed twice on a GTX 1650 SUPER (Windows 11, Vulkan required, validation layer on, shader cache off), with this pull request merged into main AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
|
NVIDIA results for this head ( Machine: Windows 10 (10.0.19045), RTX 5070 Ti, NVIDIA 621.24, WinLibs GCC 15.2.0. This PR was merged locally with
Each of the four logs shows the layer inserted 32 times, no PPSA38500 (01.002.001) never logs this PR's refusal ( Not covered: a title run that hits this refusal; other GPUs and Linux. AI-assisted: yes. |
Plyxen
left a comment
There was a problem hiding this comment.
I read the diff at 955816d1b2. Windows 11, GCC 15.2, merged into main at b97867d3ce6 together with other open PRs (so not an isolated build), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation on an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).
- the 14 tests of
agc_driver_image_table_tests: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has aVUID-orSYNC-HAZARDline. - Control (same tree and tests, the changed files of those PRs put back to
main's):agc_driver_image_tablefails on both GPUs: "an 11_11_10 float table T#, sampled through a float view, was classed as an integer image". The other 13 pass.
Not checked: a title.
AI-assisted: yes (Claude Code)
ligmaSec
left a comment
There was a problem hiding this comment.
Ran the same agc_driver_image_table and agc_driver_gcn_scalar_buffer_base CTests on main and this head integrated using Mesa lavapipe. Both scalar controls passed. The changed image-table run reached the later depth-storage cases, so the new packed-float assertions completed. The image-table suite exceeded its 30-second CTest timeout on both runs. Both logs show Khronos validation 1.4.369 being inserted, with no missing-layer diagnostic or VUID- messages before the timeout.
AI-assisted: yes.
Requested by Chef · project thread
What
An image table entry paired with a clamp-to-border sampler is refused when the sampler's border colour numeric class disagrees with the image class. That class came from
SampledTextureNumericClassof the guest format. This function classesFormat11_11_10FloatandFormat10_11_11FloatasUint, because the shader conversion path reads them as raw words. A sampled table entry of these formats, however, gets a nativeVK_FORMAT_B10G11R11_UFLOAT_PACK32view and is sampled as float through the float-border sampler. Every such entry was therefore refused, and it read zeros.The class now comes from the format of the view the entry is sampled through (
IntegerFormat(texture->ViewFormat())). A depth/stencil view keeps the guest class, because its view format does not say whether the stencil plane (guest8UInt) or the depth plane is sampled.IntegerFormat(Texture.cpp) is declared inTexture.hppfor this use.Formats with a conversion view are unchanged: 6E4Float and the 11_11_10, 10_11_11 and 2_10_10_10 UNorm and UInt formats still get an
R32_UINTview, so they stay integer. Depth-bits entries still get anR32_SFLOATorR16_UNORMview, so they stay float.A real integer image with a float-border sampler is still refused. Pairing that case is the subject of #28321, which touches the same check.
Tested
ctest -R ^agc_driver_image_table(31 tests) onmainand on this branch, withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer. Result: 31/31 on both. Both logs show the loader inserting the layer, and there are 0VUID-in each.agc_driver_image_table(border numeric class loop): aFormat11_11_10Floattable T# behind a float-border direct S#. It must not fault and must match a direct-T# control. It fails onmainwith the refusal and passes here.agc_driver_image_tablepasses.agc_driver_image_table_variantsfails there onmaintoo ("a table whose borrowing entry shares a cached representative was resolved again"), without userfaultfd. This is unrelated to this change.c2400000andc2b00000), in pixel shaders0x120aeb4200,0x120aee2600,0x120aed1000and0x120aeca300;R32G32_UINTentries behind a float-border sampler, the case left to feat(agc): pair sampler-table border samplers with their image numeric class #28321.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit