Lines Matching refs:RGB
132 static void src_uses(struct rc_src_register src, unsigned int * rgb,
139 *rgb = 1;
163 pair->RGB.Opcode = RC_OPCODE_REPL_ALPHA;
165 pair->RGB.Opcode = inst->Opcode;
167 pair->RGB.Saturate = 1;
182 * pair->{RGB,ALPHA}.Src[RC_PAIR_PRESUB_SRC] */
192 unsigned int rgb = 0;
194 src_uses(inst->SrcReg[j], &rgb, &alpha);
195 if(rgb) {
196 pair->RGB.Src[i].File =
198 pair->RGB.Src[i].Index =
200 pair->RGB.Src[i].Used = 1;
221 * want the part of the swizzle that writes to rgb,
222 * since we are creating an rgb instruction. */
238 "rgb instruction.\n");
241 pair->RGB.Arg[i].Source = source;
242 pair->RGB.Arg[i].Swizzle =
244 pair->RGB.Arg[i].Abs = inst->SrcReg[i].Abs;
245 pair->RGB.Arg[i].Negate = !!(srcmask & inst->SrcReg[i].Negate & (RC_MASK_X | RC_MASK_Y | RC_MASK_Z));
290 pair->RGB.Target = i;
292 pair->RGB.OutputWriteMask |=
302 pair->RGB.DestIndex = inst->DstReg.Index;
303 pair->RGB.WriteMask |= inst->DstReg.WriteMask & RC_MASK_XYZ;
315 pair->RGB.Omod = inst->Omod;