From: Corbin Simpson Date: Thu, 15 May 2008 17:51:52 +0000 (-0700) Subject: r5xx: Add OPCODE_SWZ. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c11a33fe76123abb19cfc1da7d3701a44fca2f23;p=mesa.git r5xx: Add OPCODE_SWZ. It's so easy! --- 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;