gallivm: enable fetch for integer opcodes. (v2)
authorDave Airlie <airlied@redhat.com>
Mon, 6 Feb 2012 15:35:05 +0000 (15:35 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 17 Feb 2012 17:39:02 +0000 (17:39 +0000)
commit141f2c2fc9325a5d30629373bb962f42517967ae
tree330b563e5d2bab51b3b2e39b17f85f7235aee646
parent66461aa249a95053fd5887df75ab791558c3a486
gallivm: enable fetch for integer opcodes. (v2)

The infers the type of data required using the opcode,
and casts the input to the appropriate type.

So far this only handles non-indirect constant and temporaries.

v2: as per Jose suggestion, fetch immediates via floats

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c