i965/vec4: split d2x conversion and data gathering from one opcode to two explicit...
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 8 Mar 2017 08:27:49 +0000 (09:27 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Apr 2017 21:56:08 +0000 (14:56 -0700)
commit50a5217637636f066feabefd7fe46d0ff7778a64
tree1cb8682f240a83ae14f4c4ecb8621f327689362f
parentcfaf14a12607a8e9fd3d86a0c0219c428401f68f
i965/vec4: split d2x conversion and data gathering from one opcode to two explicit ones

When doing a 64-bit to a smaller data type size conversion, the destination should
be aligned to 64-bits. Because of that, we need to gather the data after the
actual conversion.

Until now, these two operations were done by VEC4_OPCODE_FROM_DOUBLE but
now we split them explicitely in two different instructions:
VEC4_OPCODE_FROM_DOUBLE just do the conversion and
VEC4_OPCODE_PICK_LOW_32BIT will gather the data.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/intel/compiler/brw_vec4_generator.cpp
src/intel/compiler/brw_vec4_nir.cpp