summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan A. Suarez Romero <jasuarez@igalia.com>2016-09-12 16:06:22 +0000
committerFrancisco Jerez <currojerez@riseup.net>2017-04-14 14:56:08 -0700
commitbe445d3ea3a7b4575c2dbac3d702e27e9ec3f125 (patch)
tree9fe73d430c34f050d6941de4d1d313278cd9b96c
parenta21dc2b500cff6e0aaf31867c5b42651306ddaf1 (diff)
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>
-rw-r--r--src/intel/compiler/brw_vec4.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp
index adbd85036e..386057e3e3 100644
--- a/src/intel/compiler/brw_vec4.cpp
+++ b/src/intel/compiler/brw_vec4.cpp
@@ -1984,6 +1984,7 @@ vec4_visitor::convert_to_hw_regs()
case BAD_FILE:
/* Probably unused. */
reg = brw_null_reg();
+ reg = retype(reg, src.type);
break;
case MRF:
@@ -2034,6 +2035,7 @@ vec4_visitor::convert_to_hw_regs()
case BAD_FILE:
reg = brw_null_reg();
+ reg = retype(reg, dst.type);
break;
case IMM: