Lines Matching refs:RGB
164 code->alu.inst[ip].rgb_inst = translate_rgb_opcode(c, inst->RGB.Opcode);
168 /* Set the RGB address */
169 unsigned int src = use_source(code, inst->RGB.Src[j]);
171 if (inst->RGB.Src[j].Index >= R300_PFS_NUM_TEMP_REGS)
183 arg = r300FPTranslateRGBSwizzle(inst->RGB.Arg[j].Source, inst->RGB.Arg[j].Swizzle);
184 arg |= inst->RGB.Arg[j].Abs << 6;
185 arg |= inst->RGB.Arg[j].Negate << 5;
195 if (inst->RGB.Src[RC_PAIR_PRESUB_SRC].Used) {
196 switch(inst->RGB.Src[RC_PAIR_PRESUB_SRC].Index) {
241 if (inst->RGB.Saturate)
246 if (inst->RGB.WriteMask) {
247 use_temporary(code, inst->RGB.DestIndex);
248 if (inst->RGB.DestIndex >= R300_PFS_NUM_TEMP_REGS)
251 ((inst->RGB.DestIndex & 0x1f) << R300_ALU_DSTC_SHIFT) |
252 (inst->RGB.WriteMask << R300_ALU_DSTC_REG_MASK_SHIFT);
254 if (inst->RGB.OutputWriteMask) {
256 (inst->RGB.OutputWriteMask << R300_ALU_DSTC_OUTPUT_MASK_SHIFT) |
257 R300_RGB_TARGET(inst->RGB.Target);
284 if (inst->RGB.Omod) {
285 if (inst->RGB.Omod == RC_OMOD_DISABLE) {
289 (inst->RGB.Omod << R300_ALU_OUTC_MOD_SHIFT);