i965/nir: Use nir_system_value_from_intrinsic to reduce duplication.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Aug 2015 23:10:21 +0000 (16:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 9 Sep 2015 01:02:16 +0000 (18:02 -0700)
commit0cc331dddd1a99c7af3619c92c48b5c32e17f6b3
tree8105afacbf0af45ebc7820cc4b9707f90d4e3cd2
parentd5d74d0b86207cff2820561cc3c8b40546a11bc9
i965/nir: Use nir_system_value_from_intrinsic to reduce duplication.

This code is all pretty much identical.  We just needed the translation
from one enum value to the other.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp