nir: Add lower_vec_to_regs pass
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 9 Jun 2023 13:41:21 +0000 (09:41 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 12 Jul 2023 01:34:27 +0000 (01:34 +0000)
commit61010e52554ee832a149139bd56276191b849fd7
tree46966ac25079791f20c44551413b9741e2fdab5b
parentaea8a702008d72798383759cca86c7846bdba503
nir: Add lower_vec_to_regs pass

This is a variant of nir_lower_vec_to_movs that produces register intrinsics
(store_reg with write masks) instead of masked moves.

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/23089>
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_vec_to_regs.c [new file with mode: 0644]