fix(agc): serve sampled DCC array views from their viewed slices #9961
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9961"
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 daviaaze on 2026-10-23T00:23:42Z.
What
Targets Demon’s Souls PPSA01341 (#1283); title-unblock status remains unverified pending an in-game A/B. On current
main,ViewedArrayWindowreturns the entire array whendccAddress != 0(TextureTiling.cpp:471). For the title’s sampled 1024x1024 format-22 view of slice 636 in a 637-slice Z_64KB_X array, the unreadable DCC keys mean texels are read as stored, but the snapshot still spans all 637 slices: 2,671,771,648 bytes.This fix starts an XOR-swizzled window at the last slice-swizzle boundary before the view, and cuts a DCC-bearing view only when whole-surface keys resolve to
Uncompressed. It drops DCC metadata on that window. The regression test decodes the title’s exact descriptor words and checks that the window covers slices 624..636 (54,525,952 bytes), preserves the Z_X texel addresses, and preserves the key decision. The descriptor itself is not modified.Tested
ctest -V -R '^agc_driver_graphics(_maps_fallback)?$'passed 2/2 on currentmainb4d8e8bb3b14a9ce97caeca6e4466b02836ee813and on PR headb166232c722f77e3616dbed5e24a579e8be7d3bf(rebased onto thatmain), same machine, withANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1, andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(Vulkan-ValidationLayers 1.4.363 on the layer path).agc_driver_graphics_testsdoes not link or load the Vulkan loader (nolibvulkaninldd; no loader output underVK_LOADER_DEBUG=layer), so the validation layer never attaches to these tests on either arm and the VUID comparison is 0 against 0 by construction, not evidence.main, a view at base slice 1530 keeps the full array; this fix windows from slice 1520. For the title’s DCC descriptor, the currentmainguard likewise keeps all 637 slices.Checklist
main; no other open PR implements this exact changeImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T05:33:50Z.
Review: DISMISSED
The new test and reported hardware coverage are relevant: the description records a Windows main-vs-change negative control from another contributor, while your Linux RX 6700 XT run reports the focused graphics test passing under the Khronos layer. Local current-main conventions, test registration and diff checks pass. I could not run the GPU test in this environment.
Please refresh from current
mainbefore this can be considered ready:check_main_sync.pyreports 1 ahead /259 behind, withShaderResources.cppanddocs/dev/debt/libSceAgcDriver.mdchanged on both sides since merge base (clean merge). After refreshing, run the same focusedagc_driver_graphics_testson current main and the change on the same RX 6700 XT, withctest -V,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1, andANYPS5_REQUIRE_VULKAN=1; compare for new VUIDs. The body currently reports the change-side validation run but does not give a matching current-main run or VUID delta. Keep the title-unblock status as unverified until an in-game A/B reaches the reported point. This is for the repository's current-main and AGC validation requirements, not queue size.