gallivm: add PK2H/UP2H support
authorRoland Scheidegger <sroland@vmware.com>
Tue, 2 Feb 2016 02:51:22 +0000 (03:51 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 2 Feb 2016 04:58:20 +0000 (05:58 +0100)
commit7221b8aec648c0da3f7ce386e143e9fdbb36a0ce
tree548a7c60254fd73efc69ecc8151dd27b9d99fc33
parent5171ec9ca92ce489e32c227ae3b4b6df621bbf40
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 to those rounding differences I don't
know if that one works or not as the piglit test is rather difficult to
deal with).

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_pack.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c