feat(agc): draw triangle strips through the barycentric tessellation stages #8083
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8083"
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 DavidSamir on 2026-10-19T20:42:03Z.
What
On a device with tessellation but no geometry shaders and no
VK_KHR_fragment_shader_barycentric(MoltenVK), #7308's barycentric emulation draws each triangle as a three-point patch, and only accepts a triangle list. A pixel shader that reads barycentrics in a triangle-strip draw stops witha pixel shader that reads barycentrics without VK_KHR_fragment_shader_barycentric or geometry shaders needs a triangle list without primitive restart. Régie5 (PPSA99520) stops there on an Apple M2: its draw is a non-indexed 4-vertex strip.A strip without primitive restart is now expanded on the CPU into one patch per triangle, the way quad lists are already expanded into triangles:
refactor(agc): write expanded quad-list indices through one index writer. The quad-list expansion inprepareDrawInputswrites its indices through one loop for indexed and auto draws, and the draw records the expanded count it stored instead of recomputingindexCount / 4 * 6. No change in the indices written.feat(agc): draw triangle strips through the barycentric tessellation stages. When the draw's stages are the barycentric patches and the topology is a strip, the same writer emits three indices per triangle in Vulkan's strip order: (i, i+1, i+2), and for odd triangles (i, i+2, i+1), or (i+1, i, i+2) with the last provoking vertex. That is the order a geometry stage receives a strip in, so the weights and the per-vertex values (v_interp_movP0/P10/P20) are the ones the geometry route gives. Indexed strips read the guest indices; indirect strips throw. Such draws are not recorded as recipes, as quad lists are not. The checks inDraw.cpp,Pipeline.cppandShaderValidation.cppaccept a strip without restart for the patches. Fans and primitive restart still throw.test(agc):agc_driver_pixel_barycentric_emulationdraws a 4-vertex strip (a square split on its diagonal) through each available route and checks I/J of every covered pixel of both triangles against that order, and the per-vertex values.test(agc): the barycentric patch validation test inGraphics.cppnow expects a strip to validate and a fan or point list to be refused with the new message.docs(debt): alibSceAgcDriverentry for the strip expansion and its unmeasured console order; the shader entry now names fans and restart only.Tested
Apple M2, macOS 26, MoltenVK 1.4.x (Vulkan SDK 1.4.363; no
geometryShader, noVK_KHR_fragment_shader_barycentric, noVK_EXT_provoking_vertex), x86-64 build under Rosetta 2, Release, onmainwith @mugurc's macOS series (ci/macos-series-2) and #7937 so that the libraries build on macOS.agc_driver_pixel_barycentric_emulation, run withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(the loader reports loadinglibVkLayer_khronos_validation.dylib; nowas not found but was requestedline):mainemulated barycentrics through tessellation require a triangle listVUID-linesagc_driver_graphics_tests, with the same variables: passes, 0VUID-lines (before the validation-test commit it failed atexpected graphics rejection: require a triangle list, the strip it now accepts).The geometry route of the same test was skipped on this device (no
geometryShader); on a device with it, the strip case checks that route against the same order.Régie5 (PPSA99520, catalog 0.7.0), relinked with
--macos --to-rosetta: onmainit stops at the strip check above after 7 s. With this PR it passes it and its one strip draw (4 vertices, non-indexed, 1 instance) is drawn, after which MoltenVK loses the device (Discarded (victim of GPU error/recovery), thenvkQueueSubmit/vkWaitForFencesresult -4). That fault is not in the strip expansion: drawing only the strip's first triangle, and drawing it as a plain 3-vertex patch list with no index buffer at all (local experiments), fault the same way, while skipping the draw lets the title run 30 s. The same draw's shaders through the tessellation route are the cause, which I am looking at separately. Neither shader calls the fetch-shader table. Nothing past that draw is tested.Not tested: Windows and Linux (devices there have geometry shaders or the barycentric extension, so these draws do not take the patches).
6d8ff2d5b8), the conflicts inDraw.cpp,PixelBarycentricEmulation.cppand both debt files were resolved to keep #7426's provoking-vertex argument and flat checks beside the strip path. That merge was tested by our second machine on an AMD Radeon 680M (Windows 11, driver 32.0.21030.2001, Vulkan SDK 1.4.363 validation layer,ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1):agc_driver_graphics,agc_driver_pixel_barycentric_emulationandagc_driver_provoking_vertexpass,agc_driver_mesh_provoking_vertexskips (no mesh shaders), with 0VUID-lines. That device has the barycentric extension, so the test ran the strip case through the geometry stage, not the tessellation route this PR adds; the tessellation route was tested on the Apple M2 as above, before this merge.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)main)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T21:01:13Z.
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)docs/dev/debt/libSceAgcDriver.mdL138docs/dev/debt/shader.mdL102-104docs/dev/debt/shader.mdL101-102docs/dev/debt/libSceAgcDriver.mdL138core/libs/prx/libSceAgcDriver/tests/execution/PixelBarycentricEmulation.cppL70, L73-74docs/dev/debt/shader.mdL102core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cppL661-662core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppL490-491core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cppL660-662core/libs/prx/libSceAgcDriver/tests/execution/PixelBarycentricEmulation.cppL73-74Some 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.
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/shader.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/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/execution/PixelBarycentricEmulation.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdImported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-19T22:44:41Z.
Validation-layer comparison as AGENTS.md describes:
maine5b65a911againstmainplus headefd895b511. Linux, WSL2 Ubuntu 24.04, lavapipe (llvmpipe, LLVM 20.1.2, Mesa 25.2.8), Khronos validation layer 1.3.275. Environment:VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1. Command:ctest -R "agc_driver_pixel_barycentric_emulation|agc_driver_graphics|agc_driver_provoking_vertex" -V.was not found but was requested by env var VK_INSTANCE_LAYERS.VUID-errors. Both logs carry the same set, already present onmain: 66VUID-VkGraphicsPipelineCreateInfo-pLibraries-06681and 6VUID-VkDeviceCreateInfo-pNext-pNext.Not covered: an NVIDIA run with the validation layer. This machine's RTX 3070 has no Khronos layer installed.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by DavidAmsellem on 2026-10-20T19:00:45Z.
First AMD run of this PR, on Linux with RADV. Head
efd895b51merged ontomain2fee39f1b(clean merge), built in full and compared with the samemain, on the same machine.AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release.
Full suite (
ANYPS5_REQUIRE_VULKAN=1 ctest -j8) atc767e6d5f: 1715/1716 with this PR, against 1715/1716 onmain. The one failure is the same on both, so this PR adds none:agc_driver_guest_memory_lifetime(#7784, which #7849 addresses).Comparing the JUnit output with
main: this PR adds no ctest entry, and none is skipped or removed. The tests it changes,agc_driver_pixel_barycentric_emulationandagc_driver_graphics, run and pass. The barycentric test setsfragmentShaderBarycentricEnabled = false, so the emulation is used even though RADV has native barycentrics, and RADV exposesgeometryShaderandtessellationShader, so none of the test's stage skips apply.GPUs tested: AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 / kernel 7.0.0-38
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-21T02:12:33Z.
First Windows and NVIDIA run, with the validation-layer comparison from AGENTS.md. Head
efd895b511against its merge base9127ea36d2, built one after the other in the same build directory. Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Ninja, Release,BUILD_TESTING=ON.The RTX 5080 has
geometryShaderandVK_KHR_fragment_shader_barycentric, so titles here don't take the patch route. The value of this run is the test:agc_driver_pixel_barycentric_emulationturns native barycentrics off, and both emulated routes, geometry and tessellation, run on this device.Focused tests
Command:
ctest -R "^(agc_driver_pixel_barycentric_emulation|agc_driver_graphics|agc_driver_provoking_vertex)$" -VwithANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. The Khronos layer is 1.4.363, a user-local copy added throughVK_ADD_LAYER_PATH.VK_LOADER_DEBUG=layershowsInsert instance layer "VK_LAYER_KHRONOS_validation", and both logs showSelected GPU name=NVIDIA GeForce RTX 5080.9127ea36d2efd895b511agc_driver_pixel_barycentric_emulationgeometry stage passed for a triangle strip: 864 and 864 pixels of its even and odd triangleand the same line fortessellation stagesagc_driver_graphicsagc_driver_provoking_vertexVUID-lineswas not found but was requested by env var VK_INSTANCE_LAYERSThe same three tests without the layer, plus
patched_libraries, pass 4 of 4 on both trees.So the tessellation-route strip case, which your M2 run covers, passes on NVIDIA too, and the geometry-route strip case, which the M2 skipped, passes here.
Execution/src/Driver/Draw/Draw.cpp,Graphics/src/Draw.cpp,Pipeline.cpp,ShaderValidation.cpp) both fail:agc_driver_graphicswithAGC graphics: emulated barycentrics through tessellation require a triangle list;agc_driver_pixel_barycentric_emulationpasses the geometry-route strip case, then fails at the tessellation-route strip case with the same message.main3b5a24c0dwith this PR merged (together with #8080, #8119 + #8113 and #8255, which touch other libraries): the three tests pass.mainwithout conflicts.tools/check_conventions.py --base 9127ea36d2reports onedebt-lengthwarning ondocs/dev/debt/shader.md:96. That entry was already 1918 characters before the change and is 1929 after.Régie5 (PPSA99520) 0.7.0, catalog zip, sha256
c54af57f…a3e023matching the catalog record, relinked withrelinker --windows --registry. It gives no evidence either way on this host. On the base, the head andmainalike, the window opens on the 60 Hz display, and the title aborts after 7 to 9 s withVideoOut: display no longer supports 119.88 Hz output. That is the 119.88 Hz handling discussed in #8095, not this change.Verdict: no regression on Windows/NVIDIA, the new strip cases pass on both emulated routes, there are no validation errors on either tree, and the tests fail without the change.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T11:10:56Z.
@DavidSamir a heads-up for the rebase:
mainhas since added provoking-vertex and flat-input support to the same barycentric tessellation path this PR extends to triangle strips, so the conflict is more than textual.Draw.cppmerges mechanically (this PR changes the topology check,mainpassesprovokingVertexMode == LAST ? 2u : 0utoBuildBarycentricTessellationShaders), butmain's provoking index assumes triangle-list vertex order. For the odd triangles of a strip the winding is swapped, so please check whether index 0 (first vertex) and index 2 (last vertex) still pick the vertex the console uses there.Draw()gained a different trailing parameter on each side (bool striphere,bool flat, VkProvokingVertexModeEXT provokingonmain), and the call sites pass a positionaltruethat means strip on one side and flat on the other. The parameters and call sites need reconciling by hand.A strip case with flat inputs and last-vertex provoking would pin the combination. The debt docs just need both entries kept.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T12:00:19Z.
@DavidSamir thanks for the rebase, it reconciles both points. The strip expansion orders each triangle as Vulkan does for strips:
(i, i+1+odd, i+2-odd)with the first vertex provoking, and(i+odd, i+1-odd, i+2)with the last (theVK_EXT_provoking_vertextable). It puts the provoking vertex at index 0 or 2, wheremain's list-order shader expects it. TheDraw()helper now takesflat,provokingandstripin that order, and every call site passes them explicitly.One small gap: both strip calls in
PixelBarycentricEmulation.cpp(:324,:341) passflat = falseand the first-vertex mode, so thelastProvokingstrip branch inDraw.cpp(out[0] = source(primitive + odd)...) has no test. Could you add one strip call withFlatBarycentricPixelCode,flat = trueandVK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT, like the list case at:377? Its odd triangle would catch a swapped index there. Everything else reads right to us.Imported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-21T14:26:27Z.
I tested the requested flat/last-provoking strip case at exact head
6d8ff2d5b8523a9906dea8e28ecab51d6ffe7676. The patch below adds it to the tessellation route beside the existing last-provoking triangle-list case.FlatBarycentricPixelCode,flat = true,LAST_VERTEX,strip = true; both flat output channels must equal strip vertex 2 on the even triangle and vertex 3 on the odd triangle. It checks 864 interior pixels of each triangle.agc_driver_pixel_barycentric_emulation_testspasses 3/3 on RTX 3090, 3/3 on gfx1036/RADV and 3/3 on lavapipe, with the new tessellation case executed on each.lastProvokingstrip expansion to the first-mode ordering makes the test fail on all three ICDs at odd-triangle pixel(10, 6), flat channel 2: -0.8 instead of vertex 3's +0.8. Restoring the PR's ordering makes the extended test pass again on all three. The final patch also received a fresh NVIDIA run after tidying its diagnostic wording.agc_driver_graphics_testspasses;agc_driver_provoking_vertex_testspasses on each ICD. All temporary edits were removed, the stock test rebuilt and rerun successfully; checkout is clean.Ubuntu 24.04.3, GCC 13.3, Release; RTX 3090 / NVIDIA 595.99.02; gfx1036 (
1002:13c0) / RADV Mesa 25.2.8; lavapipe Mesa 25.2.8 / LLVM 20.1.2. Required Vulkan, shader cache disabled. No title run, macOS/MoltenVK run or Khronos validation-layer A/B here (the layer is unavailable). This covers the explicit emulated tessellation path, not a new native-barycentric path.Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-21T20:36:15Z.
@oneandonlydean added the flat, last-provoking strip case you asked for, as
CheckStripFlatLastin the tessellation route beside the list case (head updated). It's @simonbbby's patch from the comment above, taken as written, with thanks. Their runs: 3/3 on an RTX 3090, gfx1036/RADV and lavapipe, plus the negative control (the first-mode ordering in thelastProvokingstrip expansion fails at odd-triangle pixel (10, 6), flat channel 2: -0.8 instead of vertex 3's +0.8). The only change since their head6d8ff2d5b8is a merge ofmainwhose conflicts were in the debt docs only.Imported from boykopovar/AnyPS5. Originally posted by ycbuzi on 2026-10-22T04:59:52Z.
@DavidSamir #9436 and this PR meet in
Graphics/src/Draw.cpp: this PR addsStripPatchesdirectly abovezeroVertexBuffer, and #9436 changeszeroVertexBuffer's parameter. Merging both gives that one conflict and nothing else, and the resolution keeps both. I'd suggest this PR lands first and I rebase #9436 onto it. Does that order work for you?Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-22T09:03:41Z.
@ycbuzi yes, that order works for me: this PR lands first and you rebase #9436 onto it. The only overlap is
Graphics/src/Draw.cpp, where this PR addsStripPatchesabovezeroVertexBufferand #9436 changeszeroVertexBuffer's parameter, and the resolution keeps both, as you say. I will leaveDraw.cppas it is in this PR so your rebase stays a single conflict.