Skip to content
Snippets Groups Projects
Commit 54221167 authored by Hyunjun Ko's avatar Hyunjun Ko Committed by Marge Bot
Browse files

turnip: enable VK_EXT_line_rasterization


By default line mode is VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT,
when lineRasterizationMode is VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT
and primtype is line - we enable bresenham line mode.

We have to disable MSAA when bresenham lines are used, this is
a hardware limitation and spec allows it:

  "When Bresenham lines are being rasterized, sample locations may
   all be treated as being at the pixel center (this may affect
   attribute and depth interpolation)."

This forces us to re-emit msaa state when line mode is changed.

Signed-off-by: default avatarHyunjun Ko <zzoon@igalia.com>
Signed-off-by: default avatarDanylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <mesa/mesa!6020>
parent 88afceac
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment