ac: pass struct ac_llvm_context to emit_membar()
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 8 Feb 2018 23:37:25 +0000 (10:37 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Feb 2018 01:51:27 +0000 (12:51 +1100)
commitc77078c942f210a44d5017b4798d1be50352c15f
tree01890330bdfd91d4e8871ac86617d73094d6c4ba
parent12fd567c78c66b136b5c67782be754790951a560
ac: pass struct ac_llvm_context to emit_membar()

Fixes segfault in piglit test:

./bin/arb_shader_image_load_store-shader-mem-barrier --quick -auto -fbo

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c