Searched refs:Swizzle (Results 1 - 25 of 154) sorted by relevance

1234567

/xsrc/external/mit/MesaLib.old/src/mesa/
H A Dformat_info.h45 .Swizzle = { 4, 4, 4, 5 },
59 .Swizzle = { 3, 2, 1, 0 },
73 .Swizzle = { 3, 2, 1, 5 },
87 .Swizzle = { 0, 1, 2, 3 },
101 .Swizzle = { 0, 1, 2, 5 },
115 .Swizzle = { 2, 1, 0, 3 },
129 .Swizzle = { 2, 1, 0, 5 },
143 .Swizzle = { 1, 2, 3, 0 },
157 .Swizzle = { 1, 2, 3, 5 },
171 .Swizzle
[all...]
/xsrc/external/mit/MesaLib/src/mesa/
H A Dformat_info.h45 .Swizzle = { 4, 4, 4, 5 },
59 .Swizzle = { 3, 2, 1, 0 },
73 .Swizzle = { 3, 2, 1, 5 },
87 .Swizzle = { 0, 1, 2, 3 },
101 .Swizzle = { 0, 1, 2, 5 },
115 .Swizzle = { 2, 1, 0, 3 },
129 .Swizzle = { 2, 1, 0, 5 },
143 .Swizzle = { 1, 2, 3, 0 },
157 .Swizzle = { 1, 2, 3, 5 },
171 .Swizzle
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/program/
H A Dprog_opt_constant_fold.c59 src.Swizzle = swiz;
74 src.Swizzle = swiz;
84 && (a->Swizzle == b->Swizzle)
97 data[0] = value[GET_SWZ(r->Swizzle, 0)].f;
98 data[1] = value[GET_SWZ(r->Swizzle, 1)].f;
99 data[2] = value[GET_SWZ(r->Swizzle, 2)].f;
100 data[3] = value[GET_SWZ(r->Swizzle, 3)].f;
153 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP;
183 inst->SrcReg[1].Swizzle
[all...]
H A Dprogramopt.c95 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
[all...]
H A Dprog_instruction.c47 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);
/xsrc/external/mit/MesaLib/dist/src/mesa/program/
H A Dprog_opt_constant_fold.c59 src.Swizzle = swiz;
74 src.Swizzle = swiz;
84 && (a->Swizzle == b->Swizzle)
97 data[0] = value[GET_SWZ(r->Swizzle, 0)].f;
98 data[1] = value[GET_SWZ(r->Swizzle, 1)].f;
99 data[2] = value[GET_SWZ(r->Swizzle, 2)].f;
100 data[3] = value[GET_SWZ(r->Swizzle, 3)].f;
153 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP;
183 inst->SrcReg[1].Swizzle
[all...]
H A Dprogramopt.c95 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
[all...]
H A Dprog_instruction.c49 inst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP;
51 inst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP;
53 inst[i].SrcReg[2].Swizzle = SWIZZLE_NOOP;
230 GLuint swizzle = GET_SWZ(inst->SrcReg[i].Swizzle, chan);
/xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/r200/
H A Dr200_vertprog.c286 t_swizzle(GET_SWZ(src->Swizzle, 0)),
287 t_swizzle(GET_SWZ(src->Swizzle, 1)),
288 t_swizzle(GET_SWZ(src->Swizzle, 2)),
289 t_swizzle(GET_SWZ(src->Swizzle, 3)),
298 t_swizzle(GET_SWZ(src->Swizzle, 0)),
299 t_swizzle(GET_SWZ(src->Swizzle, 0)),
300 t_swizzle(GET_SWZ(src->Swizzle, 0)),
301 t_swizzle(GET_SWZ(src->Swizzle, 0)),
606 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) {
607 src[i].Swizzle
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/
H A Dr200_vertprog.c286 t_swizzle(GET_SWZ(src->Swizzle, 0)),
287 t_swizzle(GET_SWZ(src->Swizzle, 1)),
288 t_swizzle(GET_SWZ(src->Swizzle, 2)),
289 t_swizzle(GET_SWZ(src->Swizzle, 3)),
298 t_swizzle(GET_SWZ(src->Swizzle, 0)),
299 t_swizzle(GET_SWZ(src->Swizzle, 0)),
300 t_swizzle(GET_SWZ(src->Swizzle, 0)),
301 t_swizzle(GET_SWZ(src->Swizzle, 0)),
606 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) {
607 src[i].Swizzle
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/
H A Dradeon_dataflow_swizzles.c49 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;
135 unsigned chan_swz = GET_SWZ(reg->Swizzle, chan);
156 /* Swizzle .W. is never legal. */
327 swz3 = GET_SWZ(reg->Swizzle,
[all...]
H A Dradeon_pair_translate.c46 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);
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);
254 swz = GET_SWZ(inst->SrcReg[i].Swizzle,
[all...]
H A Dr300_fragprog_swizzle.c123 unsigned int swz = GET_SWZ(reg.Swizzle, j);
136 if (GET_SWZ(reg.Swizzle, j) != RC_SWIZZLE_UNUSED)
142 sd = lookup_native_swizzle(reg.Swizzle);
169 swz = GET_SWZ(src.Swizzle, comp);
H A Dr500_fragprog.c99 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,
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/
H A Dradeon_dataflow_swizzles.c49 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;
135 unsigned chan_swz = GET_SWZ(reg->Swizzle, chan);
156 /* Swizzle .W. is never legal. */
327 swz3 = GET_SWZ(reg->Swizzle,
[all...]
H A Dradeon_pair_translate.c48 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111;
69 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111;
71 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000;
76 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000;
139 unsigned int swz = GET_SWZ(src.Swizzle, j);
226 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j);
244 pair->RGB.Arg[i].Swizzle =
245 rc_init_swizzle(inst->SrcReg[i].Swizzle, 3);
254 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle);
256 swz = GET_SWZ(inst->SrcReg[i].Swizzle,
[all...]
H A Dr300_fragprog_swizzle.c123 unsigned int swz = GET_SWZ(reg.Swizzle, j);
136 if (GET_SWZ(reg.Swizzle, j) != RC_SWIZZLE_UNUSED)
142 sd = lookup_native_swizzle(reg.Swizzle);
169 swz = GET_SWZ(src.Swizzle, comp);
H A Dr500_fragprog.c100 if (GET_SWZ(inst_if->U.I.SrcReg[0].Swizzle, 0) == RC_SWIZZLE_X) {
116 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4(
117 inst_mov->U.I.SrcReg[0].Swizzle,
121 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4(
122 inst_mov->U.I.SrcReg[0].Swizzle,
176 inst_if->U.I.SrcReg[0].Swizzle = RC_MAKE_SWIZZLE(
198 if (opcode == RC_OPCODE_KIL && (reg.Swizzle != RC_SWIZZLE_XYZW || reg.Negate != RC_MASK_NONE))
202 unsigned int swz = GET_SWZ(reg.Swizzle, i);
218 if (reg.Swizzle == RC_SWIZZLE_XYZW && !reg.Abs && !reg.Negate)
226 unsigned int swz = GET_SWZ(reg.Swizzle,
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
H A Dformat_parser.py109 class Swizzle: class in inherits:
112 A Swizzle is a mapping from one set of channels in one format to the
124 Sometimes a Swizzle is represented by a 4-character string. In this
146 """Creates a Swizzle object from a string or array."""
148 swizzle = [Swizzle.__identity_str.index(c) for c in swizzle]
152 assert isinstance(s, int) and 0 <= s and s <= Swizzle.SWIZZLE_NONE
156 self.__list = swizzle + [Swizzle.SWIZZLE_NONE] * (4 - len(swizzle))
160 """Returns an iterator that iterates over this Swizzle.
168 """Returns a string representation of this Swizzle."""
169 return ''.join(Swizzle
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/main/
H A Dformat_parser.py109 class Swizzle: class in inherits:
112 A Swizzle is a mapping from one set of channels in one format to the
124 Sometimes a Swizzle is represented by a 4-character string. In this
146 """Creates a Swizzle object from a string or array."""
148 swizzle = [Swizzle.__identity_str.index(c) for c in swizzle]
152 assert isinstance(s, int) and 0 <= s and s <= Swizzle.SWIZZLE_NONE
156 self.__list = swizzle + [Swizzle.SWIZZLE_NONE] * (4 - len(swizzle))
160 """Returns an iterator that iterates over this Swizzle.
168 """Returns a string representation of this Swizzle."""
169 return ''.join(Swizzle
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/
H A Dsfn_shader_tcs.cpp100 const GPRVector::Swizzle& swizzle = (instr->src[0].ssa->num_components == 4) ?
101 GPRVector::Swizzle({0, 1, 2, 3}) : GPRVector::Swizzle({0, 1, 7, 7});
H A Dsfn_emitinstruction.h65 GPRVector get_temp_vec4(const GPRVector::Swizzle& swizzle = {0,1,2,3});
76 const GPRVector::Swizzle& swizzle, bool match = false);
H A Dsfn_value_gpr.h77 using Swizzle = std::array<uint32_t,4>; typedef in class:r600::GPRVector
90 void swizzle(const Swizzle& swz);
189 inline GPRVector::Swizzle swizzle_from_comps(unsigned ncomp)
191 GPRVector::Swizzle swz = {0,1,2,3};
197 inline GPRVector::Swizzle swizzle_from_mask(unsigned mask)
199 GPRVector::Swizzle swz;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/tests/
H A Drc_test_helpers.c120 struct match_info Swizzle; member in struct:src_tokens
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] != '.') {
202 for (i = 0; i < 4 && str_index < tokens.Swizzle.Length;
204 if (tokens.Swizzle
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/
H A Drc_test_helpers.c120 struct match_info Swizzle; member in struct:src_tokens
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] != '.') {
202 for (i = 0; i < 4 && str_index < tokens.Swizzle.Length;
204 if (tokens.Swizzle
[all...]

Completed in 14 milliseconds

1234567