ac/nir: Support load_constant intrinsics
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 29 Aug 2019 15:28:01 +0000 (17:28 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Thu, 5 Sep 2019 10:21:42 +0000 (12:21 +0200)
commit91626d0865851bc7e2e21296d1d8f34149216e40
treef499736f19c0e1fe23f22fdff78a13abebf702e1
parent5dadbabb47c317f58a3b939d08e8e50745d92990
ac/nir: Support load_constant intrinsics

Setup a constant global variable that LLVM will stick in a .rodata
section and generate PC-relative loads for.

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