feat(agc): apply a texture descriptor's MIN_LOD clamp through the image view #130
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/130"
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 oneandonlydean on 2026-09-29T00:33:10Z.
What
A texture descriptor with a nonzero MIN_LOD (T# word1, unsigned 4.8, counted in levels of the whole surface) was rejected at decode.
Sampled views now chain
VkImageViewMinLodCreateInfoEXT(VK_EXT_image_view_min_lod, enabled when the device reports theminLodfeature). ItsminLodcounts levels of the whole image the same way MIN_LOD counts levels of the whole surface, because the image holds every mip and the view starts at BASE_LEVEL.What still throws:
This is separate from #37, which handles the sampler's (S#) min LOD, not the texture descriptor's.
Tested
agc_driver_testscovers the decode and the effective clamp: below, at and above BASE_LEVEL, past the last level, and the smallest step.agc_driver_recorder_testsgetsminLodTests, which uploads a 4-level surface with a different constant in each mip, samples it at explicit LODs through views with different clamps and checks the red channel: integer and fractional clamps, clamps past the last level, and views starting at level 1. With the view clamp left out, the test fails ("MIN_LOD 1 reads level 1 at LOD 0: read 0.000000, expected 0.250980").ctest: 57/57 pass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-09-30T16:12:47Z.
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.
main)core/libs/prx/libSceAgcDriver/tests/shaders/SampleLod.compcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppL212-213, L404-405core/libs/prx/libSceAgcDriver/tests/shaders/SampleLod.compcore/libs/prx/libSceAgcDriver/tests/shaders/SampleLod.comp