i965/vec4: make opt_vector_float ignore doubles
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 12 Feb 2016 12:10:06 +0000 (13:10 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:50 +0000 (11:26 +0100)
The pass does not support doubles in its current form.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index a013d38f1bab3da1de4ed7d96f5d774f0cc78ce9..229a310ec921401a475252e76cc974d4543c7db9 100644 (file)
@@ -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);