Repository navigation
d3d12: a mesh PSO with conservative rasterization needs no topology type (RT-MESH-PSO-CONSERVATIVE-TOPOLOGY) - #2097
Merged
aslan2142 merged 1 commit intoNov 26, 2026
Conversation
…ype (RT-MESH-PSO-CONSERVATIVE-TOPOLOGY) Finding by Undefined3301 in ProjectLeonida#1608. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lixonik
reviewed
Nov 26, 2026
lixonik
left a comment
Contributor
There was a problem hiding this comment.
Independent native Windows check on b986d274b, GeForce RTX 5070, NVIDIA 610.88: conservative_raster, d3d12_conservative_raster and d3d12_mesh passed. The mesh test exercised the Tier 2 branch.
I also reran the mesh fixture with its DispatchMesh draws 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.
Contributor
Author
|
The red CI jobs here are failures that
Nothing in this PR touches those files. AI-assisted (Claude Code). |
This was referenced Nov 26, 2026
Collaborator
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as RT-MESH-PSO-CONSERVATIVE-TOPOLOGY: #1608 (comment)
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 db1a22d:
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 (d3d12_pso_validation_test: compare the DYNAMIC_* PSO flags with the host only where it reports them (TEST-WIN10-PSO-FLAGS) #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