[Mesa-dev] [PATCH 13/22] i965/vec4: keep original type when dealing with null registers
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Thu Jan 5 13:07:33 UTC 2017
From: "Juan A. Suarez Romero" <jasuarez at igalia.com>
Keep the original type when dealing with null registers. Specially
because we do no want to introduce an implicit conversion between
types that could affect the conditional flags.
This affects specially when the original type is DF, and we are working
on Ivybridge/Valleyview.
---
src/mesa/drivers/dri/i965/brw_vec4.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 6ba85d7..f533207 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -1991,6 +1991,7 @@ vec4_visitor::convert_to_hw_regs()
case BAD_FILE:
/* Probably unused. */
reg = brw_null_reg();
+ reg.type = src.type;
break;
case MRF:
@@ -2041,6 +2042,7 @@ vec4_visitor::convert_to_hw_regs()
case BAD_FILE:
reg = brw_null_reg();
+ reg.type = dst.type;
break;
case IMM:
@@ -2213,6 +2215,8 @@ vec4_visitor::lower_simd_width()
} else {
if (inst->dst.file != ARF)
dst = horiz_offset(inst->dst, channel_offset);
+ else
+ dst.type = inst->dst.type;
}
linst->dst = dst;
--
2.9.3
More information about the mesa-dev
mailing list