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

1 23 4 5

  /external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/
radeon_pair_dead_sources.c 26 unsigned int src_type = rc_source_type_swz(sub->Arg[i].Swizzle);
radeon_program_pair.c 138 /* swz > 3 means that the swizzle is either not used, or a constant
139 * swizzle (e.g. 0, 1, 0.5). */
179 GET_SWZ(pair->Alpha.Arg[i].Swizzle, 0),
195 /* Find a swizzle that is either X,Y,Z,or W. We assume here
197 * other channels swizzle W, and vice-versa. */
199 swz = GET_SWZ(pair->RGB.Arg[i].Swizzle, chan);
216 type = rc_source_type_swz(arg->Swizzle);
radeon_variable.c 78 reader->U.I.Src->Swizzle = rc_rewrite_swizzle(
79 reader->U.I.Src->Swizzle, conversion_swizzle);
84 reader->U.P.Arg->Swizzle);
134 reader->U.P.Arg->Swizzle = rc_rewrite_swizzle(
135 reader->U.P.Arg->Swizzle, conversion_swizzle);
radeon_program_alu.c 111 .Swizzle = RC_SWIZZLE_0000
116 .Swizzle = RC_SWIZZLE_1111
122 .Swizzle = RC_SWIZZLE_HHHH
128 .Swizzle = RC_SWIZZLE_XYZW
144 src.Swizzle = swz;
163 static struct rc_src_register swizzle(struct rc_src_register reg, function
167 swizzled.Swizzle = combine_swizzles4(reg.Swizzle, x, y, z, w);
174 return swizzle(reg, x, x, x, x);
281 src0.Swizzle &= ~(63 << (3 * 2))
    [all...]
radeon_program_print.c 186 static void rc_print_swizzle(FILE * f, unsigned int swizzle, unsigned int negate)
190 rc_swizzle swz = GET_SWZ(swizzle, comp);
250 if (src.Swizzle != RC_SWIZZLE_XYZW || !trivial_negate) {
252 rc_print_swizzle(f, src.Swizzle, trivial_negate ? 0 : src.Negate);
413 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 0)),
414 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 1)),
415 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 2)),
448 rc_swizzle_char(GET_SWZ(inst->Alpha.Arg[arg].Swizzle, 0)), abs);
radeon_pair_schedule.c 577 if (!(rc_source_type_swz(dst_full->RGB.Arg[arg].Swizzle)
635 if (GET_SWZ(alpha->Alpha.Arg[arg].Swizzle, 0) < 3) {
639 } else if (GET_SWZ(alpha->Alpha.Arg[arg].Swizzle, 0) < 4) {
650 rgb->Alpha.Arg[arg].Swizzle = alpha->Alpha.Arg[arg].Swizzle;
770 if (get_swz(arg->Swizzle, i) == old_swz) {
771 SET_SWZ(arg->Swizzle, i, RC_SWIZZLE_W);
847 rc_swizzle swz = get_swz(arg->Swizzle, i);
911 * register and just change the swizzle then it is more likely we
954 unsigned int swz = get_swz(pair_inst->Alpha.Arg[i].Swizzle, j)
    [all...]
radeon_dataflow.c 49 refmask |= 1 << GET_SWZ(src->Swizzle, chan);
112 GET_SWZ(inst->RGB.Arg[arg].Swizzle, chan);
114 GET_SWZ(inst->Alpha.Arg[arg].Swizzle, chan);
144 src_type = rc_source_type_swz(sub->Arg[i].Swizzle);
520 unsigned int swizzle)
529 shared_mask = rc_src_reads_dst_mask(file, index, swizzle,
538 read_mask = rc_swizzle_to_writemask(swizzle);
569 src->File, src->Index, arg->Swizzle);
596 src->RelAddr, src->File, src->Index, src->Swizzle);
r500_fragprog_emit.c 167 t |= fix_hw_swizzle(GET_SWZ(inst->RGB.Arg[arg].Swizzle, comp)) << (3*comp + 2);
175 t |= fix_hw_swizzle(GET_SWZ(inst->Alpha.Arg[i].Swizzle, 0)) << 2;
359 static unsigned int translate_strq_swizzle(unsigned int swizzle)
364 swiz |= (GET_SWZ(swizzle, i) & 0x3) << i*2;
420 | (translate_strq_swizzle(inst->SrcReg[0].Swizzle) << 8)
435 (translate_strq_swizzle(inst->SrcReg[1].Swizzle) << 8) |
437 (translate_strq_swizzle(inst->SrcReg[2].Swizzle) << 24);
  /external/mesa3d/src/gallium/drivers/r300/compiler/
radeon_pair_dead_sources.c 26 unsigned int src_type = rc_source_type_swz(sub->Arg[i].Swizzle);
radeon_program_pair.c 138 /* swz > 3 means that the swizzle is either not used, or a constant
139 * swizzle (e.g. 0, 1, 0.5). */
179 GET_SWZ(pair->Alpha.Arg[i].Swizzle, 0),
195 /* Find a swizzle that is either X,Y,Z,or W. We assume here
197 * other channels swizzle W, and vice-versa. */
199 swz = GET_SWZ(pair->RGB.Arg[i].Swizzle, chan);
216 type = rc_source_type_swz(arg->Swizzle);
radeon_variable.c 78 reader->U.I.Src->Swizzle = rc_rewrite_swizzle(
79 reader->U.I.Src->Swizzle, conversion_swizzle);
84 reader->U.P.Arg->Swizzle);
134 reader->U.P.Arg->Swizzle = rc_rewrite_swizzle(
135 reader->U.P.Arg->Swizzle, conversion_swizzle);
radeon_program_alu.c 111 .Swizzle = RC_SWIZZLE_0000
116 .Swizzle = RC_SWIZZLE_1111
122 .Swizzle = RC_SWIZZLE_HHHH
128 .Swizzle = RC_SWIZZLE_XYZW
144 src.Swizzle = swz;
163 static struct rc_src_register swizzle(struct rc_src_register reg, function
167 swizzled.Swizzle = combine_swizzles4(reg.Swizzle, x, y, z, w);
174 return swizzle(reg, x, x, x, x);
281 src0.Swizzle &= ~(63 << (3 * 2))
    [all...]
radeon_program_print.c 186 static void rc_print_swizzle(FILE * f, unsigned int swizzle, unsigned int negate)
190 rc_swizzle swz = GET_SWZ(swizzle, comp);
250 if (src.Swizzle != RC_SWIZZLE_XYZW || !trivial_negate) {
252 rc_print_swizzle(f, src.Swizzle, trivial_negate ? 0 : src.Negate);
413 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 0)),
414 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 1)),
415 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 2)),
448 rc_swizzle_char(GET_SWZ(inst->Alpha.Arg[arg].Swizzle, 0)), abs);
radeon_pair_schedule.c 577 if (!(rc_source_type_swz(dst_full->RGB.Arg[arg].Swizzle)
635 if (GET_SWZ(alpha->Alpha.Arg[arg].Swizzle, 0) < 3) {
639 } else if (GET_SWZ(alpha->Alpha.Arg[arg].Swizzle, 0) < 4) {
650 rgb->Alpha.Arg[arg].Swizzle = alpha->Alpha.Arg[arg].Swizzle;
770 if (get_swz(arg->Swizzle, i) == old_swz) {
771 SET_SWZ(arg->Swizzle, i, RC_SWIZZLE_W);
847 rc_swizzle swz = get_swz(arg->Swizzle, i);
911 * register and just change the swizzle then it is more likely we
954 unsigned int swz = get_swz(pair_inst->Alpha.Arg[i].Swizzle, j)
    [all...]
radeon_dataflow.c 49 refmask |= 1 << GET_SWZ(src->Swizzle, chan);
112 GET_SWZ(inst->RGB.Arg[arg].Swizzle, chan);
114 GET_SWZ(inst->Alpha.Arg[arg].Swizzle, chan);
144 src_type = rc_source_type_swz(sub->Arg[i].Swizzle);
520 unsigned int swizzle)
529 shared_mask = rc_src_reads_dst_mask(file, index, swizzle,
538 read_mask = rc_swizzle_to_writemask(swizzle);
569 src->File, src->Index, arg->Swizzle);
596 src->RelAddr, src->File, src->Index, src->Swizzle);
r500_fragprog_emit.c 167 t |= fix_hw_swizzle(GET_SWZ(inst->RGB.Arg[arg].Swizzle, comp)) << (3*comp + 2);
175 t |= fix_hw_swizzle(GET_SWZ(inst->Alpha.Arg[i].Swizzle, 0)) << 2;
359 static unsigned int translate_strq_swizzle(unsigned int swizzle)
364 swiz |= (GET_SWZ(swizzle, i) & 0x3) << i*2;
420 | (translate_strq_swizzle(inst->SrcReg[0].Swizzle) << 8)
435 (translate_strq_swizzle(inst->SrcReg[1].Swizzle) << 8) |
437 (translate_strq_swizzle(inst->SrcReg[2].Swizzle) << 24);
  /external/chromium_org/third_party/mesa/src/src/mesa/program/
prog_execute.c 229 if (source->Swizzle == SWIZZLE_NOOP) {
234 ASSERT(GET_SWZ(source->Swizzle, 0) <= 3);
235 ASSERT(GET_SWZ(source->Swizzle, 1) <= 3);
236 ASSERT(GET_SWZ(source->Swizzle, 2) <= 3);
237 ASSERT(GET_SWZ(source->Swizzle, 3) <= 3);
238 result[0] = src[GET_SWZ(source->Swizzle, 0)];
239 result[1] = src[GET_SWZ(source->Swizzle, 1)];
240 result[2] = src[GET_SWZ(source->Swizzle, 2)];
241 result[3] = src[GET_SWZ(source->Swizzle, 3)];
278 if (source->Swizzle == SWIZZLE_NOOP)
458 const GLuint swizzle = inst->DstReg.CondSwizzle; local
    [all...]
nvfragparse.c 624 * Parse a scalar suffix like .x, .y, .z or .w or parse a swizzle suffix
625 * like .wxyz, .xxyy, etc and return the swizzle indexes.
628 Parse_SwizzleSuffix(const GLubyte *token, GLuint swizzle[4])
631 /* single letter swizzle (scalar) */
633 ASSIGN_4V(swizzle, 0, 0, 0, 0);
635 ASSIGN_4V(swizzle, 1, 1, 1, 1);
637 ASSIGN_4V(swizzle, 2, 2, 2, 2);
639 ASSIGN_4V(swizzle, 3, 3, 3, 3);
644 /* 4-component swizzle (vector) */
648 swizzle[k] = 0
    [all...]
program_parse.y 79 gl_register_file file, GLint index, GLuint swizzle);
193 %token <swiz_mask> MASK4 MASK3 MASK2 MASK1 SWIZZLE
543 * FIXME: to the existing swizzle?
545 $4.Base.Swizzle = $6.swizzle;
581 $$.Base.Swizzle = _mesa_combine_swizzles($$.Base.Swizzle,
582 $2.swizzle);
611 $$.Base.Swizzle = _mesa_combine_swizzles($$.Base.Swizzle,
    [all...]
  /external/mesa3d/src/mesa/program/
prog_execute.c 229 if (source->Swizzle == SWIZZLE_NOOP) {
234 ASSERT(GET_SWZ(source->Swizzle, 0) <= 3);
235 ASSERT(GET_SWZ(source->Swizzle, 1) <= 3);
236 ASSERT(GET_SWZ(source->Swizzle, 2) <= 3);
237 ASSERT(GET_SWZ(source->Swizzle, 3) <= 3);
238 result[0] = src[GET_SWZ(source->Swizzle, 0)];
239 result[1] = src[GET_SWZ(source->Swizzle, 1)];
240 result[2] = src[GET_SWZ(source->Swizzle, 2)];
241 result[3] = src[GET_SWZ(source->Swizzle, 3)];
278 if (source->Swizzle == SWIZZLE_NOOP)
458 const GLuint swizzle = inst->DstReg.CondSwizzle; local
    [all...]
nvfragparse.c 624 * Parse a scalar suffix like .x, .y, .z or .w or parse a swizzle suffix
625 * like .wxyz, .xxyy, etc and return the swizzle indexes.
628 Parse_SwizzleSuffix(const GLubyte *token, GLuint swizzle[4])
631 /* single letter swizzle (scalar) */
633 ASSIGN_4V(swizzle, 0, 0, 0, 0);
635 ASSIGN_4V(swizzle, 1, 1, 1, 1);
637 ASSIGN_4V(swizzle, 2, 2, 2, 2);
639 ASSIGN_4V(swizzle, 3, 3, 3, 3);
644 /* 4-component swizzle (vector) */
648 swizzle[k] = 0
    [all...]
program_parse.y 79 gl_register_file file, GLint index, GLuint swizzle);
193 %token <swiz_mask> MASK4 MASK3 MASK2 MASK1 SWIZZLE
543 * FIXME: to the existing swizzle?
545 $4.Base.Swizzle = $6.swizzle;
581 $$.Base.Swizzle = _mesa_combine_swizzles($$.Base.Swizzle,
582 $2.swizzle);
611 $$.Base.Swizzle = _mesa_combine_swizzles($$.Base.Swizzle,
    [all...]
  /external/llvm/lib/Target/R600/
R600OptimizeVectorRegisters.cpp 12 /// common data and/or have enough undef subreg using swizzle abilities.
192 unsigned Swizzle = (*It).second;
193 unsigned Chan = getReassignedChan(RemapChan, Swizzle);
216 DEBUG(dbgs() << " Updating Swizzle:\n");
254 unsigned Swizzle = MI.getOperand(i + Offset).getImm() + 1;
256 if (RemapChan[j].first == Swizzle) {
  /external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
brw_wm_fp.c 87 reg.Swizzle = SWIZZLE_NOOP;
114 reg.Swizzle = MAKE_SWIZZLE4(x,y,z,w);
123 static struct prog_src_register src_swizzle4( struct prog_src_register reg, uint swizzle )
125 reg.Swizzle = swizzle;
536 GLuint swizzle; local
544 idx = _mesa_add_unnamed_constant( paramList, values, 4, &swizzle );
546 reg.Swizzle = swizzle;
578 GLuint z = GET_SWZ(src0.Swizzle, Z)
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/i965/
brw_wm_fp.c 87 reg.Swizzle = SWIZZLE_NOOP;
114 reg.Swizzle = MAKE_SWIZZLE4(x,y,z,w);
123 static struct prog_src_register src_swizzle4( struct prog_src_register reg, uint swizzle )
125 reg.Swizzle = swizzle;
536 GLuint swizzle; local
544 idx = _mesa_add_unnamed_constant( paramList, values, 4, &swizzle );
546 reg.Swizzle = swizzle;
578 GLuint z = GET_SWZ(src0.Swizzle, Z)
    [all...]

Completed in 572 milliseconds

1 23 4 5