i965/vec4: keep original type when dealing with null registers
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 12 Sep 2016 16:06:22 +0000 (16:06 +0000)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Apr 2017 21:56:08 +0000 (14:56 -0700)
commitbe445d3ea3a7b4575c2dbac3d702e27e9ec3f125
tree9fe73d430c34f050d6941de4d1d313278cd9b96c
parenta21dc2b500cff6e0aaf31867c5b42651306ddaf1
i965/vec4: keep original type when dealing with null registers

Keep the original type when dealing with null registers. Especially
because we do no want to introduce an implicit conversion between
types that could affect the conditional flags.

This affects especially when the original type is DF, and we are working
on Ivybridge/Baytrail.

v2 (Curro)
- Fix typo.
- Use retype() instead of applying the type directly.
- Remove unneeded retype.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/intel/compiler/brw_vec4.cpp