commit | 1aef9c831873ef384b6f25e2eb8579505a8dbec1 | [log] [tgz] |
---|---|---|
author | Qiang Yu <yuq825@gmail.com> | Mon Jun 06 16:37:16 2022 +0800 |
committer | Marge Bot <emma+marge@anholt.net> | Fri Aug 26 05:50:30 2022 +0000 |
tree | ec5f8094a6d5f6d2cd3255f66a624257c7cf2a9a | |
parent | 0c2b824f67c1498dfe4e9dd95947ad2b4a539508 [diff] |
nir,ac/llvm: add nir_intrinsic_load_half_line_width_amd Used by AMD GPU NGG line culling. We could use nir load line width and viewport scale to calculate this in shader, but this way needs expensive divide ops. Acked-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17651>