feat(agc): emulate mesh-fallback barycentrics through tessellation #9387
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9387"
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 Alexius0815 on 2026-10-21T20:09:01Z.
What
Builds on #9356. On a device without
fragmentShaderBarycentric, a mesh-path draw that runs through the compute fallback and whose pixel shader reads barycentrics had no route. The barycentric tessellation emulation from #7308 was limited to the vertex path. This PR feeds the mesh readback vertex shader from #9356 intoBuildBarycentricTessellationShaders. The draw then runs as compute pass → readback VS → TCS → TES → fragment, drawn as a 3-control-point patch list.Execution/.../Draw.cpp: a compute-fallback mesh program takes the emulation branch. It requires triangle output, tessellation support and no clip, cull or layer exports, and passes the provoking vertex mode as in #7426.Graphics/src/Draw.cpp:MeshComputeStagesaccepts the two emulation stages after the mesh stage.Pipeline.cpp: patch-list topology andpatchControlPoints = 3for the emulation patches on the mesh path. Like the vertex path's patches, they need noVK_EXT_provoking_vertexfor the last provoking vertex, because the generated evaluation stage writes the provoking vertex's flat values itself (#7426).ShaderValidation.cpp: validates the five-stage mesh layout. The failure text stays "require a triangle list".Recompiler.cpp: a pixel shader whose request runs the mesh program as compute is no longer compiled in mesh mode. Its flat inputs then stay per vertex, as the tessellation evaluation stage in front of it provides them (from @root-over, co-author).MeshReadbackVertexShader.cpp: copiesparameterExportsso the control stage sees the mesh outputs.core/shader/recompiler/CMakeLists.txt:MeshRecordClipDistances,MeshRecordCullDistancesandMeshRecordLayerare recorded inshaderCacheReviewedNames. They are inline decoders ofRecompileResult::meshRecordLayout, which is part of the cached result, andDraw.cpponly uses them to refuse draws. They do not reach aRecompileRequest.tests/Mesh.cpp:agc_driver_meshdraws through the compute fallback withfragmentShaderBarycentricdisabled, non-indexed and indexed, and compares front/back culling with the ordinary readback draw. A flat-input case with a different value per vertex checks the provoking vertex's value on every triangle, with the first and with the last provoking vertex. The emulated draws give the pixel request the meshGraphicsCompileContext, asDrawCapturedoes.docs/dev/debt/libSceAgcDriver.md:meshAsCompute.Overlap: #8083 (now merged) and #8339 each change a condition line in
Execution/.../Draw.cpp, and #8083 also changes the triangle-list check inShaderValidation.cpp. This branch sits on #9356's current headf49a25ae9, which itself conflicts with main again. Once #9356 is rebased, I will rebase this commit onto it and keep the triangle-strip condition and its message next to the mesh stage count.Tested
Apple M4 (10-core GPU), macOS 27.2, MoltenVK (no mesh shaders, no fragment barycentrics, no
VK_EXT_provoking_vertex), x86_64 build under Rosetta 2. Currentmaindoes not build itslibcon macOS, so the runtime tests ran on the community macOS stack with #9356 and the same changes applied:agc_driver_graphics,agc_driver_mesh(including the flat-input cases with the first and the last provoking vertex) andagc_driver_pixel_barycentric_emulationpass. The stack lacked #7426, so its three code commits were cherry-picked there.agc_driver_meshandagc_driver_pixel_barycentric_emulation, pass with and withoutVK_LAYER_KHRONOS_validation1.4.357.0, with no validation errors.agc_driver_graphicsis CPU-side. MoltenVK has noVK_EXT_provoking_vertex.Recompiler.cppline: the interface mismatch @root-over's titles hit;Pipeline.cppexemption: theVK_EXT_provoking_vertexrequirement;tests/Graphics.cppcompile.ShaderCacheVersion.cmake) passes. Without the three reviewed names it reports the six uses that @wachi35676 and @MarcZX10 hit.tools/check_conventions.py --base origin/mainpasses.Independent runs on the previous head (thanks):
APS5_NO_MESH_SHADER=1.agc_driver_meshpasses there, and the negative control fails without the change.VUID-.Recompiler.cppchange that is now part of this PR. ccleste reaches its title screen.75fb6a509, 17 more catalog titles get past main's missing-mesh-shader abort and are still running at 40 s. Four still stop: FMASK in two titles, and Ruffle Flash and Dusklight on this PR's "needs a vertex shader before it" condition (under investigation).Not tested on titles on macOS (the macOS stack needs further work for ccleste).
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)Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-21T22:59:38Z.
Windows run with the compute fallback forced on NVIDIA and AMD (
APS5_NO_MESH_SHADER=1, from #9356), and two problems. Head1e72d36c(which includes #9356's6861beb6) merged onto maina6dcea927(clean merge).Host: Windows 11 (10.0.26300), Ryzen 5 9600X, WinLibs GCC 15.2.0, Release. GPUs: NVIDIA RTX 5070 Ti (617.42) and AMD Radeon RDNA2 iGPU
1002:13c0(proprietary 32.0.21042.62,ANYPS5_GPU=AMD).ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.ShaderCacheVersion.cmake) stops thelibSceAgcDriverbuild: It fails the same way forMeshRecordCullDistancesandMeshRecordLayer, in bothExecution/.../Draw.cppandGraphics/src/Draw.cpp. These uses come from this PR's commit. Main + #9356 alone builds. The check already exists at this branch's base1698d1ea6, so the head should fail the same way there. Adding the three names toshaderCacheReviewedNamesincore/shader/recompiler/CMakeLists.txt(next to #9356'sMeshRecordBytes) lets it build. Everything below uses that local three-line addition.agc_driver_graphicsfails on both GPUs:unexpected failure: AGC graphics: emulated barycentrics through tessellation require triangle output.ValidateShaderschanged the message from "… require a triangle list" to "… require triangle output".tests/Graphics.cpp:7899still doesexpectFailure(..., "require a triangle list"). On main + #9356 this test passes on both GPUs.With the build fix:
APS5_NO_MESH_SHADER=1,agc_driver_meshpasses on both GPUs and printsMesh fallback barycentric pixels and front/back culling passed. Without the variable, both devices have mesh shaders and the new case is not entered.Graphics/src/{Draw,Pipeline,ShaderValidation}.cppandMeshReadbackVertexShader.cppand kept the test.agc_driver_meshthen fails withBarycentric geometry SPIR-V: fragment parameter 0 is not exported by the vertex shader.agc_driver_mesh*,pixel_barycentric_emulation,layered_volume*,agc_mesh_output_budget,agc_fragment_barycentric,request_serializer,agc_shader_memory,agc_driver_graphics*), with and withoutAPS5_NO_MESH_SHADER=1: everything exceptagc_driver_graphics(item 2) passes on both GPUs. The fiveagc_driver_mesh_*execution tests skip underAPS5_NO_MESH_SHADER=1, as they also do on main + #9356.agc_driver_tessellationfails on this AMD driver on main.tools/check_conventions.py --base a6dcea927passes.AI-assisted: yes (Claude Code); results above were run on this machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T06:19:54Z.
Review: CHANGES_REQUESTED
Changes requested I reproduced the build blocker reported in the PR discussion. On this Linux host,
cmake --build build --target agc_driver_mesh_tests --parallel 4stops inShaderCacheVersion.cmake: the newMeshRecordClipDistances,MeshRecordCullDistances, andMeshRecordLayeruses in bothExecution/.../Draw.cppandGraphics/src/Draw.cpphave not been reviewed for the shader disk cache key. Please establish whether these values can affect recompile output outsideRecompileRequest; then either key the input or record the review inshaderCacheReviewedNamesincore/shader/recompiler/CMakeLists.txt, as the guard directs, and rerun the focused build. There is also a regression in the existing graphics validation test reported by the independent Windows GPU run:ShaderValidation.cppchanges the failure text from “require a triangle list” to “require triangle output”, buttests/Graphics.cppstill expects the old text (reported at line 7899).agc_driver_graphicsfails on both the NVIDIA and AMD configurations in that report. Please update the assertion to the new contract, or preserve the old stable text, then rerun that test on a GPU host. ## Intake, base, and coordination This branch depends on #9356 as stated. Its current head is 521 commits behindmain(d6732b51a64f4322799af89b876b224d3aed6efc), so rebase and rerun checks before another review. The PR also notes one-line overlaps with open #8083 and #8339; coordinate merge order with those authors and preserve all three changes. I am refreshing the broader overlap scan separately because several graphics files are shared with active PRs. ## Checks observed - Localpython3 tools/check_conventions.py --base upstream/main: passed. - Localgit diff --check upstream/main...refs/review/9387: passed. - Local Linuxagc_driver_mesh_testsbuild: failed at the shader-cache review gate with the six helper-use diagnostics above. - No local GPU runtime test: this host has no suitable GPU/driver. The PR's Windows/MoltenVK report and independent Windows NVIDIA/AMD reports provide runtime evidence, but the latter identify the two regressions above. - Existing hosted eligibility, conventions, intake, labels, and report checks passed; product build jobs were skipped.I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.
Imported from boykopovar/AnyPS5. Originally posted by root-over on 2026-10-22T07:41:00Z.
@Alexius0815 a first Linux run, and the first with titles. With this head, all five catalog titles stop on the same interface mismatch. A one-line change fixes it here.
Linux (Ubuntu, kernel 7.0), Ryzen 5 5625U iGPU: Vega/GCN 5, RADV RENOIR, Mesa 26.0.8. Vulkan reports no
VK_EXT_mesh_shaderand nofragmentShaderBarycentric, so the compute fallback is the only path. GCC 15.2.0, Release.Compared:
1e72d36c16861beb61ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. RADV and lavapipe were each selected withVK_DRIVER_FILES.Build. It stops at the shader cache key check for
MeshRecordClipDistances,MeshRecordCullDistancesandMeshRecordLayer, as @wachi35676 reported on Windows. Everything below adds those three names toshaderCacheReviewedNames.Tests.
ctest -R '^agc_driver_graphics$|mesh|layered_volume|barycentric|prepared_graphics|shader_disk_cache|request_serializer', 21 tests, on RADV and on lavapipe:agc_driver_graphics. On RADV that includesagc_driver_meshwith the new case (Mesh fallback barycentric pixels and front/back culling passed). On lavapipeagc_driver_meshskips, as on #9356.agc_driver_graphicsfails on both drivers on the message change @wachi35676 found:unexpected failure: AGC graphics: emulated barycentrics through tessellation require triangle output.VUID-on either driver, and the layer loaded on both.Titles. These five catalog titles draw mesh-path pixel shaders that read barycentrics: ccleste (PPSA59322), PSXS5 (PPSA97510), SwanStationPS5 (PPSA98510), PSFlyCast (PPSA99247) and Mario 64 (PPSA99310). Each ran for 40 s on RADV.
6861beb61a pixel shader on the mesh path reads barycentrics, and this device has neither VK_KHR_fragment_shader_barycentric nor mesh shaders1e72d36c1graphics interfaces disagree at location 1 (stage 3 output vertex:f32x4, stage 4 input primitive:f32x4; ...)(ccleste at location 8)Cause. The pixel shader is still compiled in mesh mode:
Recompiler.cppsetsmeshBarycentricPixelfor every fragment shader on the mesh path. Its flat inputs are then per-primitive, which the tessellation evaluation stage in front of it can't feed. Theagc_driver_meshcase probably passes because its pixel shader has no flat inputs. This is the follow-up @billythemenace2 mentions in #9356's thread ("still compiles its pixel shader in mesh mode"). On a device without mesh shaders,VulkanDevicealready setstarget.meshAsComputefor every stage, so this is enough here:With it, the 21-test set gives the same results as above on both drivers, again with no
VUID-.A device that has mesh shaders but runs a layered draw as compute (
MeshDrawLayers>maxMeshOutputLayers) also needs the fragment request to carrymeshAsCompute.DrawCapture.cppsets it only for the mesh stage, so I extended that condition toprogram.binary.stage == Stage::Mesh || (program.binary.stage == Stage::Fragment && graphics.stages.mesh)in my own branch. I can't test that case: this GPU has no mesh shaders.I had the same route through a geometry stage instead of tessellation (
eff3479e9, mentioned in #6528 and #9356). Since this PR covers the same draws and also works without geometry shaders, I'm not opening mine.Imported from boykopovar/AnyPS5. Originally posted by Alexius0815 on 2026-10-22T14:10:52Z.
Thanks @wachi35676, @root-over and @MarcZX10, both build issues were mine. My compile check built the touched objects directly and so skipped the shader-cache key step. Updated head
3bd6f51ff:Rebase. The branch is now on main
8b3e39832. #9356 no longer applies to main by itself since930b9640dsplitGraphics::Drawinto prepare and record. In this branch its commit carries the obvious resolution: theMeshComputeStagescall moves to the start of the newDraw, andKnownValidationFailureandDrawWithRecipemerge unchanged. @billythemenace2, FYI. I'll rebase onto #9356 again once you update it.Shader cache key.
MeshRecordClipDistances,MeshRecordCullDistancesandMeshRecordLayerare the inline decoders ofRecompileResult::meshRecordLayout(Recompiler.hpp). The layout is part of the cached result (#9356's disk cache format).Draw.cpponly reads them to refuse a draw, and nothing they return goes into aRecompileRequest. So I recorded them inshaderCacheReviewedNames. The key check passes now. With the three names removed, it reports exactly the six uses from your logs.agc_driver_graphics. I kept the old failure text "require a triangle list". It also describes the mesh path, whose readback draw is a triangle list, sotests/Graphics.cppstays as it is.Flat inputs. @root-over, thanks for the title runs and the diagnosis. Your
Recompiler.cppline is in the commit, with you as co-author. You're right that theagc_driver_meshfixture passes without it. Its pixel shader has a single parameter, and making that one flat turns the emulation off, so this case is covered by your title runs rather than by the test. I left out theDrawCapture.cpppart for layered draws on devices with mesh shaders: neither of us can run it, and it changes #9356's layered route. I recorded the gap in the debt entry instead. Happy to add it if you or @billythemenace2 can test it.Re-run on the M4 (MoltenVK, no mesh shaders, no fragment barycentrics, community macOS stack with the same changes):
agc_driver_graphics,agc_driver_meshandagc_driver_pixel_barycentric_emulationpass, also with the Khronos validation layer and no validation errors.check_conventions.py --base origin/mainpasses.Intake. I updated the description. Unblocks now lists the five titles from @root-over's run, and Tested credits both independent runs. On merge order with #8083 and #8339: each overlaps by one condition line, and I'll rebase onto whichever lands first.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T02:30:19Z.
Review: CHANGES_REQUESTED
Reviewed
75fb6a509on top of #9356. The routing, the five-stage validation and theshaderCacheReviewedNamesadditions (inline decoders ofmeshRecordLayout, which is part of the cached result) look right. One gap before this can go in:Recompiler.cpp:608makes the mesh-fallback pixel shader keep flat inputs per vertex, andDraw.cpppasses the provoking vertex mode through, butagc_driver_meshonly exercisesPerspectiveCenterwithinterpolatorSettings[0] = 0and provoking vertex first. Please add a case with a flat pixel input (distinct values per vertex, checked on the pixel) and one withPROVOKING_VTX_LAST, each of which must fail without this change. Without one, the line that unblocks the catalog titles is unpinned.f49a25ae9, and conflicts withmain. Once #9356 lands, rebase this commit ontomainand keep the strip condition and message from #8083 next to the mesh stage count.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T14:29:50Z.
Review: CHANGES_REQUESTED
Re-reviewed
73641399d. The two cases from my last comment are in:agc_driver_meshnow draws a flat pixel input with distinct per-vertex values and checks blue/alpha on every triangle with both the first and the last provoking vertex, which pinsRecompiler.cpp:608and the provoking-vertex handling. TheMeshBarycentricPatcheschange inPipeline.cppreads correctly.What is left is the stack:
main. This PR conflicts withmainin the serializer version (RequestSerializer.cpp,RequestSerializerTests.cpp,ShaderMemory.cpp),CacheKey.hpp,Recompiler.hpp/.cpp,ShaderDiskCache.hpp, the SPIR-V emitter state anddocs/dev/debt/libSceAgcDriver.md. Those are format-version and field-order conflicts, so the rebase needs judgement and should be done by the stack's authors once #9356 is settled.main, take the next free serializer/cache versions, and keep the strip condition and message from #8083 next to the mesh stage count. Nothing else is pending from the review side.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T04:05:23Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The change builds on its own base and does what it says: the new
agc_driver_meshcases pass with the compute fallback forced, fail without the change, and log no validation errors. It cannot go in yet because it conflicts with currentmainin 18 files.What I ran
73641399d35dafa6576e1c974bff65e207f1bd20(on #9356'sf49a25ae9f036a1d27e6418faeac7c812be5773e)main:b433c40f2f46aa2e59e19806010a839ac8572d64f57e4ef7209ebd3b482b5b2bd2fd34f9884cfd80, 6050 commits behind thatmainResults
mainb433c40f2fgit diff --checktools/check_conventions.py --base origin/mainAll conventions checks passed.APS5_NO_MESH_SHADER=1agc_driver_meshprints the new fallback lineVUID-lines (both runs)was not found but was requested by env var VK_INSTANCE_LAYERSInsert instance layer "VK_LAYER_KHRONOS_validation"for each Vulkan testConflicting files against main
b433c40f2fctest, APS5_NO_MESH_SHADER=1 (PR head)
Negative control
The merge conflicts, so I ran both controls on the PR head. "Reverted" means restored from the parent commit, #9356's
f49a25ae9. In both I kepttests/Mesh.cppand setAPS5_NO_MESH_SHADER=1.Execution/.../Draw.cpp,Graphics/src/Draw.cpp,Pipeline.cpp,ShaderValidation.cpp,Recompiler.cpp,MeshReadbackVertexShader.cpp).agc_driver_meshfails:Recompiler.cpp.agc_driver_meshfails on the interface mismatch that @root-over's titles hit:These match the author's controls and @wachi35676's. Run 2 confirms independently that the new flat-input case pins
Recompiler.cpp:609. I did not repeat thePipeline.cppprovoking-vertex control: this device hasVK_EXT_provoking_vertex, so that control cannot fail here.Findings
Blocking
main. The branch is 6050 commits behindb433c40f2f, and the merge conflicts in the 18 files listed above. The conflicts are in the request serializer, the cache key and the SPIR-V emitter state, so the rebase needs a new format version. The checklist line "Based on currentmain" is ticked, but that is not the case today. @adriadam10 and @wachi35676 already reported this. My result above is the current list against today'smain. As already discussed in the thread: once #9356 lands, rebase, take the next free serializer and cache versions, keep #8083's strip condition, and clearfragmentBarycentricBuiltinsin the fixture as @Betr0x found.Non-blocking
Execution/.../Draw.cpp:894, every emulated mesh-fallback draw builds a freshBuildMeshReadbackVertexShaderresult. That includes a SPIR-V Tools validate and optimize pass (MeshReadbackVertexShader.cpp:163). The draw only uses it for itsparameterExports, as input toBuildBarycentricTessellationShaders. Meanwhile,Graphics/src/Draw.cpp:902-912already caches a readback per variant id, and that cached one is what the pipeline binds. The vertex path already rebuilds the two patch stages per draw, so this adds a third SPIR-V Tools pass on the mesh path only. Passing*programResults[0]with itsparameterExports, or reusing the cached readback, would avoid it. I did not measure the cost.Execution/.../Draw.cpp:880now also accepts a compute-fallback mesh program, but the message still says the pixel shader "needs a vertex shader before it". Ruffle Flash and Dusklight stop on this message in @root-over's run, and the text no longer says which condition failed. Something like "needs exactly one vertex or compute-fallback mesh program before it" would make those logs actionable.Not verified
Execution/.../Draw.cpp:864-901runs on no test. The fixture builds the patches itself, as the author notes. My negative control 1 reverts that file only together with the others, so a mistake in the pass-through or in the refusal conditions would not show here.mainside of the validation comparison:mainhas no mesh-fallback emulation path to compare against. The PR head logged noVUID-lines at all, so it adds none on this device.To get this to a good state
mainand resolve the 18 conflicts. Bump the request serializer and cache versions pastmain's, keep the triangle-strip condition from #8083, and cleartarget.fragmentBarycentricBuiltinsintests/Mesh.cpp.agc_driver_meshwithAPS5_NO_MESH_SHADER=1, together withagc_driver_graphicsandagc_driver_pixel_barycentric_emulation, on the rebased head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T08:10:42Z.
Review: CHANGES_REQUESTED
Rechecked current head
73641399d35dafa6576e1c974bff65e207f1bd20and the follow-up reports.Addressed since my earlier review
shaderCacheReviewedNamesnow includes the threeMeshRecord*fields, so the original cache-review gate finding is addressed.tests/Graphics.cppexpects the updated triangle-output diagnostic, fixing the assertion mismatch I reported.Changes requested
The mesh test fixture still fails on the reported M4 integration tree.
DrawMeshintests/Mesh.cppclearsfragmentShaderBarycentricEnabledfor the emulation case, but leavesfragmentBarycentricBuiltinsset. The currentmaindevice target can carry that second flag, so the test still selects a native-barycentric path instead of the fallback. The M4 report saysagc_driver_meshfails for this fixture, and the author agreed to clear both flags. Please make that fixture change on the next integration head and rerunagc_driver_meshwith the validation layer, confirming the layer loads and the test passes.This branch is correctly stacked on open #9356 (
Depends on: #9356). The current head is still the child of #9356 headf49a25ae9...; please retain that stack, then after #9356 lands rebase onto current main, allocate the next serializer/cache versions, and rerun the focused build and tests on the resulting tree. The rebase should also include the promised fixture correction.I did not run a local GPU build or title test in this workspace. I am not approving while the reported
agc_driver_meshregression remains.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-29T17:14:23Z.
Review: CHANGES_REQUESTED
Re-checked
73641399dagainst the last review.agc_driver_mesh(distinct per-vertex values, first and last provoking vertex, every triangle) and pinRecompiler.cpp:608. TheMeshBarycentricPatcheschange inPipeline.cppand theshaderCacheReviewedNamesadditions look right.mainand has an unresolved change request, and this branch conflicts withmainin 18 files (serializer/cache versions, field order, SPIR-V emitter state,docs/dev/debt/libSceAgcDriver.md). We can't rebase this commit until #9356 is settled, because the version and field-order choices depend on how it lands.main, rebase onto it, take the next free serializer/cache versions, keep the strip condition and message from #8083 next to the mesh stage count, and cleartarget.fragmentBarycentricBuiltinsintests/Mesh.cppas you proposed.Nothing else is pending from the review side.
Imported from boykopovar/AnyPS5. Originally posted by kurexw on 2026-11-16T23:45:06Z.
Review: COMMENTED
I tried to test this on an Apple M4 (macOS 27.2, MoltenVK 1.4.2, x86-64 build under Rosetta 2). MoltenVK there reports
fragmentShaderBarycentricand tessellation but no mesh shaders, which is the case this PR targets. I couldn't get a result, for two reasons:main: a trial merge ontomainatc40f058298conflicts in 25 files, and I didn't want to resolve conflicts in your code and then report on my resolution.f57e4ef720, 2026-10-23): that tree predates the macOS port oflibcandlibkernel.ninja -k 0fails in 53 objects, for example'link.h' file not found(GuestAllocations.cpp, DynamicLoader.cpp, Rtld.cpp),'linux/if_link.h' file not found,'sys/vfs.h' file not found, and the Linuxmcontext_tregister names inException.cpp. So no AGC test links on macOS at that base. Not testable on the M4 at its base.Files that conflict with main at
c40f058298core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Draw.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Mesh.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeDraw.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/ControlFlow/src/RequestSerializer.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppcore/shader/recompiler/tests/RequestSerializerTests.cppdocs/dev/ENVIRONMENT.mdOnce it's rebased onto a current
main, I can run the mesh and barycentric tests (agc_driver_mesh*,agc_driver_mesh_barycentric_emulation,agc_driver_pixel_barycentric_emulation,agc_driver_layered_volume*) on the M4 with the AGENTS.md validation setup, comparing againstmain. One more note: on this MoltenVK, the driver-level mesh execution tests skip as soon asVK_EXT_mesh_shaderis missing. So unless they are gated on the fallback, they wouldn't exercise this path either.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.