radeonsi: implement PK2H and UP2H opcodes
authorMarek Olšák <marek.olsak@amd.com>
Fri, 29 Jan 2016 23:30:02 +0000 (00:30 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 4 Feb 2016 18:52:28 +0000 (19:52 +0100)
commitbff640b3e09f845ddb5b23136c8f0796098dc23a
treefc5c12243ccd5e28dd6b146ff33ce41132ac5a58
parent973ba3f4d4b73f67568ab2b0b6a4447c40bb9dcf
radeonsi: implement PK2H and UP2H opcodes

Based on a gallivm patch by Ilia Mirkin.

+8 piglit regressions due to precision issues (I blame the tests)

The benefit is that we'll get v_cvt_f32_f16 and v_cvt_f16_f32 instead
of emulation with integer instructions. They are GLSL 4.00 intrinsics.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
src/gallium/drivers/radeonsi/si_pipe.c