ac/radeonsi: add support for tex instr without a derefence
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Nov 2017 01:43:46 +0000 (12:43 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 3 Nov 2017 03:19:51 +0000 (14:19 +1100)
commit439a2febc4a658fdf38275268b6b5f566f3a3253
treefed076b4259f582b9bb8de7fb202c3f161b5f51c
parent440d08fe932be89f56fc8ebec94c8393a6626369
ac/radeonsi: add support for tex instr without a derefence

These are produced by nir_lower_bitmap(), adding the missing derefence
would cause other issues that need to be hacked around such as
skipping sampler lowering and uniform location assignment, so this
change seems the correct way to go.

Fixes 194 piglit crashes on radeonsi using NIR.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_nir_to_llvm.c
src/gallium/drivers/radeonsi/si_shader_nir.c