Searched refs:swiz (Results 1 - 25 of 40) sorted by relevance

12

/external/chromium_org/third_party/mesa/src/src/glsl/
H A Dopt_noop_swizzle.cpp59 ir_swizzle *swiz = (*rvalue)->as_swizzle();
60 if (!swiz || swiz->type != swiz->val->type)
63 int elems = swiz->val->type->vector_elements;
64 if (swiz->mask.x != 0)
66 if (elems >= 2 && swiz->mask.y != 1)
68 if (elems >= 3 && swiz->mask.z != 2)
70 if (elems >= 4 && swiz->mask.w != 3)
74 *rvalue = swiz
[all...]
H A Dhir_field_selection.cpp51 ir_swizzle *swiz = ir_swizzle::create(op, local
54 if (swiz != NULL) {
55 result = swiz;
H A Dopt_constant_propagation.cpp144 ir_swizzle *swiz = NULL;
147 swiz = (*rvalue)->as_swizzle();
148 if (!swiz)
151 deref = swiz->val->as_dereference_variable();
163 if (swiz) {
165 case 0: channel = swiz->mask.x; break;
166 case 1: channel = swiz->mask.y; break;
167 case 2: channel = swiz->mask.z; break;
168 case 3: channel = swiz->mask.w; break;
H A Dopt_copy_propagation_elements.cpp445 ir_swizzle *swiz = ir->rhs->as_swizzle(); local
446 if (!swiz)
449 rhs = swiz->val->as_dereference_variable();
453 orig_swizzle[0] = swiz->mask.x;
454 orig_swizzle[1] = swiz->mask.y;
455 orig_swizzle[2] = swiz->mask.z;
456 orig_swizzle[3] = swiz->mask.w;
H A Dir.cpp82 ir_swizzle *swiz = lhs->as_swizzle(); local
84 if (swiz == NULL)
90 for (unsigned i = 0; i < swiz->mask.num_components; i++) {
94 case 0: c = swiz->mask.x; break;
95 case 1: c = swiz->mask.y; break;
96 case 2: c = swiz->mask.z; break;
97 case 3: c = swiz->mask.w; break;
106 lhs = swiz->val;
H A Dir_reader.cpp525 else if (strcmp(tag->value(), "swiz") == 0) {
730 s_symbol *swiz; local
733 s_pattern pat[] = { "swiz", swiz, sub };
735 ir_read_error(expr, "expected (swiz <swizzle> <rvalue>)");
739 if (strlen(swiz->value()) > 4) {
740 ir_read_error(expr, "expected a valid swizzle; found %s", swiz->value());
748 ir_swizzle *ir = ir_swizzle::create(rvalue, swiz->value(),
/external/mesa3d/src/glsl/
H A Dopt_noop_swizzle.cpp59 ir_swizzle *swiz = (*rvalue)->as_swizzle();
60 if (!swiz || swiz->type != swiz->val->type)
63 int elems = swiz->val->type->vector_elements;
64 if (swiz->mask.x != 0)
66 if (elems >= 2 && swiz->mask.y != 1)
68 if (elems >= 3 && swiz->mask.z != 2)
70 if (elems >= 4 && swiz->mask.w != 3)
74 *rvalue = swiz
[all...]
H A Dhir_field_selection.cpp51 ir_swizzle *swiz = ir_swizzle::create(op, local
54 if (swiz != NULL) {
55 result = swiz;
H A Dopt_constant_propagation.cpp144 ir_swizzle *swiz = NULL;
147 swiz = (*rvalue)->as_swizzle();
148 if (!swiz)
151 deref = swiz->val->as_dereference_variable();
163 if (swiz) {
165 case 0: channel = swiz->mask.x; break;
166 case 1: channel = swiz->mask.y; break;
167 case 2: channel = swiz->mask.z; break;
168 case 3: channel = swiz->mask.w; break;
H A Dopt_copy_propagation_elements.cpp445 ir_swizzle *swiz = ir->rhs->as_swizzle(); local
446 if (!swiz)
449 rhs = swiz->val->as_dereference_variable();
453 orig_swizzle[0] = swiz->mask.x;
454 orig_swizzle[1] = swiz->mask.y;
455 orig_swizzle[2] = swiz->mask.z;
456 orig_swizzle[3] = swiz->mask.w;
H A Dir.cpp82 ir_swizzle *swiz = lhs->as_swizzle(); local
84 if (swiz == NULL)
90 for (unsigned i = 0; i < swiz->mask.num_components; i++) {
94 case 0: c = swiz->mask.x; break;
95 case 1: c = swiz->mask.y; break;
96 case 2: c = swiz->mask.z; break;
97 case 3: c = swiz->mask.w; break;
106 lhs = swiz->val;
H A Dir_reader.cpp525 else if (strcmp(tag->value(), "swiz") == 0) {
730 s_symbol *swiz; local
733 s_pattern pat[] = { "swiz", swiz, sub };
735 ir_read_error(expr, "expected (swiz <swizzle> <rvalue>)");
739 if (strlen(swiz->value()) > 4) {
740 ir_read_error(expr, "expected a valid swizzle; found %s", swiz->value());
748 ir_swizzle *ir = ir_swizzle::create(rvalue, swiz->value(),
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/
H A Dst_atom_texture.c66 unsigned char swiz[4]; local
76 swiz[i] = GET_SWZ(swizzle, i);
82 if (swiz[i] == SWIZZLE_W)
83 swiz[i] = SWIZZLE_ONE;
84 else if (swiz[i] < SWIZZLE_W)
85 swiz[i] = SWIZZLE_X;
91 if (swiz[i] <= SWIZZLE_W)
92 swiz[i] = SWIZZLE_X;
98 if (swiz[i] == SWIZZLE_W)
99 swiz[
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_texture.c66 unsigned char swiz[4]; local
76 swiz[i] = GET_SWZ(swizzle, i);
82 if (swiz[i] == SWIZZLE_W)
83 swiz[i] = SWIZZLE_ONE;
84 else if (swiz[i] < SWIZZLE_W)
85 swiz[i] = SWIZZLE_X;
91 if (swiz[i] <= SWIZZLE_W)
92 swiz[i] = SWIZZLE_X;
98 if (swiz[i] == SWIZZLE_W)
99 swiz[
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
H A Dbrw_fs_vector_splitting.cpp241 ir_swizzle *swiz = (*rvalue)->as_swizzle();
242 if (!swiz || !swiz->type->is_scalar())
245 ir_dereference_variable *deref_var = swiz->val->as_dereference_variable();
253 ir_variable *var = entry->components[swiz->mask.x];
H A Dbrw_eu.h56 static inline bool brw_is_single_value_swizzle(int swiz) argument
58 return (swiz == BRW_SWIZZLE_XXXX ||
59 swiz == BRW_SWIZZLE_YYYY ||
60 swiz == BRW_SWIZZLE_ZZZZ ||
61 swiz == BRW_SWIZZLE_WWWW);
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_fs_vector_splitting.cpp241 ir_swizzle *swiz = (*rvalue)->as_swizzle();
242 if (!swiz || !swiz->type->is_scalar())
245 ir_dereference_variable *deref_var = swiz->val->as_dereference_variable();
253 ir_variable *var = entry->components[swiz->mask.x];
/external/skia/src/gpu/effects/
H A DGrConfigConversionEffect.cpp39 const char* swiz = fSwapRedAndBlue ? "bgr" : "rgb"; variable
44 outputColor, outputColor, swiz, outputColor, outputColor);
53 outputColor, outputColor, swiz, outputColor, outputColor);
57 outputColor, outputColor, outputColor, swiz, outputColor, outputColor);
61 outputColor, outputColor, outputColor, swiz, outputColor, outputColor);
/external/chromium_org/third_party/mesa/src/src/mesa/program/
H A Dprog_parameter_layout.c41 unsigned swiz = 0; local
47 swiz |= ((s <= SWIZZLE_W) ? GET_SWZ(base, s) : s) << (i * 3);
50 return swiz;
H A Dprog_opt_constant_fold.c50 unsigned swiz; local
56 (gl_constant_value *) &val, 1, &swiz);
57 src.Swizzle = swiz;
65 unsigned swiz; local
71 (gl_constant_value *) val, 4, &swiz);
72 src.Swizzle = swiz;
/external/mesa3d/src/mesa/program/
H A Dprog_parameter_layout.c41 unsigned swiz = 0; local
47 swiz |= ((s <= SWIZZLE_W) ? GET_SWZ(base, s) : s) << (i * 3);
50 return swiz;
H A Dprog_opt_constant_fold.c50 unsigned swiz; local
56 (gl_constant_value *) &val, 1, &swiz);
57 src.Swizzle = swiz;
65 unsigned swiz; local
71 (gl_constant_value *) val, 4, &swiz);
72 src.Swizzle = swiz;
/external/chromium_org/third_party/skia/src/gpu/effects/
H A DGrConfigConversionEffect.cpp51 const char* swiz = fSwapRedAndBlue ? "bgr" : "rgb"; variable
56 tmpVar.c_str(), tmpVar.c_str(), swiz, tmpVar.c_str(), tmpVar.c_str());
65 tmpVar.c_str(), tmpVar.c_str(), swiz, tmpVar.c_str(), tmpVar.c_str());
70 tmpVar.c_str(), tmpVar.c_str(), tmpVar.c_str(), swiz, tmpVar.c_str(), tmpVar.c_str());
75 tmpVar.c_str(), tmpVar.c_str(), tmpVar.c_str(), swiz, tmpVar.c_str(), tmpVar.c_str());
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/
H A Dr300_state_derived.c199 enum r300_rs_swizzle swiz)
202 if (swiz == SWIZ_0001) {
219 enum r300_rs_swizzle swiz)
221 if (swiz == SWIZ_X001) {
227 } else if (swiz == SWIZ_XY01) {
250 enum r300_rs_swizzle swiz)
253 if (swiz == SWIZ_0001) {
274 enum r300_rs_swizzle swiz)
276 if (swiz == SWIZ_X001) {
281 } else if (swiz
198 r300_rs_col(struct r300_rs_block* rs, int id, int ptr, enum r300_rs_swizzle swiz) argument
218 r300_rs_tex(struct r300_rs_block* rs, int id, int ptr, enum r300_rs_swizzle swiz) argument
249 r500_rs_col(struct r300_rs_block* rs, int id, int ptr, enum r300_rs_swizzle swiz) argument
273 r500_rs_tex(struct r300_rs_block* rs, int id, int ptr, enum r300_rs_swizzle swiz) argument
[all...]
/external/mesa3d/src/gallium/drivers/r300/
H A Dr300_state_derived.c199 enum r300_rs_swizzle swiz)
202 if (swiz == SWIZ_0001) {
219 enum r300_rs_swizzle swiz)
221 if (swiz == SWIZ_X001) {
227 } else if (swiz == SWIZ_XY01) {
250 enum r300_rs_swizzle swiz)
253 if (swiz == SWIZ_0001) {
274 enum r300_rs_swizzle swiz)
276 if (swiz == SWIZ_X001) {
281 } else if (swiz
198 r300_rs_col(struct r300_rs_block* rs, int id, int ptr, enum r300_rs_swizzle swiz) argument
218 r300_rs_tex(struct r300_rs_block* rs, int id, int ptr, enum r300_rs_swizzle swiz) argument
249 r500_rs_col(struct r300_rs_block* rs, int id, int ptr, enum r300_rs_swizzle swiz) argument
273 r500_rs_tex(struct r300_rs_block* rs, int id, int ptr, enum r300_rs_swizzle swiz) argument
[all...]

Completed in 319 milliseconds

12