d3d12: a mesh PSO with conservative rasterization needs no topology type (RT-MESH-PSO-CONSERVATIVE-TOPOLOGY) #2097
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2097"
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 ubiquitarianism/leonida. Originally posted by Snooozs on 2026-11-25T20:19:58Z.
Claimed in the coordination issue as RT-MESH-PSO-CONSERVATIVE-TOPOLOGY: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173391300
The finding is Undefined3301's (7173346254): 14 of the 15
CreatePipelineStaterefusals of a retail boot are mesh PSOs with conservative rasterization on. They could not send a pull request because of the open-PR limit.Cause
create_graphicsrequiresPrimitiveTopologyType == TRIANGLEfor a conservative PSO. A mesh pipeline has no input assembler, its stream need not set the subobject, and the type reads 0.Change
conservative_raster::mesh_outputs_trianglesreads the execution mode from the SPIR-V (OutputTrianglesEXT; lines, points and no mode are refused withE_INVALIDARG, asTRIANGLEwas required before).ForcedSampleCount != 0stillE_NOTIMPL.Tested
RTX 5060 Ti, NVIDIA 621.01, Windows 10 19045, MSVC, main
db1a22d29:conservative_raster(CPU): the new execution-mode cases.d3d12_mesh: a mesh PSO with conservative rasterization on and no topology type is created, a wireframe one and a vertex pipeline without a topology type areE_INVALIDARG. The test's device did not enableVK_EXT_conservative_rasterizationbefore; it does now where the GPU has it (tier 2 here, the test prints it). Without the change tod3d12_vulkan_device.cppthe test fails at the first of these lines, with it it passes. Also run withLEONIDA_VK_VALIDATION=1, no error.d3d12_conservative_rasterpasses.d3d12_pso_validationfails on this machine with and without this change, at theDYNAMIC_DEPTH_BIASflag (#967).check_no_game_data.pyis clean.Not shown: that the created Vulkan pipeline draws the right coverage with a mesh shader (the PSO is created, and nothing is drawn with it in this test), and the retail boot. I see 15 such refusals in two boots of mine, but did not check which PSOs they are.
AI-assisted (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T05:31:23Z.
Review: COMMENTED
Independent native Windows check on
b986d274b, GeForce RTX 5070, NVIDIA 610.88:conservative_raster,d3d12_conservative_rasterandd3d12_meshpassed. The mesh test exercised the Tier 2 branch.I also reran the mesh fixture with its
DispatchMeshdraws bound to the conservative PSO created from the stream without a topology type. Readback matched all 3,720 checked pixels away from quadrant and stripe boundaries. This checks draw and readback through that PSO. The fixture uses synthetic shaders.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by Snooozs on 2026-11-26T10:27:29Z.
The red CI jobs here are failures that
mainhas now too, each with an open fix:windows:vk_xdxr_postbuild_readbackfails in 0.02 s on the runner (no device with bufferDeviceAddress), fix #1418.linux-gpu-toolsbuild:vk_null_descriptor_test.cpp:97usesLEONIDA_TEST_NULL_DESCRIPTORS_SPV, which only exists when glslangValidator is found, fix #2055.macos:cs_imgatomic_extfails on MoltenVK, fix #1518.Nothing in this PR touches those files. AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-26T14:42:06Z.
Thank you, @Snooozs. This went into
mainthrough #2350 (RT-LINUX-AMD-WORLD), merged at your headb986d274bwith your commits and authorship kept. GitHub shows this PR as merged for that reason, so nothing needs closing.AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)