Repository navigation
Conversation
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Reviewed and verified. Essential feature completion for \RASTERIZER_DESC2\ in D3D12/Vulkan pipeline creation (OLD-10021 / #290). Properly incorporates \LineRasterizationMode\ into the PSO cache key (\pipeline_key), maps Bresenham, smooth, and rectangular modes to \VK_EXT_line_rasterization\ via \VkPipelineRasterizationLineStateCreateInfoEXT, and preserves fallback behavior when extension features are unavailable. Verified in
untime/test/d3d12_vulkan_device_test.cpp. 100% clean-room.
|
Tested
AI-assisted: yes |
|
Thank you for the Wine run on the RTX 3060 Ti. With the native Windows run in the description, both test files now pass on two hosts. |
|
Recommendation: [MERGE] Reasoning: Carries #290: PSOs honour Impact level: 5/10 |
d0a3343 to
cb41dd0
Compare
|
Rebased onto |
cb41dd0 to
6112a00
Compare
|
Rebased onto |
…pixels; note that wide and narrow are one Vulkan mode
6112a00 to
bd770c1
Compare
|
Rebased onto |
|
Closing this one, no review yet and CI is red. Will reopen if it is still needed. |
Claimed in the coordination issue as: OLD-10021 (claim)
What and why
This carries forward
old-pr/10021by @tedin7 (draft #290). The four commits are cherry-picked ontomainunchanged, with tedin7 kept as author.mainreadsD3D12_RASTERIZER_DESC2but dropsLineRasterizationMode, so every line draws with the driver's default. With this change the layer enablesVK_EXT_line_rasterization(no stippling) where the device has it and chainsVkPipelineRasterizationLineStateCreateInfoEXT:ALIASEDBRESENHAMALPHA_ANTIALIASEDRECTANGULAR_SMOOTHQUADRILATERAL_WIDE,QUADRILATERAL_NARROWRECTANGULAR(Vulkan has no narrow mode, so the two are the same here)Bresenham and smooth lines are skipped when alpha-to-coverage is on (VUID 02766). The line mode is also part of the pipeline cache key for stream-created PSOs. The game's device comes from
create_vulkan_device_standalone(d3d12_xs.cpp), which is the path that enables the extension.Tested
Native Windows 11 10.0.26300, MSVC 19.44, RelWithDebInfo,
LEONIDA_REQUIRE_VULKAN=ON, onmain42537e7plus the four commits.d3d12_draw_testwith the fixaliased=52 alpha_antialiased=160(partial 108) quadrilateral_wide=52 quadrilateral_narrow=52. Features off: all four modes 52.d3d12_draw_testwithmain'sd3d12_vulkan_device.cppsmooth lines covered 52 pixels, aliased 52(the mode never reaches the driver)d3d12_pso_validation_testctest -j 6gameinputdisabled.GPUs tested: NVIDIA GeForce RTX 2050 (Ampere GA107, laptop), driver 621.24, Windows 11
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator rule here.)🤖 Generated with Claude Code