mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1191
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1158
Author: @TimIdle
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:oldpr-10021-line-raster📝 Commits (4)
7e74611fix: preserve rasterizer2 line modes2915652fix: ALPHA_ANTIALIASED line mode uses the Vulkan RECTANGULAR_SMOOTH enum44d1ffefix: no Bresenham or smooth line state when alpha-to-coverage is on (VUID 02766)bd770c1test: draw LINE_LIST per D3D12_LINE_RASTERIZATION_MODE and check the pixels; note that wide and narrow are one Vulkan mode📊 Changes
5 files changed (+366 additions, -3 deletions)
View changed files
📝
runtime/shims/d3d12_com.h(+4 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+58 -3)📝
runtime/test/d3d12_draw_test.cpp(+237 -0)📝
runtime/test/d3d12_pso_validation_test.cpp(+45 -0)📝
runtime/test/vk_test_device.h(+22 -0)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.