HomeSort by relevance Sort by last modified time
    Searched refs:Swizzle (Results 1 - 25 of 117) sorted by null

1 2 3 4 5

  /external/chromium_org/third_party/mesa/src/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...]
  /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...]
  /external/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/mesa/src/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...]
  /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...]

Completed in 260 milliseconds

1 2 3 4 5