[Mesa-dev] [PATCH v2 027/103] i965/vec4: make opt_vector_float ignore doubles
Iago Toral Quiroga
itoral at igalia.com
Tue Oct 11 09:01:31 UTC 2016
The pass does not support doubles in its current form.
---
src/mesa/drivers/dri/i965/brw_vec4.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 06fa38f..675b7fc 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -393,6 +393,7 @@ vec4_visitor::opt_vector_float()
inst->src[0].file == IMM &&
inst->predicate == BRW_PREDICATE_NONE &&
inst->dst.writemask != WRITEMASK_XYZW &&
+ type_sz(inst->src[0].type) < 8 &&
(inst->src[0].type == inst->dst.type || inst->src[0].d == 0)) {
vf = brw_float_to_vf(inst->src[0].d);
--
2.7.4
More information about the mesa-dev
mailing list