From: Eric Anholt Date: Fri, 5 Aug 2011 23:31:30 +0000 (-0700) Subject: i965/vs: Allow scalar values in assignments, too. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82aa9299fbfe92d2526fa9f7ffd2a1ebc7827ee9;p=mesa.git i965/vs: Allow scalar values in assignments, too. Fixes glsl-vs-all-02 and many other tests. --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index c4a3c8a8667..e3779ab0444 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1285,7 +1285,8 @@ vec4_visitor::visit(ir_assignment *ir) int first_enabled_chan = 0; int src_chan = 0; - assert(ir->lhs->type->is_vector()); + assert(ir->lhs->type->is_vector() || + ir->lhs->type->is_scalar()); dst.writemask = ir->write_mask; for (int i = 0; i < 4; i++) {