ac: avoid casting pointers on bcsel and stores
authorDave Airlie <airlied@redhat.com>
Mon, 19 Nov 2018 03:00:36 +0000 (13:00 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Nov 2018 22:54:25 +0000 (08:54 +1000)
commitec9fe8abc730c890a76ffb6d01a3ec1099ddf264
tree126ae53361caab4b0ff44ef9cb8b15f02d4a3361
parenta999798daad7181110922a7e756eb1d8dfe55c4e
ac: avoid casting pointers on bcsel and stores

For variable pointers we really don't want to case the pointers to int
without a good reason, just add a wrapper for bcsel loading and result
storing.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_llvm_build.c
src/amd/common/ac_llvm_build.h
src/amd/common/ac_nir_to_llvm.c