st/mesa: don't generate NIR for ARB_vp/fp if NIR is not preferred
authorMarek Olšák <marek.olsak@amd.com>
Wed, 12 Aug 2020 15:09:43 +0000 (11:09 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Aug 2020 19:07:18 +0000 (19:07 +0000)
commit2424485fb436b2abeca2dc801ffda156e3d1fe78
tree54900dd161db56f82eef5af69e6119c2902338b1
parent493fdcf44647ee471e934de3e63d193c6a3b6ff0
st/mesa: don't generate NIR for ARB_vp/fp if NIR is not preferred

Fixes: 5d0630e5043fc2 "st/mesa: call prog_to_nir sooner for ARB_fp"
Fixes: a3de63fbb3d63e "st/mesa: don't generate VS TGSI if NIR is enabled"
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6442>
src/mesa/state_tracker/st_program.c