nir: add nir_instr_rewrite_deref
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 9 Jun 2017 13:13:08 +0000 (15:13 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 12:55:28 +0000 (14:55 +0200)
commitb27c2d402efb7dfbc6a8b9a6cbd2008cac3753e3
tree1f7b6c6194f733ed0bb5ce6a30ceeee5f3c79607
parent540b1a8f0b19fa06303500f82824b209ef8f8ef5
nir: add nir_instr_rewrite_deref

Allows modifying a texture instruction's texture and sampler derefs.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.c
src/compiler/nir/nir.h