gallivm: Allow to conversions to/from registers of different sizes.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 1 Jul 2010 11:33:34 +0000 (12:33 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 1 Jul 2010 14:02:15 +0000 (15:02 +0100)
commitb919bb7f6119d59751fe846cabe5b0d587f46edc
tree3ad3cffb62e5dff83cb611451b23bf35e9a1bc8c
parenta70ec096aaece3aaadc1a8307e32554f7ad4d082
gallivm: Allow to conversions to/from registers of different sizes.

Allow for example to convert from 4 x float32 to 4 x unorm8 and vice versa.

Uses code and ideas from Brian Paul.
src/gallium/auxiliary/gallivm/lp_bld_conv.c
src/gallium/auxiliary/gallivm/lp_bld_pack.c
src/gallium/auxiliary/gallivm/lp_bld_pack.h
src/gallium/drivers/llvmpipe/lp_test_conv.c