nir: skip lowering sampler if there is no dereference
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Nov 2017 01:43:45 +0000 (12:43 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 3 Nov 2017 03:19:46 +0000 (14:19 +1100)
commit440d08fe932be89f56fc8ebec94c8393a6626369
tree9e34bdea5cdf0255356e7483e32fc985103f8104
parentde126b0402c53ed9011b8ea5237daea554537aa1
nir: skip lowering sampler if there is no dereference

This avoids a crash on the output of nir_lower_bitmap().

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/nir/nir_lower_samplers_as_deref.c