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

1 2 3 4

  /external/mesa3d/src/mesa/program/
prog_opt_constant_fold.c 59 src.Swizzle = swiz;
74 src.Swizzle = swiz;
84 && (a->Swizzle == b->Swizzle)
96 data[0] = value[GET_SWZ(r->Swizzle, 0)].f;
97 data[1] = value[GET_SWZ(r->Swizzle, 1)].f;
98 data[2] = value[GET_SWZ(r->Swizzle, 2)].f;
99 data[3] = value[GET_SWZ(r->Swizzle, 3)].f;
152 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP;
182 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP
    [all...]
programopt.c 95 newInst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP;
98 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP;
166 newInst[0].SrcReg[0].Swizzle = SWIZZLE_XXXX;
169 newInst[0].SrcReg[1].Swizzle = SWIZZLE_NOOP;
178 newInst[i].SrcReg[0].Swizzle = MAKE_SWIZZLE4(i,i,i,i);
181 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP;
184 newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP;
193 newInst[3].SrcReg[0].Swizzle = SWIZZLE_WWWW;
196 newInst[3].SrcReg[1].Swizzle = SWIZZLE_NOOP;
199 newInst[3].SrcReg[2].Swizzle = SWIZZLE_NOOP
    [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;
228 GLuint swizzle = GET_SWZ(inst->SrcReg[i].Swizzle, chan); local
229 if (swizzle <= SWIZZLE_W &&
230 (channelsWritten & (1 << swizzle))) {
prog_optimize.c 102 /* Now, given the src swizzle and the written channels, find which
107 const GLuint coord = GET_SWZ(inst->SrcReg[arg].Swizzle, comp);
133 src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, comp);
144 * Ensure that the swizzle is regular. That is, all of the swizzle
277 const GLuint swz = GET_SWZ(inst->SrcReg[j].Swizzle, comp);
521 if (is_swizzle_regular(inst2->SrcReg[arg].Swizzle) &&
525 GET_SWZ(inst2->SrcReg[arg].Swizzle, comp);
526 const GLuint s = GET_SWZ(mov->SrcReg[0].Swizzle, inst2_swz);
527 inst2->SrcReg[arg].Swizzle &= ~(7 << (3 * comp))
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/r200/
r200_vertprog.c 226 static inline unsigned long t_swizzle(GLubyte swizzle)
229 return swizzle;
282 t_swizzle(GET_SWZ(src->Swizzle, 0)),
283 t_swizzle(GET_SWZ(src->Swizzle, 1)),
284 t_swizzle(GET_SWZ(src->Swizzle, 2)),
285 t_swizzle(GET_SWZ(src->Swizzle, 3)),
294 t_swizzle(GET_SWZ(src->Swizzle, 0)),
295 t_swizzle(GET_SWZ(src->Swizzle, 0)),
296 t_swizzle(GET_SWZ(src->Swizzle, 0)),
297 t_swizzle(GET_SWZ(src->Swizzle, 0))
    [all...]
  /external/mesa3d/src/gallium/drivers/r300/compiler/
radeon_dataflow_swizzles.c 49 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED)
70 SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, RC_SWIZZLE_UNUSED);
72 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan);
87 inst->U.I.SrcReg[src].Swizzle = 0;
91 SET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan,
115 unsigned swz = GET_SWZ(reg->Swizzle, chan);
125 new_swizzle = reg->Swizzle;
130 /* Check if all channels have the same swizzle. If they do we can skip
131 * the search for a native swizzle. We only need to check the first
132 * three channels, because any swizzle is legal in the fourth channel
    [all...]
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...]
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_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)) {
191 * swizzle constant.
204 unsigned int swz = GET_SWZ(src.Swizzle, chan);
282 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000;
295 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000
    [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.c 154 inst->U.I.SrcReg[i].Swizzle = combine_swizzles(new_input.Swizzle, inst->U.I.SrcReg[i].Swizzle);
219 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW;
228 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW;
259 inst_rcp->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_WWWW;
273 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW;
285 inst_mad->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZ0;
288 inst_mad->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XYZ0;
291 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 46 src->Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED, RC_SWIZZLE_UNUSED,
133 new_inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000;
153 new_inst->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_0000;
167 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000;
222 swz = rc_get_scalar_src_swz(inst->U.I.SrcReg[1].Swizzle);
225 inst->U.I.SrcReg[1].Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED,
radeon_emulate_loops.c 95 !(1 << GET_SWZ(value->Src->Swizzle, 0) & mask)){
108 inst->U.I.SrcReg[0].Swizzle,
143 inst->U.I.SrcReg[0].Swizzle == count_inst->Swz){
147 inst->U.I.SrcReg[1].Swizzle == count_inst->Swz){
159 inst->U.I.SrcReg[amnt_src_index].Swizzle,
232 count_inst.Swz = counter->Swizzle;
280 limit_value = rc_get_constant_value(c, limit->Index, limit->Swizzle,
391 dst->WriteMask & (rc_swizzle_to_writemask(src->Swizzle))) {
radeon_inline_literals.c 125 swz = GET_SWZ(src_reg->Swizzle, chan);
161 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;
  /external/mesa3d/src/mesa/main/
format_parser.py 104 class Swizzle:
105 """Describes a swizzle operation.
107 A Swizzle is a mapping from one set of channels in one format to the
119 Sometimes a Swizzle is represented by a 4-character string. In this
140 def __init__(self, swizzle):
141 """Creates a Swizzle object from a string or array."""
142 if isinstance(swizzle, str):
143 swizzle = [Swizzle.__identity_str.index(c) for c in swizzle]
    [all...]
  /external/mesa3d/src/gallium/drivers/r300/compiler/tests/
rc_test_helpers.c 120 struct match_info Swizzle;
160 tokens.Swizzle.String = src_str + matches[5].rm_so;
161 tokens.Swizzle.Length = match_length(matches, 5);
192 /* Swizzle */
193 if (tokens.Swizzle.Length == 0) {
194 src_reg->Swizzle = RC_SWIZZLE_XYZW;
197 src_reg->Swizzle = RC_MAKE_SWIZZLE_SMEAR(RC_SWIZZLE_UNUSED);
198 if (tokens.Swizzle.String[0] != '.') {
199 fprintf(stderr, "First char of swizzle is not valid.\n");
202 for (i = 0; i < 4 && str_index < tokens.Swizzle.Length
    [all...]
radeon_compiler_regalloc_tests.c 72 if (GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 0)
96 {"rc_pair_regalloc() => TEX 1D Swizzle - r300", tex_1d_swizzle },
  /external/mesa3d/src/gallium/drivers/r300/
r300_tgsi_to_rc.c 189 dst->Swizzle = tgsi_util_get_full_src_register_swizzle(src, 0);
190 dst->Swizzle |= tgsi_util_get_full_src_register_swizzle(src, 1) << 3;
191 dst->Swizzle |= tgsi_util_get_full_src_register_swizzle(src, 2) << 6;
192 dst->Swizzle |= tgsi_util_get_full_src_register_swizzle(src, 3) << 9;
201 dst->Swizzle = 0;
203 dst->Swizzle |= GET_SWZ(ttr->imms_to_swizzle[i].swizzle,
280 unsigned swizzle = 0; local
286 swizzle |= RC_SWIZZLE_ZERO << (i * 3);
288 swizzle |= RC_SWIZZLE_HALF << (i * 3)
    [all...]
  /external/skia/src/sksl/ir/
SkSLSwizzle.h 20 * Given a type and a swizzle component count, returns the type that will result from swizzling. For
21 * instance, swizzling a vec3 with two components will result in a vec2. It is possible to swizzle
60 ABORT("cannot swizzle %s\n", value.description().c_str());
64 * Represents a vector swizzle operation such as 'vec2(1, 2, 3).zyx'.
66 struct Swizzle : public Expression {
67 Swizzle(const Context& context, std::unique_ptr<Expression> base, std::vector<int> components)
  /external/mesa3d/src/gallium/auxiliary/tgsi/
tgsi_util.c 86 unsigned swizzle,
91 reg->SwizzleX = swizzle;
94 reg->SwizzleY = swizzle;
97 reg->SwizzleZ = swizzle;
100 reg->SwizzleW = swizzle;
362 src.SwizzleX = reg->Swizzle;
363 src.SwizzleY = reg->Swizzle;
364 src.SwizzleZ = reg->Swizzle;
365 src.SwizzleW = reg->Swizzle;

Completed in 417 milliseconds

1 2 3 4