Repository navigation
perf(agc): publish native multisample depth with hoisted tiling - #19585
oneandonlydean merged 1 commit into
Conversation
|
This pull request is labeled |
|
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.
|
|
Impressive performance work on native multisample depth publication! Hoisting the swizzle coordinate lookups ( The testing methodology is exemplary:
|
|
Windows check of head
This is a correctness check only; I did not measure the performance effect. AI-assisted: yes. |
|
Thanks @JJenkx for the AMD/Windows check of Windows job: the four timeouts ( Performance: this PR claims only identical bytes and less work per element, not a frame time. We cannot yet give a Question for the maintainers: is a AI-assisted: yes. |
Multisampled depth and stencil publications tiled and expanded their paged snapshots one element at a time. TileHoisted computes each block's address once per row and fragment, and ExpandPagedSnapshot fills whole pages. The result bytes are the same as before: the layout test compares TileHoisted with Tile, and ExpandPagedSnapshot with the byte-by-byte expansion. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
64f2bca to
004b4a3
Compare
|
Rebased onto The four Windows timeouts ( AI-assisted: yes. |
|
Tested on Cyberpunk 2077 (PPSA03974) 02.120.000, the intro movie at 3200x1800, Windows 11 (10.0.26200), RTX 5090 (NVIDIA 617.42), Ryzen 9 9950X3D, WinLibs GCC 15.2 Release. Base: current
No measurable change on this scene (single boot; separate boots of one build differ by up to about 8% here, and the base's own windows ranged from 86 to 133). The intro probably has few native multisample depth publishes, so this says little about scenes that have them. No errors or aborts. |
What
Native multisample depth and stencil publications read back their guest-visible bytes and tiled them one element at a time.
MultisampleTextureLayout::TileHoistedcomputes each block's address once per row and fragment, and writes the same bytes asTile.ExpandPagedSnapshotfills the stored pages with whole-word copies instead of a byte-by-byte formula.PublicationPlane::Expandand the publish step use these two functions directly; there is no runtime switch.The old functions stay:
TileandDetileare unchanged, andPublicationPlane::Byteis still used to compare published bytes. The layout test comparesTileHoistedwithTilefor every element size, fragment count and padding shape it covers, andExpandPagedSnapshotwith the byte-by-byte expansion, and it refuses overlapping or short buffers.Overlap with open PRs: #9950 also builds a
MultisampleTextureLayoutfor the native multisample D32 depth publication, without changing the functions named here. Other open PRs shareDepthSurface.cppwithout touching these functions.Tested
Windows 11 Pro (10.0.26200), NVIDIA GeForce RTX 3080 Ti, driver 610.88, MinGW GCC 15.2 (UCRT, POSIX threads, SEH), Release, validation layer on (
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation). Built on the same machine onmainef4b938 and on this branch at 004b4a3.agc_driver_msaa_layout(CPU): passes onmainand on this branch. Onmainthe test has the old checks only; on this branch it also coversTileHoistedandExpandPagedSnapshot.agc_driver_native_multisample_depth, theagc_driver_native_depth_*tests andagc_driver_msaa_layout(Vulkan): 30 of 30 pass onmainand 30 of 30 on this branch (agc_driver_native_depth_driver_queued_fillis skipped on both sides). VUID: 0VUID-lines in both logs. The phrasewas not found but was requested by env var VK_INSTANCE_LAYERS: 0 occurrences in both.TileHoisted: the layout test fails with "the hoisted multisampled retile differs from the plain retile in element, padding or guard bytes". (2) the pattern index changed inExpandPagedSnapshotand the word loop removed: the layout test fails with "a paged snapshot expanded page by page differs from its bytes taken one by one".Checklist
main(ef4b938 at posting time)NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository🤖 Generated with Claude Code