nir: Add nir_lower_tess_coord_z pass
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 14 Jul 2023 14:28:37 +0000 (10:28 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Jul 2023 17:31:52 +0000 (17:31 +0000)
commit4f0f76346e056ee8f555f45000c876d99fd1fd4f
treeb39e10db4de3056b29bdde7da9b9041b07786746
parent9109830bb04b1664bd19f9ab350602a869e048f7
nir: Add nir_lower_tess_coord_z pass

Lowers tess_coord to tess_coord_xy and math. Based on ir3's version.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24159>
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_tess_coord_z.c [new file with mode: 0644]