feat(libSceAgcDriver): lay out PS4 textures in tile mode 19 (Thick_1dThick) #9674
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9674"
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 ntamas94 on 2026-10-22T07:45:07Z.
What
A PS4 T# with tile mode index 19 (
Thick_1dThick) threw. Gang Beasts (CUSA04865, Unity) hits it.The mode stores 8x8x4 micro tiles. Within a tile the elements follow addrlib's
ADDR_THICKorder for their size:Level 0 and levels at least four slices deep keep their slices as slabs of four. Nonzero levels below four slices degrade to 1D thin, one slice per stride, with SI pitch adjustment to a 256-byte slice alignment. Only thick 3D textures take this layout; a block-compressed volume, which addrlib lays out thin, throws. I checked the layout against addrlib, Mesa, GPCS4, shadPS4 and fpPS4. New
TextureTilingcases check that a micro tile maps its 8x8x4 elements one to one, the first steps of the element order for each size, and the level and slab offsets of a small volume. The debt entry for PS4 thick and layered surfaces now says which thick mode is laid out, that tile mode 19 is checked against the layout tests only and not byGcnDetile.cpp's GPU run, and that a thick mode on a 1D-array, 2D, 2D-array or cube T# throws:describeGcnSurfacerefuses those instead of taking the thin layout, since addrlib groups their slices in fours too and the thin path would read them from wrong offsets. A newTextureTilingcase checks the refusal.MarcZX10 found that a volume with several mip levels is stored level by level here (each level with all of its slabs, as addrlib lays a thick 3D mip chain out), while
StorageTextureand the write evidence computedGuestLayerOffset(layer) + mip.tiledOffset, onelayerBytesstride for every level, which is right only for level 0. Those nine call sites now useSurfaceGeometry::GuestOffset(layer, mip), which already carries the level-major rule and is what the sampled upload used; for every other geometry the two expressions are equal. A storage image of a level-major surface still throws at creation (Texture.cpp, the rule #9431 added for layered surfaces), so the wrong stride was not reachable for a volume with mips, and the debt entry says so. A newTextureTilingcase lays out a 32x32x32 volume with four levels (8, 4, 2 and 1 slabs) and checks that every slice's slab offset is inside the surface, that the slabs do not overlap, that they fill the surface exactly, and that level 1's second slab sits one level-1 slab after its first.This moves the tile-mode commit of Get-fix/AnyPS5#4 (opened against
ps4/limbo-gpu) tomain, as Get-fix asked there. It was stacked on #9431, which is merged; the branch now has currentmainmerged in. The other commit of that PR drew quad lists through the rect-list tessellation stages;mainalready draws quad lists by generating a triangle-list index buffer with the first or last provoking vertex, so it is not carried over.Landing order: #9891 lays out thin-tiled 3D textures in the same function; the two fit together (thick 3D here, thin 3D there, a non-3D thick T# throws) and merge as two adjacent lines plus one debt entry. Suggested: #9891 first, then this PR rebased onto it.
Tested
Windows 11 Pro (10.0.26200), WinLibs GCC, NVIDIA GeForce RTX 2080 (driver 617.14), Release build with
BUILD_TESTING=ON, on this branch with currentmain(e30f38577c) merged in; #9431 is merged, so the branch's diff againstmainis this PR's own change:agc_driver_graphicspasses, with the new thickTextureTilingcases, including the 32x32x32 four-level volume; three runs. A 2D-array T# in tile mode 19 still throws, but the test no longer pins that, since the console accepts layered thick surfaces.agc_driver_gcn_detilepasses.tools/check_conventions.py --base main(e30f38577c) with this title and description: no findings.maine30f38577c(100% tests passed out of 25, the depth, display-buffer and graphics tests of this stack) and this branch with thatmainmerged in (100% tests passed out of 2:agc_driver_graphics,agc_driver_gcn_detile) withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1andVK_LOADER_DEBUG=warn,error,ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader'sadding layers "VK_LAYER_KHRONOS_validation"line (62 and 2 times) and neither reportswas not found but was requested by env var VK_INSTANCE_LAYERS;VUID-ids onmain: 0, on this branch: 0, new on this branch: 0.Linux was not run locally.
Refresh — 2026-11-03 (Codex, AI-assisted): Merged main
086c0686c8. Fixed the shallow-mip finding: nonzero mip levels with fewer than four slices use 1D thin tiles, one-slice guest strides, and SI pitch adjustment until the slice size is 256-byte aligned. The detiler selects the thin pipeline for these levels. Added full 32x32x32/6-level regression (151296 bytes; level-4 slice 1 at 150784), thin/thick mode selection and 8/16-bit slice-alignment checks. Ran the actual gcnThickTilingTests function in an isolated statically linked CPU harness with the current TextureTiling.cpp and TextureFormat.cpp: passes. Replacing only TextureTiling.cpp with the pre-fix version fails with 'PS4 full volume mip chain differs from addrlib'. Generated all four current TextureDetile shader variants with glslang. Syntax-only compilation passes for TextureDetiler.cpp and ShaderResources.cpp; conventions and whitespace checks pass. Full agc_driver_graphics, GPU detiler, paired Vulkan validation and title runs have not been rerun on this merged head; the harness is CPU layout evidence only.Checklist
main; no other open PR implements the same functions (currentmaine30f38577cmerged in; #9431 is merged; searched open boykopovar/AnyPS5 PRs forThick_1dThick, thick tile mode and tile mode 19 on 2026-10-22)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 (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-22T08:47:29Z.
Reviewed; the mode-19 volume layout itself checks out. The math I recomputed matches the addrlib
ADDR_THICKfamily: 8x8x4 micro tiles, the three element-size orders written into the equation bits (z-bits 4/3/2 depending on bytes per element), depth padded to 4 with level-major×4slab factors, slabs = ceil(depth/4), and the bijectivity test exercises all five element sizes — the 5120/2048/4096 extents recompute correctly for the tested depth values. Sources are cited properly and throws are kept for GB_TILE_MODE 15, 20-26 and block-compressed volumes. The conflict with today's main (both hunks inGraphics/src/State.cpp'decodeDepth) is measured, and the rebase also collides with main's rewrite of the "Depth planes in guest memory" debt entry — main moved on the exact prose this PR touches.Two gaps to close before this is trustworthy beyond the game run:
The debt entry's last sentence is now false on this same branch. "GcnDetile.cpp runs the GPU detiler over every mode that does not throw" — but the branch's
GcnDetile.cppmode list is exactly{kGcnThin1D, kGcnDisplay1D, kGcnDisplay2D, kGcnThin2D, kGcnDepth2D64, kGcnDepth2D256, kGcnDepth2D1K, kGcnDisplayPrt, kGcnThin2DPrt, kGcnDepthPrt256};kGcnThick1Dis missing, and neither that file norTextureDetilertests gained a case, while the detiler gate now admits the mode. Either add a mode-19 GPU detile/retile case (the honest fix — the mode exists in the fence-style gate, so the device path will run it) or scope the debt sentence to the modes it actually covers.A non-3D descriptor in tile mode 19 silently produces wrong offsets.
describeGcnSurfacediverts to the volume path only whendimension == k3D && IsGcnThick(...), andIsGcnMacroTiledreturns false forkGcnThick1D— so a 2D/2DArray/1DArray/cube T# in mode 19 falls through to the generic GCN layout, which sizes each layer as a thin slice (no×4slab factor, no 8x8x4 z-interleave inside a 4-slice chunk). On hardwareArray1DTiledThickstill groups slices into 4-slice chunks, so the layers of the first chunk would interleave in guest memory and the generic path would detile them from wrong offsets. No tested or known title hits it (only the 3D case from the title run is recorded), but "silent wrong answer for an untested descriptor shape" is worse than throwing: if the cited sources say those dimensions cannot carry mode 19, make it throw and record it; if they can, this needs the volume path extended to layered layouts. Right now it's neither.Also worth one more test row when convenient: the new
gcnThickTilingTestsonly pin a 2-byte format at the volume level — the 4/8/16-byte slab math is covered at the micro-tile level but not end-to-end extents.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T08:57:37Z.
Review: CHANGES_REQUESTED
The isolated feature commit adds focused thick-layout cases, and the block equations/depth slab offsets are clearly described. Current-main conventions and
git diff --checkpass. The PR is currentlyCONFLICTINGwithmain; its declared dependency #9431 is also conflicting.Because this changes the AGC driver, CONTRIBUTING requires paired focused tests on
mainand the change withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1, andANYPS5_REQUIRE_VULKAN=1, usingctest -Von the same machine/GPU. Please confirm the layer loaded, compare the logs for newVUID-errors, and record the GPU on the checklist. The reported Windows/NVIDIAagc_driver_graphics,agc_driver_gcn_detile, and Gang Beasts runs are useful, but no paired validation-layer output or VUID comparison is provided. Please coordinate/rebase after #9431 is resolved and rerun these checks on the current merge commit.Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-22T10:13:53Z.
Thanks. The conflict is #9431's (
Graphics/src/State.cpp); I will rebase once Get-fix has rebased #9431 and rerun the checks. Paired validation-layer run, now in the description:main(100% tests passed, main build7e2ba73e4) and this branch (100% tests passed) withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1andVK_LOADER_DEBUG=warn,error,ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader'sadding layers "VK_LAYER_KHRONOS_validation"line (78 and 2 times) and neither reportswas not found but was requested by env var VK_INSTANCE_LAYERS;VUID-ids onmain: 0, on this branch: 0, new on this branch: 0.On fogydes's two points, I will take both with the rebase: scope the debt sentence to the modes
GcnDetile.cppcovers (or add a mode-19 case to it), and make a non-3D descriptor in tile mode 19 throw instead of taking the thin layout, with a debt sentence that layered thick surfaces are not laid out.AI-assisted: yes (Claude Code)
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:31:32Z.
Review: CHANGES_REQUESTED
The updated description now includes the paired validation-layer report requested in the earlier review; I have noted the same-machine GPU/driver details and the explanation that the focused State.cpp decode test itself creates no Vulkan instance. The current-main diff check is clean. I found a separate address-layout defect in the new 3D volume path.
DescribeSurface uses the shared SurfaceGeometry layer addressing consumed by Texture.cpp and ShaderResources.cpp: every mip access is computed as GuestLayerOffset(layer) + mip.tiledOffset, and GuestLayerOffset uses one geometry.layerBytes stride for every mip. describeGcnVolume instead lays each mip out level-major across all of that mip's slabs (mip.tiledOffset advances by mip.tiledSize * slabs) but sets geometry.layerBytes to only geometry.mips[0].tiledSize. That shared stride is correct only for mip 0. For example, with depth 32 and blockDepth 4, mip 1 still has depth 16 and therefore four slabs; its second slab is addressed using mip 0's slab size rather than mip 1's. This can address the wrong region or overlap other levels. The existing volume test uses depth 8, so mip 1 has only one slab and does not exercise this case.
Please make the address layout consistent with the existing shared callers (for example, slab-major storage with each mip's offsets inside the slab, or update the geometry/callers to carry a mip-specific slab stride) and add a multi-mip volume regression with depth at least 32 that checks all live slice/mip offsets are in range and non-overlapping. I did not run local C++ tests because no build tree is configured and the root filesystem has no free space.
The PR also remains stacked on #9431 and conflicts with current main in AgcDriver CMake. Its Gang Beasts run is reported from the earlier Get-fix branch, not current main. Please rebase/coordinate after the dependency is ready and verify the title stop on current main with a log before treating the title-specific intake evidence as complete.
Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-22T13:21:57Z.
Rebased onto #9431's new head (
26d651d3e, onmain7e2ba73e4) without conflicts. MarcZX10's layout finding and fogydes's two points are in the commit now.The layout:
describeGcnVolumeis level-major on purpose, since addrlib stores a thick 3D mip chain level by level with each level's slabs together, and that is what the detiler reads. The inconsistent part was the shared callers: nine sites inStorageTextureand the write evidence computedGuestLayerOffset(layer) + mip.tiledOffsetwith level 0's slab stride for every level. They now useSurfaceGeometry::GuestOffset(layer, mip), which carries the level-major stride and was already what the sampled upload used; for every non-level-major geometry the two are identical, so the PS5 paths do not change. A storage image of a level-major surface also throws at creation (Texture.cpp, the rule #9431 added), so the stride was not reachable for a volume with mips, which the debt entry now records. The regression lays out a 32x32x32 volume with four levels (8, 4, 2 and 1 slabs) and checks that every slice's slab offset is inside the surface, that the slabs are disjoint and fill it exactly, and that level 1's second slab is one level-1 slab after its first.fogydes's points:
PS4 thick tile modes are only implemented for 3D textures) instead of taking the thin layout; aTextureTilingcase checks the refusal, and the debt entry says so;GcnDetile.cppnow says it runs the GPU detiler over the thin and depth modes, and that tile mode 19 is checked against the layout tests only, not on the GPU.agc_driver_graphicsandagc_driver_gcn_detilepass. Paired validation-layer run, now in the description:main(100% tests passed, main build7e2ba73e4) and this branch (100% tests passed out of 2) withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1andVK_LOADER_DEBUG=warn,error,ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader'sadding layers "VK_LAYER_KHRONOS_validation"line (78 and 2 times) and neither reportswas not found but was requested by env var VK_INSTANCE_LAYERS;VUID-ids onmain: 0, on this branch: 0, new on this branch: 0. The Gang Beasts run reported so far is from the Get-fix bring-up branch; a run of the title on this stack over currentmain, with its log, follows separately.AI-assisted: yes (Claude Code)
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T10:33:08Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The tile mode 19 layout, the
GuestOffset(layer, mip)call-site fix and the new tests build and pass on a merge with currentmain, but mip levels with fewer than four slices are laid out thick, while addrlib lays them out 1D thin.What I ran
356cb639efda2c267986b1e926744fa1f0999d8emain:beb5e23f8fd792c95b32a8b729ba73dfcf98772cmainwith--no-ff, with no conflicts (docs/dev/debt/libSceAgcDriver.mdauto-merged).BUILD_TESTING=ON.Results
maingit diff --checkcheck_conventions.py --base origin/mainAll conventions checks passed.agc_driver_graphics_tests,agc_driver_gcn_detile_testsagc_driver_graphics, merged treeagc_driver_gcn_detile, merged treemainagc_driver_graphics6.23 s)VUID-lines,main/ mergedwas not found but was requested by env var VK_INSTANCE_LAYERSInsert instance layer "VK_LAYER_KHRONOS_validation", once each; it comes fromagc_driver_gcn_detile, sinceagc_driver_graphicsruns on a mock Vulkan)Merged-tree ctest excerpt
Probe: DescribeSurface() of a 32x32x32 volume, 6 levels, format 20 (4 bytes), gcnPitch 32
Negative control
origin/mainand kept the PR's test file:agc_driver_graphics_testsno longer compiles (kGcnThick1Dis not a member ofTextureTileMode,tests/TextureTiling.cpp:201and:227). That only shows the tests depend on the new enum value, so I ran a second control.thick ? layer / blockDepth : layerchange inSurfaceGeometry::GuestOffset(Graphics/include/TextureTiling.hpp:74) and rebuilt:agc_driver_graphicsfails withAGC graphics: PS4 thick volume slab offset is misplaced. The new volume cases do catch a wrong per-level slab stride. I restored the file afterwards.Findings
Blocking
describeGcnVolumegives every level an 8x8x4 micro tile (TextureTiling.cpp:603),ceil(depth / 4)slabs (:596) and the thick element order. FormipLevel > 0, addrlib'sEgBasedLib::ComputeSurfaceInfoMicroTiledswitchesADDR_TM_1D_TILED_THICKtoADDR_TM_1D_TILED_THIN1when the level has fewer thanThickTileThickness(4) slices, and sets the thickness to 1. Such a level uses 8x8 thin micro tiles, one physical slice per depth slice. On SI the pitch also grows until a slice is a multiple of the 256-byte base alignment (SiLib::HwlGetSizeAdjustmentMicroTiled).guestBytesis 152576 here and 151296 in addrlib. Any volume with a level whose depth is 1 or 2 is hit. A full mip chain always ends in such levels, and so does a short chain on a shallow volume, such as a 16x16x4 volume with 2 levels.tests/TextureTiling.cpp:236-241) stops at depth 4, so it cannot catch this.level > 0 && levelDepth < 4as 1D thin. That means a per-level thickness:GuestOffsetand thethickflag passed to the detiler must use one-slice strides and the thin micro tile for that level, perhaps throughmip.gcnMicroTiledandMipTileMode. The level also needs the SI pitch adjustment. If that is too much for this PR,Requireagainst such levels so they throw, record the gap in the "PS4 (GCN) thick and layered surfaces" debt entry, and add a test with a full chain (for example 32x32x32 with 6 levels, or 16x16x4 with 2 levels) that pins whichever behaviour is chosen.Non-blocking
StorageTextureand write-evidence sites andShaderResources.cpp:1177now useGuestOffset(layer, mip), and the second negative control shows the new test fails without it. The paired validation run only exercisesagc_driver_gcn_detile, which has no tile mode 19 case, as the debt entry says. So the GPU detiler still has not run tile mode 19 on any device. A mode-19 case inGcnDetile.cppwould let the shader'sslice << 24z input be checked against the equation.Not verified
main.To get this to a good state
TextureTilingcase with a mip chain that reaches depth 1 or 2, so the chosen behaviour is pinned.agc_driver_graphics,agc_driver_gcn_detileand the paired validation run on the updated head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T10:59:55Z.
Review: APPROVED
Re-reviewed exact head
356cb639efda2c267986b1e926744fa1f0999d8eagainst currentmaind2b15d8802. The follow-up addresses the earlier level-major addressing defect: all guest-memory texture consumers now useGuestOffset(layer, mip), and the depth-32/four-mip test checks every live slab is in range, non-overlapping, and uses the correct level-1 slab stride. Removing the unsupported 2D-array throwing assertion is also appropriate; the code still documents that layout as unimplemented.\n\nThe merge preview is clean; since the tested basef7e84c4conly the debt document changed among this PR’s paths. The author reportsagc_driver_graphicsandagc_driver_gcn_detilepassing three runs each, plus paired Khronos-validation runs with the layer loaded and zero VUIDs. Current-head conventions and whitespace checks pass; hosted Windows passes, while product Linux and specialized jobs are skipped. I did not run local GPU tests. The Gang Beasts title result remains historical and was not rerun on this head; the review covers the code/tests and paired validation report, not a fresh title result.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T14:08:43Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The current head still allocates each sub-four-slice mip as a full four-slice thick slab, which disagrees with the reported addrlib layout and leaves the PR's central layout claim incomplete.
What I ran
297118f83bccf69aeef9fbe54a51a15d4feaef81against base7d9a2fc71384722a0bf8101a60602c7db1fbe972; PR base ismain. The precheck's merge preview was clean and its final snapshot confirmed the head and base did not change.The diff check and conventions passed. The precheck's ABI audit and test-quality helper could not run because those helper scripts are absent from the isolated PR checkout; these are tooling-availability failures, not findings against the PR. I did not build or run the C++ tests.
Results
The author's comment reports paired GPU runs and a harness for this head; those are author-reported results, not runs I performed. The reported
agc_driver_graphicsandagc_driver_gcn_detilesuites passed, but the author also reports that the harness still getsguestBytes=152576and per-level allocations of 1024 bytes at depths 2 and 1.Findings
Blocking
describeGcnVolume()computesslabs = (levelDepth + 3) / 4, but sets every mip'stiledSizetorowElements * rows * 4 * bytes. As a result, a mip with depth 2 or 1 still reserves a full four-slice slab. The author-reported harness says this remains true on the current head and differs from addrlib's thin layout for those levels; the earlier review on this PR also documents the same mismatch. This means full mip chains can have incorrect offsets and guest size even though the current deep-volume test passes, since that test expects four-slice padding. Please either implement the correct thin layout for sub-four-slice mip levels, or reject those mip chains until supported; add a regression case that reaches depth 2 and 1 (for example a 32×32×32 volume with six mip levels) and verifies the expected offsets and total size.Sources
describeGcnVolume().Not verified
I did not run a local C++ build, the C++ test suites, Linux tests, validation-layer checks, or console behavior. The reported GPU runs are functional-only and state that no Vulkan validation layer was available.
To get this to a good state
Please implement or explicitly reject the sub-four-slice mip case and add a regression test for the depth-2/depth-1 levels. I will rerun the same relevant checks and review the new exact head.
Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T16:53:24Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
This pull request does not merge cleanly into
main(1e658521a0): head8f4a2856a2conflicts indocs/dev/debt/libSceAgcDriver.mdPlease rebase it onto current
main. I will review the change once it merges cleanly.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T21:19:55Z.
Review: APPROVED
Re-checked — approved
Commit
9fde6efab2resolves my one blocking finding: nonzero tile-mode-19 mip levels with fewer than four slices are now laid out as 1D thin, one slice per stride, with SI's 256-byte slice adjustment. A full-chain test pins this, and that test fails without the fix.What changed since my last review
I last reviewed
356cb639ef. Since then:main:297118f83bshortens the debt entry,8f4a2856a2and72d72c720dmergemain, andcc596afba5resolves a debt-file conflict.9fde6efab2, the fix:describeGcnVolumesetsthin = level != 0 && levelDepth < 4. A thin level gets thickness 1, one slab per slice, a pitch raised in steps of 8 until the slice is a multiple of 256 bytes, andmip.gcnMicroTiled = thin.SurfaceGeometry::GuestOffsetstrides by single slices for such a level (Graphics/include/TextureTiling.hpp:74).MipTileModemaps the level tokGcnThin1D(Graphics/include/TextureTiling.hpp:97).TextureDetiler::Dispatchselects the thin pipeline for the level (Graphics/src/TextureDetiler.cpp:237).What I ran
Head
9fde6efab2b0af27a335af369a1b36b128169420,main086c0686c8adff3ee648fdbe34e0b0b647e1d511, merged tree9ed5d6e4cbfbb1215dbe9e64750343f79ed8b2de. Machine: Debian 13 VM, 2× Intel Xeon Gold 6136, GCC 14.2.0, Vulkan on lavapipe (Mesa 26.1.6, LLVM 19), no GPU.git diff --checkcheck_conventions.py[debt-length]ondocs/dev/debt/libSceAgcDriver.md:118(1212 characters)agc_driver_graphics-j8, 34.2 s alone)agc_driver_gcn_detilemainagc_driver_image_gather_volumeand come frommain(see below)The new validation IDs come from
main. build.json lists 4VkSamplerCreateInfoIDs inagc_driver_image_gather_volume, a test the baseline did not run. The test uses no GCN tile mode. I ran it with the layer in two states:mainVUIDs, identical in both runs
Negative control
I reverted only the layout part of the fix:
Graphics/src/TextureTiling.cppas it was atcc596afba5, keeping the new header, detiler and tests.agc_driver_graphicsthen fails with:With the merged file restored it passes again. This confirms the author's harness result from the Refresh note. The test also checks
GuestOffset(1, mips[4]) == 150784and theMipTileModeselection, so it covers the header changes too.I recomputed the pinned numbers by hand for a 32-bit 32³ chain:
151296 is the total I gave in my last review. The 8- and 16-bit cases need pitches of 32 and 16 elements to reach a 256-byte slice, both 32 bytes. That matches the test.
Previous findings
level > 0 && levelDepth < 4are 1D thin with single-slice strides and the SI pitch adjustment. The uploads and write-backs that go throughDispatchchoose the thin pipeline for them.DispatchImagealways asks for a non-thick pipeline, so it is unaffected. The new six-level test pins the layout, and it fails without the fix.ComputeSurfaceInfoMicroTiledandHwlGetSizeAdjustmentMicroTiled.GcnDetile.cppstill has no tile-mode-19 case, and the debt entry says so ("mode 19 has layout tests only"). Nothing on a device has run the thick shader path or the new thin-level pipeline choice.New findings
Blocking
None.
Non-blocking
check_conventions.pywarns that the entry has 1212 characters; the limit is 1000.297118f83bhad brought it under the limit, and9fde6efab2adds the degrade sentence. CONTRIBUTING asks entries to state the gap first. Suggested fix: cut the description of implemented behaviour, for example the 8x8x4 order and the degrade mechanics, down to the source names. Keep what is unchecked and what throws.agc_driver_graphics, the GPU detiler and the paired validation run were not rerun on this head. TheGPUs testedline still refers to the earlier RTX 2080 runs. On lavapipe I found nothing new from this PR, but CONTRIBUTING asks the author to run the paired check for AGC driver changes. Please rerun it on the RTX 2080 and update the Tested section.agc_driver_graphicsruns over 30 s here (34.2 s alone). The PR adds only small CPU cases, and TechLevelZero's NVIDIA runs already showed this test at about 30 s, so I don't count this against the PR. I did not measuremainalone on this machine.Not verified