gallivm: add PK2H/UP2H support
authorRoland Scheidegger <sroland@vmware.com>
Fri, 29 Jan 2016 01:49:22 +0000 (02:49 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 2 Feb 2016 04:58:19 +0000 (05:58 +0100)
commit5171ec9ca92ce489e32c227ae3b4b6df621bbf40
tree7474f33031da46893c0eade1564a7c6cc034551f
parentdc16086e3b616f767ab31c86505502c4df7739ac
gallivm: add PK2H/UP2H support

Add support for these opcodes, the conversion functions were already
there albeit need some new packing stuff.
Just like the tgsi version, piglit won't like it for all the same
reasons, so it's disabled (UP2H passes piglit arb_shader_language_packing
tests, albeit since PK2H won't due those rounding differences I don't
know if that one works or not as the piglit test is rather difficult to
deal with).
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/auxiliary/gallivm/lp_bld_tgsi.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c