intel/nir: Extract add_const_offset_to_base
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 14 May 2019 10:10:11 +0000 (12:10 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Mon, 8 Jul 2019 12:14:53 +0000 (14:14 +0200)
commit6b28808b22848dd5bfcda658f7b1d42f9ee06d73
treef6c8a901e811daa36411564a9066cf65de94bdcb
parentc45f5db527252384395e55fb1149b673ec7b5fa8
intel/nir: Extract add_const_offset_to_base

Pretty much every driver using nir_lower_io_to_temporaries followed by
nir_lower_io is going to want this. In particular, radv and radeonsi in
the next commits.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_io.c
src/intel/compiler/brw_nir.c