[Mesa-dev] [PATCH 7/9] i965/vec4: Don't allow type conversion in opt_vector_float

Jason Ekstrand jason at jlekstrand.net
Thu Mar 17 17:21:44 UTC 2016


---
 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 baf72a2..155a550 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -375,6 +375,7 @@ vec4_visitor::opt_vector_float()
       if (inst->opcode != BRW_OPCODE_MOV ||
           inst->dst.writemask == WRITEMASK_XYZW ||
           inst->src[0].file != IMM ||
+          inst->src[0].type != inst->dst.type ||
           inst->predicate != BRW_PREDICATE_NONE) {
          progress |= vectorize_mov(block, inst, imm, imm_inst, inst_count,
                                    writemask);
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list