diff options
author | Roland Scheidegger <[email protected]> | 2009-06-16 21:38:58 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2009-06-16 21:40:41 +0200 |
commit | 4ef1f8e3b52a06fcf58f78c9c36738531b91dbac (patch) | |
tree | aa2a304e2f178bf8b5a061195374a83f3205e2e8 | |
parent | 1510c3cae1d840a065a22c891ad6db794dfe7a00 (diff) |
i965: handle OPCODE_SWZ in the glsl path
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).
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_glsl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c index 0e6a2f8ef09..24832276f4d 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c +++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c @@ -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: |