From: "Juan A. Suarez Romero" <jasua...@igalia.com> 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 <curroje...@riseup.net> --- src/intel/compiler/brw_vec4.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp index a213bbb4707..b26f8035811 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: -- 2.11.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev