summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: