i965/gen8: Fix F32TO16 in vec4 mode if the source and destination registers alias.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 4 Feb 2015 16:08:47 +0000 (18:08 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 19 Feb 2015 12:06:42 +0000 (14:06 +0200)
commit437d401e6398eebc2ecd061650d16d1ad2d947f1
tree2fc6cec461f640a1a5434caface4b7b30d54da7e
parent509f58740c721e1a8cc8ec4e556af3ed993f927e
i965/gen8: Fix F32TO16 in vec4 mode if the source and destination registers alias.

We cannot zero out the destination register if it overlaps with the
source.  Use an Align1 instruction instead to zero out the high 16
bits after the conversion to half float.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_eu_emit.c