dzn: Use narrow quadrilateral lines when supported
authorJesse Natalie <jenatali@microsoft.com>
Thu, 20 Apr 2023 17:21:55 +0000 (10:21 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Apr 2023 21:02:15 +0000 (21:02 +0000)
commit4e2c5ba10075b3527904a98aea501f87acd2fff7
tree66b52d7ece40550fed1cf36a3b2112ddedca5506
parent0b3f2a3c7dbbd62538a2a71725dc41c075dffaca
dzn: Use narrow quadrilateral lines when supported

This lets us follow the Vulkan spec requirements for MSAA line
rasterization, using a width of 1.0 instead of D3D's proscribed
width of 1.4. There's no reason to predicate this on MSAA being
enabled, since quadrilateral lines with a width of 1.0 are actually
the most desired type of line rasterization for Vulkan.

Follow-ups:
- We can probably turn on 'strict lines' when this is supported.
- We should enable the line rasterization mode extension.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22606>
src/microsoft/vulkan/dzn_pipeline.c
src/microsoft/vulkan/dzn_private.h