Skip to content
Snippets Groups Projects
Forked from Mesa / mesa
Loading
Hyunjun Ko's avatar
Hyunjun Ko authored
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>
54221167
History
Name Last commit Last update