fix(agc): apply a T# MIN_LOD in the shader where the image view clamp mishandles image_sample_d_cl #16953
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16953"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by sherySJ on 2026-11-08T01:11:01Z.
Cause: with a Mesa ANV view clamp, plain
Grad, explicitLod, any S# bias or sampler minLod sample correctly (0 wrong in a standalone probe on the HD 520);Gradplus aMinLodoperand, which isimage_sample_d_cl, returns max(operand, view clamp) and drops the gradient LOD (292 of 1800 sampled levels wrong on the HD 520, all of themGradplusMinLod; llvmpipe 0 of 1800). @Lucke0051 found the mechanism on a UHD 630 (Mesa 26.2.6, comment): Intel's compiler lowersGradplusMinLodto an explicit-LOD sample whose LOD ismax(log2(|gradient| * textureSize(0)), MinLod), and on a view withminLodof 1 or more ANV returns 0 fromOpImageQuerySizeLodandOpImageQueryLevels, so the gradient term islog2(0)and only the clamps remain. The same zero size reachesQueryDimensionson the image view lane; the shader lane leaves the view unclamped, so the probe's switch avoids that too.The test's expectation and our use of the extension are right: Vulkan's level selection is
d' = max(level_base + clamp(λ, 0, q), minLod_imageView)with λ raised to max(sampler.minLod,MinLodoperand), so this is an ANV deviation, not a wrong expectation.Design: a startup probe, like the float-controls probes, runs
image_sample_d_clthrough the recompiler and takes the existing shader lane (T# clamp folded into theMinLodoperand, view left unclamped) only when its clamp-free control matches and a clamped run differs; a driver-ID gate would stay on after Mesa fixes it and would miss other Intel parts and Windows drivers.The shader lane was off with graphics pipeline libraries because fragment registration modules have no specialization constants for the per-image clamp; they now read it from the T# words already in their runtime image metadata and the per-draw plan still validates it, so pipeline libraries stay on.
Not fixed: ANV adds an S# bias after a gradient sample's clamp operand (both lanes, recorded in
docs/dev/debt/shader.md), and an image table entry with a clamp is refused on a device withoutVK_EXT_image_view_min_lod.What
VulkanDevice.cpp:1931enabled the view clamp whenever the device advertised it, with no behavioural probe, andVulkanDevice.cpp:2157kept the shader lane out of every pipeline-library device. On the HD 520agc_driver_image_sample_lod_clampfailed withimage_sample_d_cl with T# MIN_LOD 512 over BASE_LEVEL 0 ... thread 3 component 0 is 2.000000, expected 3, the line Arrow Lake reports in #15817.Execution/src/ImageViewMinLodProbe.cpp(new) samples a mipmapped 2D texture withimage_sample_d_clin 32 lanes, once without a clamp (control) and over BASE_LEVEL 0 and 1 with MIN_LOD 512, and compares each lane with the Vulkan level.VulkanDevice.cpp:2735(branch) runs it after the float probes; when the control matches and a clamped run differs it setsimageViewMinLodfalse andshaderImageMinLodtrue, refreshes the cached graphics context, andVulkanDevice::Target(:4599) now carries the flag. The probe clears the cached textures it made.APS5_NO_IMAGE_VIEW_MIN_LOD_PROBEskips it.shaderImageMinLodno longer requires pipeline libraries off (VulkanDevice.cpp:2158).SpirvImageEmitter.cpp:51(RuntimeMinLodClamp) computes the relative clamp from T# words 1, 3 and 5 in the runtime image metadata for registration modules; theFailthat rejected them is gone.DescriptorBindingBuilder.cpp:463runsRequireShaderMinLodfor registration modules too and pushes theMinLodBasespecialization constant only for the others, so a registered fragment artifact is reused across different MIN_LOD values.agc_driver_image_sample_lod_clamp_pixeldrawsimage_sample_d_clthrough a pixel shader for nine T# MIN_LOD, base level, gradient and clamp combinations and checks the registered fragment artifact is reused;agc_driver_image_sample_lod_clamp_pixel_shader_laneandagc_driver_image_sample_lod_clamp_shader_lane_pipeline_libraryforce the shader lane with pipeline libraries on. The dead "graphics pipeline libraries keep minimum LODs out of the shader" skip and its test accessor are removed.ARCHITECTURE.md(T# minimum LOD),ENVIRONMENT.md(the new variable, and theAPS5_NO_IMAGE_VIEW_MIN_LODrow no longer says pipeline libraries must be off),debt/shader.md(new entry for the two gaps above).No cache key or serializer format changed (
shaderImageMinLodis already in the request key and serialized request).Refs: #15817 (it lists four failures; this changes only the T# MIN_LOD one: the f32 denormal flush, f64 frexp and mesh
v_interp_movfailures are untouched)Tested
Linux 7.2.8 (Omarchy, Arch), GCC 16.2.1, Release,
-j2, one machine, base210676ad86; the numbers below ran on0f147e329f, 22 commits earlier, which touch none of the files this changes (git merge-treeis clean), and the rebased branch was rebuilt and re-ran the lod clamp tests,agc_driver_storage_cache_budgetandagc_driver_prepared_graphicson both GPUs. Windows not tested.Negative control,
ANYPS5_GPU=<gpu> ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest -V -R agc_driver_image_sample_lod_clamp:agc_driver_image_sample_lod_clamp... thread 3 component 0 is 2.000000, expected 3agc_driver_image_sample_lod_clamp_pixel... gradient LOD of 2.75 and a clamp of 1.0 from T# MIN_LOD 512 over BASE_LEVEL 0: pixel 0,0 samples level 2, expected 3..._shader_lane(non-pipeline-library lane, already on main)Validation layer (Khronos 1.4.363.0 from the extra package, loaded without root,
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation) on the same focused set, 24 tests on main (with this change's new pixel test source added so it could run there) and 26 with this change (two more shader-lane variants,..._shader_lane_pipeline_libraryand..._pixel_shader_lane):agc_driver_image_sample_*,agc_driver_graphics,agc_driver_graphics_maps_fallback,agc_driver_prepared_graphics*,agc_shader_disk_cache*. Neither log containswas not found but was requested by env var VK_INSTANCE_LAYERS, and both contain 0VUID-lines on both devices.lod_clamp,lod_clamp_pixelfail)Whole
ctest -R '^agc_driver_' --timeout 90sweep on the HD 520 with this change (1029 tests, 485 s, 33 skipped): 9 fail, all known Intel or build artefacts:agc_driver_f32_denormal_flush,agc_driver_f64_rounding_denormal_modes,agc_driver_packed_float_blend,agc_driver_sample_multisample_target, the fouragc_driver_native_color_initial_nonuniform*(capability gaps on Gen9, not touched here) andagc_driver_guest_memory_lifetime_converted(itslibGuestMemoryFixture.prxtarget is not built).agc_driver_image_sample_lod_clampno longer fails. An earlier build of this change failedagc_driver_storage_cache_budgetbecause the probe left its sampled textures in the cache; clearing them after the probe fixed that, and the final sweep passes it.Probe cost: 16 to 28 ms at device creation on both GPUs. A standalone Vulkan program (R32F texture whose texel is its mip level, nearest mips, 90 combinations of view minLod, bias, sampler minLod and sample form, 20 lanes each) reproduces the ANV behaviour outside AnyPS5: 292 of 1800 sampled levels are wrong on the HD 520, all of them
GradplusMinLod; 0 on llvmpipe.Overlap
Base
210676ad86. No open PR implements this change.python3 -I claims.py check-branch HEADlists textual neighbours;git merge-treeof this head with each:fix(shader): preserve compute implicit LOD and quad inputs): conflicts intests/execution/ImageSampleLodClamp.cpp(both editmain's lane arguments and skip messages); whichever lands second rebases that test.VulkanDevice.cpp(a probe or feature added at the same place in the constructor, andARCHITECTURE.mdat its end for #15719); mechanical.docs/dev/debt/shader.md.agc_driver_image_gather_lodpasses on a UHD 630, but its T#MIN_LODcases skip saying the device has noVK_EXT_image_view_min_lodwhen this probe has turnedimageViewMinLodoff; if #12790 lands first, this branch rewords that skip when it mergesmain.Review round (adriadam10 and oneandonlydean on
f03972b197): mergedmain27b8778d4finto the branch (plain merge, two "both sides add" conflicts), then three commits. A sampled image table entry with a MIN_LOD keeps the image view clamp on a device the probe switched (it gets its own cached view, and is refused only without VK_EXT_image_view_min_lod); a direct derivative sample gets theMinLodoperand only for a non-zero clamp, so an unclampedimage_sample_dissample_dagain on the HD 520 (INTEL_DEBUG=cs: 8sample_dwhere it was 4sample_lplus 4resinfo); and theTexture.cppmessage no longer mentions graphics pipeline libraries. New tests:agc_driver_image_table_min_lod, and a SPIR-V lane check inagc_driver_image_sample_lod_clamp, each failing with its fix reverted. Rerun on the Intel HD Graphics 520 (switched) and llvmpipe with the validation layer 1.4.363,ctest -R 'image_sample_lod_clamp|image_table_min_lod' -V3 times each: 6 of 6 passed every run, 0VUID-and 0SYNC-HAZARD;public_headersand the conventions check pass.Review follow-up:
APS5_NO_IMAGE_VIEW_MIN_LODno longer takes the extension capability away.VulkanDevice.cppkeptimageViewMinLodExtensionequal to the environment-filteredimageViewMinLod, so forcing the shader lane leftVK_EXT_image_view_min_loddisabled at device creation and a sampled image table entry with a clamp was refused (ShaderResources.cpp,cachedTableTexture). The extension is now enabled whenever the device supports it and the variable (like the probe) only turns the view lane off, so a table entry keeps its view clamp in a cached view of its own on the shader lane. A device without the extension still refuses a clamped table entry. Newagc_driver_image_table_min_lod_shader_lanefails with the fix reverted and passes on the HD 520 and llvmpipe, with the validation layer on and 0VUID-; the lod clamp and table min LOD tests pass with and without the variable.Sparse levels on a switched device: @Script-hpp asked on an Intel Arc B390 (Xe3) whether the sparse path should also accept the shader lane (https://github.com/boykopovar/AnyPS5/pull/16953#issuecomment-7085230943). It stays on the image view lane: the shader lane clamps only the sample instructions that get the
MinLodoperand, while guest image fetches (OpImageFetchwith an explicit mip) and ordinary gathers have none, so they could read a level the sparse path leaves unmapped. A device the probe switches therefore commits every mip of a T# MIN_LOD texture, asmainalready does on a device withoutVK_EXT_image_view_min_lod;dac2bcc778records this in the debt entry and makesagc_driver_texture_sparse_levelsskip withsparse level residency requires the image-view MinLod lane; the shader MinLod lane keeps every level committed. Rerun with the validation layer 1.4.363: the HD 520 (switched, and with the shader lane forced) skips with the new message; llvmpipe skips with the shader lane forced and keeps on the view lane a memory assertion failure that is the same atf97c5ec5d0before this commit (sparse and fully mapped both 2,796,160 bytes); 0VUID-.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)agc_driver_image_sample_lod_clampnow passes); NVIDIA RTX 3070 and RTX 3070 Ti, Linux (probe keeps the image view lane, all five lod clamp tests pass; Doorriiaann reran the RTX 3070 atf97c5ec5d0with the new edge cases, 3 of 3, https://github.com/boykopovar/AnyPS5/pull/16953#issuecomment-7080050864); Intel Arc B390 (Xe3), Mesa 26.2.7 ANV, Linux (probe takes the shader lane, the 8 LOD tests pass 3 of 3, Script-hpp, https://github.com/boykopovar/AnyPS5/pull/16953#issuecomment-7085230943).Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-12T00:40:53Z.
Review: CHANGES_REQUESTED
The probe approach holds up: a clamp-free control, point filters, the view lane kept when inconclusive, and the measurements on the HD 520 and UHD 630 back the diagnosis. Two regressions on the devices it switches are still open (both raised by @oneandonlydean on
f03972b197, no reply or push since), plus one small leftover:Graphics/src/ShaderResources.cpp:6269: a sampled image table entry with a MIN_LOD is now refused onceimageViewMinLodis turned off, where onmainit sampled through the clamped view. Bindless titles on Intel would start faulting on those entries. The extension is still enabled after the switch, so table entries can keep the view clamp and only direct images take the shader lane.SpirvImageEmitter.cpp(theGrad|MinLodemission,:1882/:1887): the shader lane adds aMinLodoperand to every direct derivative sample, even with a clamp of 0. @Lucke0051 compiled it on the UHD 630 (INTEL_DEBUG=cs):Grad|MinLodwithMinLod0 (constant, spec constant or buffer value) becomesresinfo+sample_l, plainGradstayssample_d. Soimage_sample_don unclamped textures loses anisotropic filtering there. EmitMinLodonly when the clamp is non-zero (a branch on the specialization constant; registration modules read it at run time, so the branch stays in the shader).Graphics/src/Texture.cpp:331: the message still says "without graphics pipeline libraries".Please also add a test pinning the first two (a table entry with a MIN_LOD on the switched device, and the clamp-0 sample using the plain gradient path where that can be observed).
Imported from boykopovar/AnyPS5. Originally posted by kurexw on 2026-11-17T01:37:48Z.
Review: COMMENTED
Tested on an Apple M4 alongside #20030, in four variants with the same tests and environment.
Setup: Apple M4, macOS 27.2, MoltenVK 1.4.2 from the LunarG Vulkan SDK 1.4.363.1, x86-64 build under Rosetta 2. This device reports
samplerMipLodBias = false(portability subset).Base and variants:
mainat939d3630ed, inRequestSerializer.cpp,RequestSerializerTests.cppandShaderMemory.cpp.0f4538fa02), but both PRs merge cleanly onto #16953's merge-base,27b8778d4f(2026-11-16).27b8778d4f, with no conflict resolved by hand:27b8778d4f27b8778d4fmerged with the #20030 head (412ade6415)edac4156bd)main.Tests: the 29 GPU tests that fail on
mainon this Mac, viactest --test-dir build -R '<those 29>' -V, withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer. Three runs per variant. Each run loggedInsert instance layer "VK_LAYER_KHRONOS_validation"32 times (layer 1.4.363) and never the missing-layer message.agc_driver_image_sample_lod_bias_sumagc_driver_image_sample_lod_clampagc_driver_image_sample_lod_clamp_shader_laneVUID-VkSamplerCreateInfo-samplerMipLodBias-04467per runVUID-VkDeviceCreateInfo-sType-uniqueper run (Recorder test device, fixed separately in #21965)One of the 25 is timing-dependent here.
agc_driver_label_after_import_copyfails as "round N: a CPU read after the label that followed the copy found 64 of 262144 destination bytes not yet copied" on every variant, including the base:It is not a test either PR targets, and it fails on the base too. I'm listing it because #16953 fails it noticeably more often on this machine. I can't tell from these counts whether that comes from the change or from timing.
Not tested: Linux, Windows or another GPU.
Result for this PR: on its own, it changes none of the three LOD tests on this device. They still fail with the same wrong levels, and the six
samplerMipLodBias-04467errors remain. With #20030 added, the three tests pass, the same as #20030 alone. So I can't see a MoltenVK case in this set that needs this PR'sMIN_LODpath; the device whereimage_sample_d_clmishandles the view clamp may simply not be this one. This PR merges cleanly onto currentmain(939d3630ed); I tested it at its own merge-base.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T04:58:41Z.
Review: COMMENTED
Reviewed — comments
Changes are ready for review, but the changed device setup leaves the image view minimum LOD extension disabled when
APS5_NO_IMAGE_VIEW_MIN_LODforces the shader lane, so image table entries with a clamp cannot be handled as described.What I ran
Inspected the prepared diff at head
edac4156bd24cd79a862dd2b85ee35f7dff9d386and read the relevant device initialization, table texture lookup, shader emission, and binding validation code throughrepo_read.py. I did not run tests or build commands. Test results in the PR description are author-reported.Results
Findings
Blocking
None verified.
Non-blocking
VulkanDevice.cpp:1980setsimageViewMinLodExtensionfromimageViewMinLod, which is already false whenAPS5_NO_IMAGE_VIEW_MIN_LODis set. The shader-lane table path callscachedTableTexture, which requiresimageViewMinLodExtensionfor a clamped table entry (ShaderResources.cpp:1725). As a result, on a device supporting the extension, forcing the shader lane also makes a clamped image table entry fail, despite the environment variable documentation saying it only disables the view lane. Preserve the extension capability separately from the environment-filtered enable flag.Not verified
VulkanDevice.cpp,ShaderResources.cpp, andTexture.cppfull texts were excluded fromfiles/due to size; relevant ranges were read throughrepo_read.py.files.jsonwas unavailable through the reader, so the exclusion list is based onmanifest.json.manifest.jsonwere not fully read; the review focused on hunks and their directly touched paths.To get this to a good state
Nothing is required. Optional: track extension support independently of whether the image view lane is selected, so a forced shader lane can still retain the extension for clamped image table entries.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T07:18:16Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
2e6d79773abdb6373a6a11df8c58bceb1a5faefcusing the prepared diff andrepo_read.py. No commands or tests were run in this review; test results in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No changed-file paths were excluded by
files.json(that file was unavailable through the reader); the manifest marksVulkanDevice.cpp,ShaderResources.cpp, andTexture.cppas too large for the review folder, and I read targeted ranges from them through the pinned reader. I did not read every full changed file or run tests, so the review is incomplete for an approval decision. The description's reported test runs and platform behavior were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T11:57:42Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed portions of head
491a15b8e474f7d939d5eba58239a784582d91ccshow no verified blocking defect, but the review is incomplete because several changed files were not read in full.What I ran
Read the prepared review bundle and targeted source ranges through
repo_read.py. No build or test command was run.Results
Findings
Blocking
None verified in the portions reviewed.
Non-blocking
None.
Not verified
Read the description, commits, manifest, diff, and targeted ranges from
VulkanDevice.cpp,Texture.cpp,ShaderResources.cpp,DescriptorBindingBuilder.cpp, andSpirvImageEmitter.cpp. The diff also exposed the new probe and tests, but I did not read all their full head files. Other changed files listed in the manifest were not read.VulkanDevice.cpp,ShaderResources.cpp, andTexture.cppwere excluded from the prepared full-text bundle as too large; I used targeted reader ranges for portions of them. I did not run tests or independently verify the author-reported results.To get this to a good state
Nothing is required. Optional: complete review of the unread changed files and run the focused LOD clamp tests on the new head before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T06:20:23Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: resolve the noted runtime metadata clamp concern.
What I ran
Reviewed head
43abeb36b8e375911e5e12eaf33b2a0be6ba5e6cusing the prepared diff andrepo_read.pyfor targeted source ranges. No commands or tests were run.Results
Findings
Blocking
None verified.
Non-blocking
RuntimeMinLodClampderives the relative clamp from runtime descriptor words, includingMAX_MIPbounds (core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp:60). Please add a focused test for a descriptor whereMAX_MIP < BASE_LEVELand for a clamp above the descriptor’s last level. The current submitted pixel cases exercise ordinary clamp/base combinations but do not establish this metadata edge behavior.Not verified
The changed full-text files read through
files/wereExecution/src/ImageViewMinLodProbe.cpp,Execution/include/ImageViewMinLodProbe.hpp,Graphics/include/Context.hpp,Graphics/include/ShaderResources.hpp,tests/cmake/agc_driver_image_sample_lod_clamp_tests.cmake,tests/execution/ImageSampleLodClamp.cpp,tests/execution/ImageSampleLodClampPixel.cpp,tests/execution/ImageTableMinLod.cpp,Optimization/src/DescriptorBindingBuilder.cpp,SpirvBackend/src/SpirvImageEmitter.cpp,docs/dev/ARCHITECTURE.md,docs/dev/ENVIRONMENT.md, anddocs/dev/debt/changes/agent-anyps5-lodclamp-anv.md. Targeted ranges were read from the changed but excludedExecution/src/VulkanDevice.cpp,Graphics/src/ShaderResources.cpp, andGraphics/src/Texture.cppthroughrepo_read.py.The full changed files
Execution/src/VulkanDevice.cpp,Graphics/src/ShaderResources.cpp, andGraphics/src/Texture.cppwere excluded by the review bundle size rule and not read in full; other portions of those files were not verified. No independent test run, Windows run, or console hardware validation was performed. Test results in the PR description are author-reported.To get this to a good state
Nothing is required. The test suggestion above is optional.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T06:58:44Z.
Review: COMMENTED
Reviewed — comments
The reviewed diff is consistent with the stated T# MIN_LOD lane split, but this review is incomplete because three changed implementation files were excluded from full-text review and no checks were run here.
What I ran
Reviewed head
f97c5ec5d00599e202f4db7c6dbb30b65f763929using the prepared diff and targeted reads throughrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None verified in the code read.
Non-blocking
VulkanDevice.cpp,ShaderResources.cpp, andTexture.cppwere excluded from the prepared full-text files. Their relevant hunks were inspected in the diff, and targeted head ranges were read for the device and table-cache paths.Not verified
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp, andcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp.review/description.md,review/commits.md,review/manifest.json,review/diff.patch; full changed-file text forcore/libs/prx/libSceAgcDriver/CMakeLists.txt,core/libs/prx/libSceAgcDriver/Execution/include/ImageViewMinLodProbe.hpp,core/libs/prx/libSceAgcDriver/Execution/src/ImageViewMinLodProbe.cpp,core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp,core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp,core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sample_lod_clamp_tests.cmake,core/libs/prx/libSceAgcDriver/tests/execution/ImageSampleLodClamp.cpp,core/libs/prx/libSceAgcDriver/tests/execution/ImageSampleLodClampPixel.cpp,core/libs/prx/libSceAgcDriver/tests/execution/ImageTableMinLod.cpp,core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp,core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp,docs/dev/ARCHITECTURE.md,docs/dev/ENVIRONMENT.md, anddocs/dev/debt/changes/agent-anyps5-lodclamp-anv.md. Targeted ranges were also read from the three excluded files.To get this to a good state
Nothing is required. Optional: complete a full review of the three excluded changed files and run the relevant build and tests on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T05:15:51Z.
Review: COMMENTED
Reviewed — no blocking findings
The changed code and test additions were inspected at head
dac2bcc7787405644d18b13367085781c0f38f5b; no concrete defect was verified, but tests were not run in this review.What I ran
No commands or tests were run. I inspected the prepared description, commit list, manifest and diff, then used the reader to inspect changed source and test hunks plus relevant callers. The review folder listed 18 changed files; the diff and targeted source ranges for these changes were read. Files excluded by rule: none were listed.
Results
Findings
Blocking
None.
Non-blocking
None.
Sources
Prepared review bundle:
description.md,commits.md,manifest.jsonanddiff.patch; source read throughrepo_read.pyat the pinned head.Not verified
Tests were not run. Full file contents were not read for every changed file; the review focused on changed hunks and relevant code ranges. The description reports Linux results on an Intel HD Graphics 520 and llvmpipe, and Windows was not tested by the author.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T06:05:48Z.
Review: APPROVED
Reviewed — looks good
The reviewed changes are internally consistent with the reported fix; the author’s hardware results are reported evidence, not tests I ran.
What I ran
Inspected the prepared diff at head
bf12269bb8084dcb0c6f80a41036273cea9eeca0and read the changed lines of every file listed as reviewed in the manifest. Used targeted reads for the three changed files excluded from the review folder. No tests or builds were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, automated tests, validation-layer run, or physical GPU behavior was verified in this review. The author reports Linux results on an Intel HD Graphics 520 and llvmpipe; Windows was not tested. The review-folder list records 16 changed files as reviewed and excludes none. Targeted reads from the pinned head covered
VulkanDevice.cpp,ShaderResources.cpp, andTexture.cpp.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:37:16Z.
Review: COMMENTED
The trial merge onto
c1601e56d5conflicts inShaderResources.cppandDescriptorBindingBuilder.cpp. Preserve the two separate cache identities where the shader lane uses an unclamped direct image but the image table still needs a clamped view. The direct zero-clamp derivative control should also stay, since an unnecessaryMinLodoperand changes the ANV lowering. The Intel observations are from the author’s hardware results. I have no ANV execution result.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.