gallivm: Fix indirect immediate registers. 19/7319/1
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Jul 2013 19:54:19 +0000 (20:54 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Jul 2013 05:30:06 +0000 (06:30 +0100)
commite621ec816da65a56c3ba038a85075000bf5882d2
treea988d93b3b56a1d3a749d596e33d90e75b7c3fd6
parent70bc43acdb487c7a38faab4f4aa864afe9cbfc84
gallivm: Fix indirect immediate registers.

If reg->Register.Indirect is true then the immediate is not truly a
constant LLVM expression.

There is no performance regression in using LLVMBuildBitCast, as it will
fallback to LLVMConstBitCast internally when the argument is a constant.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c