/external/deqp/modules/gles3/functional/ |
D | es3fShaderStructTests.cpp | 212 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 239 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 265 c.color.xyz() = c.coords.swizzle(3,2,1); in init() 293 c.color.xyz() = c.coords.swizzle(1,2,0); in init() 319 c.color.xyz() = c.coords.swizzle(2,1,0); in init() 345 c.color.xyz() = c.coords.swizzle(2,1,0); in init() 409 c.color.xyz() = c.coords.swizzle(2,0,3); in init() 473 c.color.xyz() = c.coords.swizzle(2,0,3); in init() 500 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 532 c.color.xyz() = c.coords.swizzle(0,1,2); in init() [all …]
|
D | es3fShaderOperatorTests.cpp | 218 …or = sequenceNoSideEffCase0 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx… in evalSequenceNoSideEffCase0() 220 …deEffCase2 (ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceNoSideEffCase2() 221 …uenceNoSideEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceNoSideEffCase3() 222 …lor = sequenceSideEffCase0 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx… in evalSequenceSideEffCase0() 224 …eEffCase2 (ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceSideEffCase2() 225 …quenceSideEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceSideEffCase3() 758 const char* swizzle = s_inSwizzles[i][inSize-1]; in setupShaderData() local 773 op << prefix << "in" << i << "." << swizzle; in setupShaderData() 902 …void eval_##FUNC_NAME##_vec2 (ShaderEvalContext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, … 903 …void eval_##FUNC_NAME##_vec3 (ShaderEvalContext& c) { c.color.xyz() = FUNC_NAME(c.in[0].swizzle(2,… [all …]
|
D | es3fShaderIndexingTests.cpp | 102 void evalArrayCoordsVec2 (ShaderEvalContext& c) { c.color.xy() = 1.875f * c.coords.swizzle(0,1); } in evalArrayCoordsVec2() 103 void evalArrayCoordsVec3 (ShaderEvalContext& c) { c.color.xyz() = 1.875f * c.coords.swizzle(0,1,2)… in evalArrayCoordsVec3() 118 void evalArrayUniformVec2 (ShaderEvalContext& c) { c.color.xy() = 1.875f * c.constCoords.swizzle(0… in evalArrayUniformVec2() 119 void evalArrayUniformVec3 (ShaderEvalContext& c) { c.color.xyz() = 1.875f * c.constCoords.swizzle(… in evalArrayUniformVec3() 190 arr[0] = constCoords.swizzle(0,1); in setupUniforms() 191 arr[1] = constCoords.swizzle(0,1) * 0.5f; in setupUniforms() 192 arr[2] = constCoords.swizzle(0,1) * 0.25f; in setupUniforms() 193 arr[3] = constCoords.swizzle(0,1) * 0.125f; in setupUniforms() 199 arr[0] = constCoords.swizzle(0,1,2); in setupUniforms() 200 arr[1] = constCoords.swizzle(0,1,2) * 0.5f; in setupUniforms() [all …]
|
/external/deqp/modules/gles2/functional/ |
D | es2fShaderStructTests.cpp | 238 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 265 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 291 c.color.xyz() = c.coords.swizzle(3,2,1); in init() 319 c.color.xyz() = c.coords.swizzle(1,2,0); in init() 345 c.color.xyz() = c.coords.swizzle(2,1,0); in init() 371 c.color.xyz() = c.coords.swizzle(2,1,0); in init() 435 c.color.xyz() = c.coords.swizzle(2,0,3); in init() 499 c.color.xyz() = c.coords.swizzle(2,0,3); in init() 526 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 558 c.color.xyz() = c.coords.swizzle(0,1,2); in init() [all …]
|
D | es2fShaderOperatorTests.cpp | 175 …color = sequenceNoSideEffCase0(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx.… in evalSequenceNoSideEffCase0() 177 …enceNoSideEffCase2(ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceNoSideEffCase2() 178 …equenceNoSideEffCase3(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceNoSideEffCase3() 179 …x.color = sequenceSideEffCase0(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx.… in evalSequenceSideEffCase0() 181 …quenceSideEffCase2(ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceSideEffCase2() 182 … sequenceSideEffCase3(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceSideEffCase3() 479 const char* swizzle = s_inSwizzles[i][inSize-1]; in ShaderOperatorCase() local 494 op << prefix << "in" << i << "." << swizzle; in ShaderOperatorCase() 621 …void eval_##FUNC_NAME##_vec2 (ShaderEvalContext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, … 622 …void eval_##FUNC_NAME##_vec3 (ShaderEvalContext& c) { c.color.xyz() = FUNC_NAME(c.in[0].swizzle(2,… [all …]
|
/external/chromium_org/third_party/skia/src/gpu/ |
D | GrTextureAccess.cpp | 30 const char* swizzle, in GrTextureAccess() argument 32 this->reset(texture, swizzle, params); in GrTextureAccess() 36 const char* swizzle, in GrTextureAccess() argument 39 this->reset(texture, swizzle, filterMode, tileXAndY); in GrTextureAccess() 43 const char* swizzle, in reset() argument 46 SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4); in reset() 50 this->setSwizzle(swizzle); in reset() 54 const char* swizzle, in reset() argument 58 SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4); in reset() 62 this->setSwizzle(swizzle); in reset() [all …]
|
/external/skia/src/gpu/ |
D | GrTextureAccess.cpp | 30 const char* swizzle, in GrTextureAccess() argument 32 this->reset(texture, swizzle, params); in GrTextureAccess() 36 const char* swizzle, in GrTextureAccess() argument 39 this->reset(texture, swizzle, filterMode, tileXAndY); in GrTextureAccess() 43 const char* swizzle, in reset() argument 46 SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4); in reset() 50 this->setSwizzle(swizzle); in reset() 54 const char* swizzle, in reset() argument 58 SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4); in reset() 62 this->setSwizzle(swizzle); in reset() [all …]
|
/external/chromium_org/third_party/mesa/src/src/glsl/ |
D | ir_builder.cpp | 67 swizzle(operand a, int swizzle, int components) in swizzle() function 72 GET_SWZ(swizzle, 0), in swizzle() 73 GET_SWZ(swizzle, 1), in swizzle() 74 GET_SWZ(swizzle, 2), in swizzle() 75 GET_SWZ(swizzle, 3), in swizzle() 97 return swizzle(a, SWIZZLE_XXXX, 4); in swizzle_xxxx() 103 return swizzle(a, SWIZZLE_YYYY, 4); in swizzle_yyyy() 109 return swizzle(a, SWIZZLE_ZZZZ, 4); in swizzle_zzzz() 115 return swizzle(a, SWIZZLE_WWWW, 4); in swizzle_wwww() 121 return swizzle(a, SWIZZLE_XXXX, 1); in swizzle_x() [all …]
|
D | opt_copy_propagation_elements.cpp | 57 acp_entry(ir_variable *lhs, ir_variable *rhs, int write_mask, int swizzle[4]) in acp_entry() 62 memcpy(this->swizzle, swizzle, sizeof(this->swizzle)); in acp_entry() 70 memcpy(this->swizzle, a->swizzle, sizeof(this->swizzle)); in acp_entry() 76 int swizzle[4]; member in __anon3ed9f1bc0111::acp_entry 216 ir_swizzle *swizzle = (*ir)->as_swizzle(); in handle_rvalue() local 217 if (swizzle) { in handle_rvalue() 218 deref_var = swizzle->val->as_dereference_variable(); in handle_rvalue() 222 swizzle_chan[0] = swizzle->mask.x; in handle_rvalue() 223 swizzle_chan[1] = swizzle->mask.y; in handle_rvalue() 224 swizzle_chan[2] = swizzle->mask.z; in handle_rvalue() [all …]
|
/external/mesa3d/src/glsl/ |
D | ir_builder.cpp | 67 swizzle(operand a, int swizzle, int components) in swizzle() argument 72 GET_SWZ(swizzle, 0), in swizzle() 73 GET_SWZ(swizzle, 1), in swizzle() 74 GET_SWZ(swizzle, 2), in swizzle() 75 GET_SWZ(swizzle, 3), in swizzle() 97 return swizzle(a, SWIZZLE_XXXX, 4); in swizzle_xxxx() 103 return swizzle(a, SWIZZLE_YYYY, 4); in swizzle_yyyy() 109 return swizzle(a, SWIZZLE_ZZZZ, 4); in swizzle_zzzz() 115 return swizzle(a, SWIZZLE_WWWW, 4); in swizzle_wwww() 121 return swizzle(a, SWIZZLE_XXXX, 1); in swizzle_x() [all …]
|
D | opt_copy_propagation_elements.cpp | 57 acp_entry(ir_variable *lhs, ir_variable *rhs, int write_mask, int swizzle[4]) in acp_entry() 62 memcpy(this->swizzle, swizzle, sizeof(this->swizzle)); in acp_entry() 70 memcpy(this->swizzle, a->swizzle, sizeof(this->swizzle)); in acp_entry() 76 int swizzle[4]; member in __anon22a174090111::acp_entry 216 ir_swizzle *swizzle = (*ir)->as_swizzle(); in handle_rvalue() local 217 if (swizzle) { in handle_rvalue() 218 deref_var = swizzle->val->as_dereference_variable(); in handle_rvalue() 222 swizzle_chan[0] = swizzle->mask.x; in handle_rvalue() 223 swizzle_chan[1] = swizzle->mask.y; in handle_rvalue() 224 swizzle_chan[2] = swizzle->mask.z; in handle_rvalue() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/tests/graw/ |
D | tex-swizzle.c | 118 init_tex(const unsigned swizzle[4]) in init_tex() 140 sv_template.swizzle_r = swizzle[0]; in init_tex() 141 sv_template.swizzle_g = swizzle[1]; in init_tex() 142 sv_template.swizzle_b = swizzle[2]; in init_tex() 143 sv_template.swizzle_a = swizzle[3]; in init_tex() 160 init(const unsigned swizzle[4]) in init() 169 init_tex(swizzle); in init() 202 uint swizzle[4]; in main() local 205 swizzle[0] = PIPE_SWIZZLE_RED; in main() 206 swizzle[1] = PIPE_SWIZZLE_GREEN; in main() [all …]
|
/external/mesa3d/src/gallium/tests/graw/ |
D | tex-swizzle.c | 118 init_tex(const unsigned swizzle[4]) in init_tex() 140 sv_template.swizzle_r = swizzle[0]; in init_tex() 141 sv_template.swizzle_g = swizzle[1]; in init_tex() 142 sv_template.swizzle_b = swizzle[2]; in init_tex() 143 sv_template.swizzle_a = swizzle[3]; in init_tex() 160 init(const unsigned swizzle[4]) in init() 169 init_tex(swizzle); in init() 202 uint swizzle[4]; in main() local 205 swizzle[0] = PIPE_SWIZZLE_RED; in main() 206 swizzle[1] = PIPE_SWIZZLE_GREEN; in main() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_fragprog.c | 108 src = swizzle(src, X, Y, Z, ONE); in src_vector() 112 src = swizzle(src, W, ZERO, ZERO, ONE); in src_vector() 187 src = swizzle(src, in src_vector() 391 swizzle(tmp, ONE, ZERO, ONE, ONE), 0, 0); in upload_program() 444 swizzle(consts1, Z, ZERO, ZERO, ZERO), /* 1/(2pi) */ in upload_program() 445 swizzle(consts0, W, ZERO, ZERO, ZERO)); /* .75 */ in upload_program() 453 swizzle(consts0, X, ZERO, ZERO, ZERO), /* 2 */ in upload_program() 454 swizzle(consts0, Y, ZERO, ZERO, ZERO)); /* -1 */ in upload_program() 464 swizzle(tmp, ZERO, X, ZERO, ZERO), in upload_program() 465 negate(swizzle(tmp, ZERO, X, ZERO, ZERO), 0, 1, 0, 0), in upload_program() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i915/ |
D | i915_fragprog.c | 108 src = swizzle(src, X, Y, Z, ONE); in src_vector() 112 src = swizzle(src, W, ZERO, ZERO, ONE); in src_vector() 187 src = swizzle(src, in src_vector() 391 swizzle(tmp, ONE, ZERO, ONE, ONE), 0, 0); in upload_program() 444 swizzle(consts1, Z, ZERO, ZERO, ZERO), /* 1/(2pi) */ in upload_program() 445 swizzle(consts0, W, ZERO, ZERO, ZERO)); /* .75 */ in upload_program() 453 swizzle(consts0, X, ZERO, ZERO, ZERO), /* 2 */ in upload_program() 454 swizzle(consts0, Y, ZERO, ZERO, ZERO)); /* -1 */ in upload_program() 464 swizzle(tmp, ZERO, X, ZERO, ZERO), in upload_program() 465 negate(swizzle(tmp, ZERO, X, ZERO, ZERO), 0, 1, 0, 0), in upload_program() [all …]
|
/external/mesa3d/src/gallium/auxiliary/translate/ |
D | translate_sse.c | 453 …unsigned swizzle[4] = {UTIL_FORMAT_SWIZZLE_NONE, UTIL_FORMAT_SWIZZLE_NONE, UTIL_FORMAT_SWIZZLE_NON… in translate_attr_convert() local 480 if(output_desc->swizzle[i] < 4) in translate_attr_convert() 481 swizzle[output_desc->swizzle[i]] = input_desc->swizzle[i]; in translate_attr_convert() 494 if(swizzle[i] == UTIL_FORMAT_SWIZZLE_0 && i >= input_desc->nr_channels) in translate_attr_convert() 495 swizzle[i] = i; in translate_attr_convert() 500 if(swizzle[i] < 4) in translate_attr_convert() 501 needed_chans = MAX2(needed_chans, swizzle[i] + 1); in translate_attr_convert() 502 if(swizzle[i] < UTIL_FORMAT_SWIZZLE_0 && swizzle[i] != i) in translate_attr_convert() 613 if(swizzle[3] == UTIL_FORMAT_SWIZZLE_1 && input_desc->nr_channels <= 3) in translate_attr_convert() 615 swizzle[3] = UTIL_FORMAT_SWIZZLE_W; in translate_attr_convert() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/translate/ |
D | translate_sse.c | 453 …unsigned swizzle[4] = {UTIL_FORMAT_SWIZZLE_NONE, UTIL_FORMAT_SWIZZLE_NONE, UTIL_FORMAT_SWIZZLE_NON… in translate_attr_convert() local 480 if(output_desc->swizzle[i] < 4) in translate_attr_convert() 481 swizzle[output_desc->swizzle[i]] = input_desc->swizzle[i]; in translate_attr_convert() 494 if(swizzle[i] == UTIL_FORMAT_SWIZZLE_0 && i >= input_desc->nr_channels) in translate_attr_convert() 495 swizzle[i] = i; in translate_attr_convert() 500 if(swizzle[i] < 4) in translate_attr_convert() 501 needed_chans = MAX2(needed_chans, swizzle[i] + 1); in translate_attr_convert() 502 if(swizzle[i] < UTIL_FORMAT_SWIZZLE_0 && swizzle[i] != i) in translate_attr_convert() 613 if(swizzle[3] == UTIL_FORMAT_SWIZZLE_1 && input_desc->nr_channels <= 3) in translate_attr_convert() 615 swizzle[3] = UTIL_FORMAT_SWIZZLE_W; in translate_attr_convert() [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_fpc_translate.c | 225 src = swizzle(src, X, Y, Z, ONE); in src_vector() 230 src = swizzle(src, W, W, W, W); in src_vector() 264 src = swizzle(src, in src_vector() 561 swizzle(tmp, X, X, ONE, ONE), in i915_translate_instruction() 562 swizzle(tmp, X, ONE, ONE, ONE), 0); in i915_translate_instruction() 567 swizzle(tmp, X, Y, X, ONE), in i915_translate_instruction() 568 swizzle(tmp, X, X, ONE, ONE), 0); in i915_translate_instruction() 573 swizzle(tmp, X, X, Z, ONE), in i915_translate_instruction() 574 swizzle(tmp, Z, ONE, ONE, ONE), 0); in i915_translate_instruction() 580 swizzle(tmp, ONE, Z, Y, X), in i915_translate_instruction() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/ |
D | i915_fpc_translate.c | 225 src = swizzle(src, X, Y, Z, ONE); in src_vector() 230 src = swizzle(src, W, W, W, W); in src_vector() 264 src = swizzle(src, in src_vector() 561 swizzle(tmp, X, X, ONE, ONE), in i915_translate_instruction() 562 swizzle(tmp, X, ONE, ONE, ONE), 0); in i915_translate_instruction() 567 swizzle(tmp, X, Y, X, ONE), in i915_translate_instruction() 568 swizzle(tmp, X, X, ONE, ONE), 0); in i915_translate_instruction() 573 swizzle(tmp, X, X, Z, ONE), in i915_translate_instruction() 574 swizzle(tmp, Z, ONE, ONE, ONE), 0); in i915_translate_instruction() 580 swizzle(tmp, ONE, Z, Y, X), in i915_translate_instruction() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_texture.c | 62 apply_depthmode(enum pipe_format format, GLuint swizzle, GLenum depthmode) in apply_depthmode() argument 70 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_NONE) { in apply_depthmode() 72 return swizzle; in apply_depthmode() 76 swiz[i] = GET_SWZ(swizzle, i); in apply_depthmode() 128 GLuint swizzle, GLenum depthmode) in check_sampler_swizzle() argument 130 swizzle = apply_depthmode(sv->texture->format, swizzle, depthmode); in check_sampler_swizzle() 132 if ((sv->swizzle_r != GET_SWZ(swizzle, 0)) || in check_sampler_swizzle() 133 (sv->swizzle_g != GET_SWZ(swizzle, 1)) || in check_sampler_swizzle() 134 (sv->swizzle_b != GET_SWZ(swizzle, 2)) || in check_sampler_swizzle() 135 (sv->swizzle_a != GET_SWZ(swizzle, 3))) in check_sampler_swizzle() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
D | st_atom_texture.c | 62 apply_depthmode(enum pipe_format format, GLuint swizzle, GLenum depthmode) in apply_depthmode() argument 70 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_NONE) { in apply_depthmode() 72 return swizzle; in apply_depthmode() 76 swiz[i] = GET_SWZ(swizzle, i); in apply_depthmode() 128 GLuint swizzle, GLenum depthmode) in check_sampler_swizzle() argument 130 swizzle = apply_depthmode(sv->texture->format, swizzle, depthmode); in check_sampler_swizzle() 132 if ((sv->swizzle_r != GET_SWZ(swizzle, 0)) || in check_sampler_swizzle() 133 (sv->swizzle_g != GET_SWZ(swizzle, 1)) || in check_sampler_swizzle() 134 (sv->swizzle_b != GET_SWZ(swizzle, 2)) || in check_sampler_swizzle() 135 (sv->swizzle_a != GET_SWZ(swizzle, 3))) in check_sampler_swizzle() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
D | lp_bld_const.c | 365 const unsigned char *swizzle) in lp_build_const_aos() argument 377 if(swizzle == NULL) in lp_build_const_aos() 378 swizzle = default_swizzle; in lp_build_const_aos() 380 elems[swizzle[0]] = lp_build_const_elem(gallivm, type, r); in lp_build_const_aos() 381 elems[swizzle[1]] = lp_build_const_elem(gallivm, type, g); in lp_build_const_aos() 382 elems[swizzle[2]] = lp_build_const_elem(gallivm, type, b); in lp_build_const_aos() 383 elems[swizzle[3]] = lp_build_const_elem(gallivm, type, a); in lp_build_const_aos() 425 const unsigned char *swizzle) in lp_build_const_mask_aos_swizzled() argument 428 ((mask & (1 << swizzle[0])) >> swizzle[0]) in lp_build_const_mask_aos_swizzled() 429 | (((mask & (1 << swizzle[1])) >> swizzle[1]) << 1) in lp_build_const_mask_aos_swizzled() [all …]
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_const.c | 365 const unsigned char *swizzle) in lp_build_const_aos() argument 377 if(swizzle == NULL) in lp_build_const_aos() 378 swizzle = default_swizzle; in lp_build_const_aos() 380 elems[swizzle[0]] = lp_build_const_elem(gallivm, type, r); in lp_build_const_aos() 381 elems[swizzle[1]] = lp_build_const_elem(gallivm, type, g); in lp_build_const_aos() 382 elems[swizzle[2]] = lp_build_const_elem(gallivm, type, b); in lp_build_const_aos() 383 elems[swizzle[3]] = lp_build_const_elem(gallivm, type, a); in lp_build_const_aos() 425 const unsigned char *swizzle) in lp_build_const_mask_aos_swizzled() argument 428 ((mask & (1 << swizzle[0])) >> swizzle[0]) in lp_build_const_mask_aos_swizzled() 429 | (((mask & (1 << swizzle[1])) >> swizzle[1]) << 1) in lp_build_const_mask_aos_swizzled() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_format.c | 76 swizzle_used[desc->swizzle[0]] = TRUE; in nr_logical_channels() 77 swizzle_used[desc->swizzle[1]] = TRUE; in nr_logical_channels() 78 swizzle_used[desc->swizzle[2]] = TRUE; in nr_logical_channels() 79 swizzle_used[desc->swizzle[3]] = TRUE; in nr_logical_channels() 112 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance() 113 desc->swizzle[1] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance() 114 desc->swizzle[2] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance() 115 desc->swizzle[3] == UTIL_FORMAT_SWIZZLE_1) { in util_format_is_luminance() 174 if (desc->swizzle[chan] != chan) in util_format_is_array() 201 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance_alpha() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_format.c | 76 swizzle_used[desc->swizzle[0]] = TRUE; in nr_logical_channels() 77 swizzle_used[desc->swizzle[1]] = TRUE; in nr_logical_channels() 78 swizzle_used[desc->swizzle[2]] = TRUE; in nr_logical_channels() 79 swizzle_used[desc->swizzle[3]] = TRUE; in nr_logical_channels() 112 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance() 113 desc->swizzle[1] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance() 114 desc->swizzle[2] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance() 115 desc->swizzle[3] == UTIL_FORMAT_SWIZZLE_1) { in util_format_is_luminance() 174 if (desc->swizzle[chan] != chan) in util_format_is_array() 201 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance_alpha() [all …]
|