Skip to content

radv: add support for rectangularLines and smoothLines

Erik Faye-Lund requested to merge kusma/mesa:radv-smooth-lines into main

This implements both rectangularLines and smoothLines for RADV.

rectangularLines is supported by setting the S_028BDC_PERPENDICULAR_ENDCAP enable-bit in R_028BDC_PA_SC_LINE_CNTL.

smoothLines is supported the same way as RadeonSI does for OpenGL; by converting the sample-mask to the fragment-alpha at the end of the fragment shader. It also needs the enable-bit from rectangularLines as well.

Edited by Erik Faye-Lund

Merge request reports