diff options
author | Roland Scheidegger <[email protected]> | 2009-06-16 21:38:58 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-06-22 15:15:20 -0700 |
commit | 2f184d0d9f4600a20022887674b77f45ee6b728e (patch) | |
tree | 312636c5368f02be76ba6794a29effee9d4a251b /src/mesa | |
parent | 9d367d43b2fddb9a27d4be6302da172ab773ca91 (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).
(cherry picked from commit 4ef1f8e3b52a06fcf58f78c9c36738531b91dbac)
Diffstat (limited to 'src/mesa')
-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 875683e0aa5..094c1af2fef 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c +++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c @@ -2681,6 +2681,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: |