[Mesa-dev] [PATCH 70/95] i965/vec4: don't copy propagate if subnr is set
Iago Toral Quiroga
itoral at igalia.com
Tue Jul 19 10:41:07 UTC 2016
From: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
This means we would copy propagate partial reads or writes and that can affect
the result.
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
---
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
index 93c3b0e..ff886a8 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
@@ -352,6 +352,9 @@ try_copy_propagate(const struct brw_device_info *devinfo,
return false;
}
+ if (inst->src[arg].subnr || value.subnr)
+ return false;
+
bool has_source_modifiers = value.negate || value.abs;
/* gen6 math and gen7+ SENDs from GRFs ignore source modifiers on
--
2.7.4
More information about the mesa-dev
mailing list