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:Hyunjun Ko <zzoon@igalia.com> Signed-off-by:
Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <mesa/mesa!6020>
Showing
- docs/features.txt 1 addition, 1 deletiondocs/features.txt
- src/freedreno/vulkan/tu_clear_blit.c 2 additions, 1 deletionsrc/freedreno/vulkan/tu_clear_blit.c
- src/freedreno/vulkan/tu_cmd_buffer.c 29 additions, 4 deletionssrc/freedreno/vulkan/tu_cmd_buffer.c
- src/freedreno/vulkan/tu_device.c 18 additions, 0 deletionssrc/freedreno/vulkan/tu_device.c
- src/freedreno/vulkan/tu_pipeline.c 17 additions, 5 deletionssrc/freedreno/vulkan/tu_pipeline.c
- src/freedreno/vulkan/tu_private.h 5 additions, 1 deletionsrc/freedreno/vulkan/tu_private.h
- src/freedreno/vulkan/tu_util.h 14 additions, 0 deletionssrc/freedreno/vulkan/tu_util.h
Loading
Please register or sign in to comment