radv: add support for rectangularLines and smoothLines
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