On 3 November 2015 at 00:29, Matt Turner <matts...@gmail.com> wrote: > @@ -387,7 +342,9 @@ vec4_visitor::opt_vector_float() > > remaining_channels &= ~inst->dst.writemask; > if (remaining_channels == 0) { > - vec4_instruction *mov = MOV(inst->dst, imm); > + unsigned vf; > + memcpy(&vf, imm, sizeof(vf)); > + vec4_instruction *mov = MOV(inst->dst, brw_imm_vf(vf)); You can drop the temp variable + memcpy call and use brw_imm_vf4(imm[x],....)
-Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev