/external/mesa3d/src/mesa/program/ |
prog_opt_constant_fold.c | 57 src.Swizzle = swiz; 72 src.Swizzle = swiz; 82 && (a->Swizzle == b->Swizzle) 95 data[0] = value[GET_SWZ(r->Swizzle, 0)].f; 96 data[1] = value[GET_SWZ(r->Swizzle, 1)].f; 97 data[2] = value[GET_SWZ(r->Swizzle, 2)].f; 98 data[3] = value[GET_SWZ(r->Swizzle, 3)].f; 158 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; 188 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP [all...] |
programopt.c | 96 newInst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; 99 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; 168 newInst[0].SrcReg[0].Swizzle = SWIZZLE_XXXX; 171 newInst[0].SrcReg[1].Swizzle = SWIZZLE_NOOP; 180 newInst[i].SrcReg[0].Swizzle = MAKE_SWIZZLE4(i,i,i,i); 183 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; 186 newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP; 195 newInst[3].SrcReg[0].Swizzle = SWIZZLE_WWWW; 198 newInst[3].SrcReg[1].Swizzle = SWIZZLE_NOOP; 201 newInst[3].SrcReg[2].Swizzle = SWIZZLE_NOOP [all...] |
nvvertparse.c | 675 /* init swizzle fields */ 676 srcReg->Swizzle = SWIZZLE_NOOP; 678 /* Look for optional swizzle suffix */ 688 /* single letter swizzle */ 690 srcReg->Swizzle = SWIZZLE_XXXX; 692 srcReg->Swizzle = SWIZZLE_YYYY; 694 srcReg->Swizzle = SWIZZLE_ZZZZ; 696 srcReg->Swizzle = SWIZZLE_WWWW; 701 /* 2, 3 or 4-component swizzle */ 704 srcReg->Swizzle = 0 [all...] |
prog_instruction.c | 47 inst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; 49 inst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; 51 inst[i].SrcReg[2].Swizzle = SWIZZLE_NOOP; 325 GLuint swizzle = GET_SWZ(inst->SrcReg[i].Swizzle, chan); local 326 if (swizzle <= SWIZZLE_W && 327 (channelsWritten & (1 << swizzle))) {
|
prog_optimize.c | 112 /* Now, given the src swizzle and the written channels, find which 117 const GLuint coord = GET_SWZ(inst->SrcReg[arg].Swizzle, comp); 144 src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, comp); 155 * Ensure that the swizzle is regular. That is, all of the swizzle 287 const GLuint swz = GET_SWZ(inst->SrcReg[j].Swizzle, comp); 551 if (is_swizzle_regular(inst2->SrcReg[arg].Swizzle) && 555 GET_SWZ(inst2->SrcReg[arg].Swizzle, comp); 556 const GLuint s = GET_SWZ(mov->SrcReg[0].Swizzle, inst2_swz); 557 inst2->SrcReg[arg].Swizzle &= ~(7 << (3 * comp)) [all...] |
prog_parameter_layout.c | 167 unsigned swizzle = SWIZZLE_NOOP; local 190 _mesa_add_unnamed_constant(layout, v, p->Size, & swizzle); 192 inst->Base.SrcReg[i].Swizzle = 193 _mesa_combine_swizzles(swizzle, inst->Base.SrcReg[i].Swizzle);
|
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
rc_test_helpers.c | 74 struct match_info Swizzle; 114 tokens.Swizzle.String = src_str + matches[5].rm_so; 115 tokens.Swizzle.Length = match_length(matches, 5); 146 /* Swizzle */ 147 if (tokens.Swizzle.Length == 0) { 148 src_reg->Swizzle = RC_SWIZZLE_XYZW; 151 src_reg->Swizzle = RC_MAKE_SWIZZLE_SMEAR(RC_SWIZZLE_UNUSED); 152 if (tokens.Swizzle.String[0] != '.') { 153 fprintf(stderr, "First char of swizzle is not valid.\n"); 157 if (tokens.Swizzle.String[str_index] == '-') [all...] |
/external/mesa3d/src/mesa/drivers/dri/r200/ |
r200_vertprog.c | 232 static INLINE unsigned long t_swizzle(GLubyte swizzle) 235 return swizzle; 288 t_swizzle(GET_SWZ(src->Swizzle, 0)), 289 t_swizzle(GET_SWZ(src->Swizzle, 1)), 290 t_swizzle(GET_SWZ(src->Swizzle, 2)), 291 t_swizzle(GET_SWZ(src->Swizzle, 3)), 300 t_swizzle(GET_SWZ(src->Swizzle, 0)), 301 t_swizzle(GET_SWZ(src->Swizzle, 0)), 302 t_swizzle(GET_SWZ(src->Swizzle, 0)), 303 t_swizzle(GET_SWZ(src->Swizzle, 0)) [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
radeon_pair_translate.c | 46 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; 67 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; 69 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; 74 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; 137 unsigned int swz = GET_SWZ(src.Swizzle, j); 221 * want the part of the swizzle that writes to rgb, 224 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); 242 pair->RGB.Arg[i].Swizzle = 243 rc_init_swizzle(inst->SrcReg[i].Swizzle, 3); 252 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle); [all...] |
radeon_dataflow_swizzles.c | 43 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) 64 SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, RC_SWIZZLE_UNUSED); 66 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan); 81 inst->U.I.SrcReg[src].Swizzle = 0; 85 SET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan,
|
r300_fragprog_swizzle.c | 44 unsigned int hash; /**< swizzle value this matches */ 45 unsigned int base; /**< base value for hw swizzle */ 67 * Find a native RGB swizzle that matches the given swizzle. 70 static const struct swizzle_data* lookup_native_swizzle(unsigned int swizzle) 77 unsigned int swz = GET_SWZ(swizzle, comp); 91 * Determines if the given swizzle is valid for r300/r400. In most situations 95 int r300_swizzle_is_native_basic(unsigned int swizzle) 97 if(lookup_native_swizzle(swizzle)) 104 * Check whether the given instruction supports the swizzle and negat [all...] |
r500_fragprog.c | 99 if (GET_SWZ(inst_if->U.I.SrcReg[0].Swizzle, 0) == RC_SWIZZLE_X) { 115 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( 116 inst_mov->U.I.SrcReg[0].Swizzle, 120 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( 121 inst_mov->U.I.SrcReg[0].Swizzle, 175 inst_if->U.I.SrcReg[0].Swizzle = RC_MAKE_SWIZZLE( 197 if (opcode == RC_OPCODE_KIL && (reg.Swizzle != RC_SWIZZLE_XYZW || reg.Negate != RC_MASK_NONE)) 201 unsigned int swz = GET_SWZ(reg.Swizzle, i); 217 if (reg.Swizzle == RC_SWIZZLE_XYZW && !reg.Abs && !reg.Negate) 227 unsigned int swz = GET_SWZ(reg.Swizzle, i) [all...] |
radeon_program_tex.c | 41 reg.Swizzle = combine_swizzles(RC_SWIZZLE_0000, 52 reg.Swizzle = combine_swizzles(RC_SWIZZLE_1111, 96 inst_rcp->U.I.SrcReg[0].Swizzle = 97 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); 106 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; 185 inst_rcp->U.I.SrcReg[0].Swizzle = 186 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); 197 inst_mul->U.I.SrcReg[0].Swizzle = 198 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 2)); 202 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW [all...] |
radeon_compiler_util.c | 64 * @return An initialized swizzle that has all of the unused channels set to 115 /* Reorder mask bits according to swizzle. */ 116 unsigned swizzle_mask(unsigned swizzle, unsigned mask) 120 unsigned swz = GET_SWZ(swizzle, chan); 145 * @return A swizzle the results from converting old_swizzle using 203 sub->Arg[i].Swizzle = 204 rc_adjust_channels(sub->Arg[i].Swizzle, 215 src->Swizzle = rc_adjust_channels(src->Swizzle, *conversion_swizzle); 251 * This function replaces each value 'swz' in swizzle with the value o [all...] |
radeon_optimize.c | 59 combine.Negate = swizzle_mask(outer.Swizzle, inner.Negate); 62 combine.Swizzle = combine_swizzles(inner.Swizzle, outer.Swizzle); 74 rc_swizzle_to_writemask(src->Swizzle), 113 && (rc_swizzle_to_writemask(src->Swizzle) & sc_data->Mask)) { 174 * swizzle constant. 187 unsigned int swz = GET_SWZ(src.Swizzle, chan); 265 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; 278 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000 [all...] |
radeon_compiler.c | 152 inst->U.I.SrcReg[i].Swizzle = combine_swizzles(new_input.Swizzle, inst->U.I.SrcReg[i].Swizzle); 217 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; 226 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; 257 inst_rcp->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_WWWW; 271 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; 283 inst_mad->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZ0; 286 inst_mad->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XYZ0; 289 inst_mad->U.I.SrcReg[2].Swizzle = RC_SWIZZLE_XYZ0 [all...] |
radeon_program.c | 177 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; 178 inst->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XYZW; 179 inst->U.I.SrcReg[2].Swizzle = RC_SWIZZLE_XYZW;
|
radeon_vert_fc.c | 22 src->Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED, RC_SWIZZLE_UNUSED, 109 new_inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; 129 new_inst->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_0000; 143 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; 198 swz = rc_get_scalar_src_swz(inst->U.I.SrcReg[1].Swizzle); 201 inst->U.I.SrcReg[1].Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED,
|
r3xx_vertprog.c | 39 * Take an already-setup and valid source then swizzle it appropriately to 116 static inline unsigned long t_swizzle(unsigned int swizzle) 119 return swizzle; 147 t_swizzle(GET_SWZ(src->Swizzle, 0)), 148 t_swizzle(GET_SWZ(src->Swizzle, 1)), 149 t_swizzle(GET_SWZ(src->Swizzle, 2)), 150 t_swizzle(GET_SWZ(src->Swizzle, 3)), 162 unsigned int swz = rc_get_scalar_src_swz(src->Swizzle); 247 inst[1] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 0)), // X 248 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // [all...] |
radeon_inline_literals.c | 100 swz = GET_SWZ(src_reg->Swizzle, chan); 136 src_reg->Swizzle = new_swizzle;
|
radeon_program.h | 48 unsigned int Swizzle:12; 117 /**R500 Only. How to swizzle the result of a TEX lookup*/
|
radeon_program_pair.h | 66 unsigned int Swizzle:12;
|
radeon_emulate_loops.c | 94 !(1 << GET_SWZ(value->Src->Swizzle, 0) & mask)){ 107 inst->U.I.SrcReg[0].Swizzle, 142 inst->U.I.SrcReg[0].Swizzle == count_inst->Swz){ 146 inst->U.I.SrcReg[1].Swizzle == count_inst->Swz){ 158 inst->U.I.SrcReg[amnt_src_index].Swizzle, 231 count_inst.Swz = counter->Swizzle; 279 limit_value = rc_get_constant_value(c, limit->Index, limit->Swizzle,
|
/external/mesa3d/src/gallium/drivers/r300/ |
r300_tgsi_to_rc.c | 210 dst->Swizzle = tgsi_util_get_full_src_register_swizzle(src, 0); 211 dst->Swizzle |= tgsi_util_get_full_src_register_swizzle(src, 1) << 3; 212 dst->Swizzle |= tgsi_util_get_full_src_register_swizzle(src, 2) << 6; 213 dst->Swizzle |= tgsi_util_get_full_src_register_swizzle(src, 3) << 9; 222 dst->Swizzle = 0; 224 dst->Swizzle |= GET_SWZ(ttr->imms_to_swizzle[i].swizzle, 301 unsigned swizzle = 0; local 307 swizzle |= RC_SWIZZLE_ZERO << (i * 3); 309 swizzle |= RC_SWIZZLE_HALF << (i * 3) [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_mesa_to_tgsi.c | 354 GET_SWZ( SrcReg->Swizzle, 0 ) & 0x3, 355 GET_SWZ( SrcReg->Swizzle, 1 ) & 0x3, 356 GET_SWZ( SrcReg->Swizzle, 2 ) & 0x3, 357 GET_SWZ( SrcReg->Swizzle, 3 ) & 0x3); 407 unsigned one_mask = ((GET_SWZ(SrcReg->Swizzle, 0) == SWIZZLE_ONE) << 0 | 408 (GET_SWZ(SrcReg->Swizzle, 1) == SWIZZLE_ONE) << 1 | 409 (GET_SWZ(SrcReg->Swizzle, 2) == SWIZZLE_ONE) << 2 | 410 (GET_SWZ(SrcReg->Swizzle, 3) == SWIZZLE_ONE) << 3); 412 unsigned zero_mask = ((GET_SWZ(SrcReg->Swizzle, 0) == SWIZZLE_ZERO) << 0 | 413 (GET_SWZ(SrcReg->Swizzle, 1) == SWIZZLE_ZERO) << 1 [all...] |