Overhaul handling of writemasks/swizzling. This fixes two problem cases:
authorBrian <brian@yutani.localnet.net>
Wed, 31 Jan 2007 23:34:54 +0000 (16:34 -0700)
committerBrian <brian@yutani.localnet.net>
Wed, 31 Jan 2007 23:34:54 +0000 (16:34 -0700)
commitb63c100677c76bb20a1871ea15298ca708acd04f
tree531db5e2db8f313a6273548f766db850a37b9548
parent309d5b665051179b7e135d7329da1ea45bfeb8e5
Overhaul handling of writemasks/swizzling.  This fixes two problem cases:
vec2 v;  v.x = v.y = 1.0;  // chained assignment
vec4 v;  v.zx = vec2(a,b);  // swizzled writemask
src/mesa/shader/prog_instruction.h
src/mesa/shader/prog_print.c
src/mesa/shader/slang/slang_assemble_constructor.c
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_emit.c
src/mesa/shader/slang/slang_ir.h