nir: Add a lowering pass for polygon and line smoothing

When poly_line smoothing is enabled then this lowering pass will
modify the alpha component of every write to fragment output
using sample coverage mask.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16245>
This commit is contained in:
Arvind Yadav
2022-04-29 17:58:02 +05:30
committed by Marge Bot
parent a43b96ab1a
commit 2709786bde
3 changed files with 83 additions and 0 deletions

View File

@@ -187,6 +187,7 @@ files_libnir = files(
'nir_lower_pntc_ytransform.c',
'nir_lower_point_size.c',
'nir_lower_point_size_mov.c',
'nir_lower_poly_line_smooth.c',
'nir_lower_printf.c',
'nir_lower_regs_to_ssa.c',
'nir_lower_readonly_images_to_tex.c',