i965: handle OPCODE_SWZ in the glsl path
authorRoland Scheidegger <sroland@vmware.com>
Tue, 16 Jun 2009 19:38:58 +0000 (21:38 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 16 Jun 2009 19:40:41 +0000 (21:40 +0200)
glsl compiler will not generate OPCODE_SWZ, and as a first step it would
be translated away to a MOV anyway (why?), but later internally this opcode is
generated (for EXT_texture_swizzling).

src/mesa/drivers/dri/i965/brw_wm_glsl.c

index 0e6a2f8ef09f128d18a27aa066d16de2d9aeee6a..24832276f4d8602a4236463bf95944a4174b4644 100644 (file)
@@ -2831,6 +2831,7 @@ static void brw_wm_emit_glsl(struct brw_context *brw, struct brw_wm_compile *c)
                emit_trunc(c, inst);
                break;
            case OPCODE_MOV:
+           case OPCODE_SWZ:
                emit_mov(c, inst);
                break;
            case OPCODE_DP3: