ac: rework emit_barrier() to not segfault on radeonsi
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 8 Jan 2018 06:41:24 +0000 (17:41 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 8 Jan 2018 23:21:32 +0000 (10:21 +1100)
commitf04d2ca0d979101dd8bfcdc6cad30461ff73a7cc
tree38c84af40d1c5bb065c38eb2c224ba051e9c29be
parent19f3141e6ab34dc7389b5e1fa9f3dca5e23b2191
ac: rework emit_barrier() to not segfault on radeonsi

nir_to_llvm_context will always be NULL for radeonsi so we need
work around this.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_nir_to_llvm.c