diff options
author | Corbin Simpson <[email protected]> | 2008-05-15 10:51:52 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2008-05-17 07:12:37 -0700 |
commit | c11a33fe76123abb19cfc1da7d3701a44fca2f23 (patch) | |
tree | 7f5d5d8fc07ccba3ed23f3423f8fbef3be17fc5d /src | |
parent | d5aa42166152c4817d4fb06f183552efc135304b (diff) |
r5xx: Add OPCODE_SWZ.
It's so easy!
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r300/r500_fragprog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r500_fragprog.c b/src/mesa/drivers/dri/r300/r500_fragprog.c index f6a4f2c25d6..f8334f4dc6f 100644 --- a/src/mesa/drivers/dri/r300/r500_fragprog.c +++ b/src/mesa/drivers/dri/r300/r500_fragprog.c @@ -741,6 +741,10 @@ static GLboolean parse_program(struct r500_fragment_program *fp) | MAKE_SWIZ_ALPHA_C(make_alpha_swizzle(fpi->SrcReg[1])) | R500_ALU_RGBA_ALPHA_MOD_C_NEG; break; + case OPCODE_SWZ: + emit_mov(fp, counter, fpi->SrcReg[0], dest); + fp->inst[counter].inst0 |= pixel_mask; + break; case OPCODE_TEX: emit_tex(fp, fpi, OPCODE_TEX, dest, counter); break; |