HomeSort by relevance Sort by last modified time
    Searched refs:swizzle (Results 76 - 100 of 436) sorted by null

1 2 34 5 6 7 8 91011>>

  /external/mesa3d/src/mesa/program/
ir_to_mesa.cpp 75 this->swizzle = swizzle_for_size(type->vector_elements);
77 this->swizzle = SWIZZLE_XYZW;
86 this->swizzle = 0;
95 GLuint swizzle; /**< SWIZZLE_XYZWONEZERO swizzles from Mesa. */ member in class:__anon30605::src_reg
134 this->swizzle = SWIZZLE_XYZW;
454 GLuint src0_swiz = GET_SWZ(src0.swizzle, i);
455 GLuint src1_swiz = GET_SWZ(src1.swizzle, i);
462 GET_SWZ(src0.swizzle, j) == src0_swiz &&
463 GET_SWZ(src1.swizzle, j) == src1_swiz) {
467 src0.swizzle = MAKE_SWIZZLE4(src0_swiz, src0_swiz
1399 int swizzle[4]; local
2660 int swizzle = 0; local
    [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_parameter_layout.c 167 unsigned swizzle = SWIZZLE_NOOP; local
190 _mesa_add_unnamed_constant(layout, v, p->Size, & swizzle);
192 inst->Base.SrcReg[i].Swizzle =
193 _mesa_combine_swizzles(swizzle, inst->Base.SrcReg[i].Swizzle);
  /external/deqp/modules/gles3/functional/
es3fTextureSwizzleTests.cpp 21 * \brief Texture swizzle tests.
49 static int swizzle (const tcu::RGBA& c, deUint32 swz) function in namespace:deqp::gles3::Functional
65 static void swizzle (tcu::Surface& surface, deUint32 swzR, deUint32 swzG, deUint32 swzB, deUint32 swzA) function in namespace:deqp::gles3::Functional
72 surface.setPixel(x, y, tcu::RGBA(swizzle(p, swzR), swizzle(p, swzG), swizzle(p, swzB), swizzle(p, swzA)));
180 // Setup texture swizzle.
199 // Swizzle channels
200 swizzle(referenceFrame, m_swizzleR, m_swizzleG, m_swizzleB, m_swizzleA)
268 deUint32 swizzle; member in struct:deqp::gles3::Functional::__anon18566
    [all...]
  /external/mesa3d/src/amd/vulkan/
vk_format_parse.py 280 swizzle = swizzles[i]
281 if swizzle < 4:
282 names[swizzle] += 'rgba'[i]
285 swizzle = swizzles[i]
286 if swizzle < 4:
287 names[swizzle] += 'zs'[i]
361 le_swizzles = [_swizzle_parse_map[swizzle] for swizzle in fields[8]]
364 be_swizzles = [_swizzle_parse_map[swizzle] for swizzle in fields[14]
    [all...]
vk_format_table.py 116 swizzle = swizzles[i]
125 print " %s%s\t/* %s */" % (swizzle_map[swizzle], sep, comment)
  /external/mesa3d/src/gallium/auxiliary/util/
u_format_parse.py 272 swizzle = swizzles[i]
273 if swizzle < 4:
274 names[swizzle] += 'rgba'[i]
277 swizzle = swizzles[i]
278 if swizzle < 4:
279 names[swizzle] += 'zs'[i]
342 le_swizzles = [_swizzle_parse_map[swizzle] for swizzle in fields[8]]
345 be_swizzles = [_swizzle_parse_map[swizzle] for swizzle in fields[14]
    [all...]
  /external/mesa3d/src/mesa/state_tracker/
st_sampler_view.c 142 /* identity swizzle, no change to swizzle2 */
162 assert(!"Bad swizzle term");
173 * format and the current GL_DEPTH_MODE, return a texture swizzle.
179 * By sampling the texture with a ".xyz1" swizzle we'll get the expected A=1.
180 * This function computes the texture swizzle needed to get the expected
184 * texture swizzle.
186 * This result must be composed with the user-specified swizzle to get
187 * the final swizzle.
309 /* Combine the texture format swizzle with user's swizzle */
325 unsigned swizzle = get_texture_format_swizzle(st, stObj, glsl_version); local
413 unsigned swizzle = get_texture_format_swizzle(st, stObj, glsl_version); local
    [all...]
  /external/mesa3d/src/gallium/auxiliary/gallivm/
lp_bld_format_soa.c 86 enum pipe_swizzle swizzle; local
92 swizzle = format_desc->swizzle[1];
96 swizzle = format_desc->swizzle[0];
102 depth_or_stencil = lp_build_swizzle_soa_channel(bld, unswizzled, swizzle);
110 enum pipe_swizzle swizzle = format_desc->swizzle[chan]; local
111 swizzled_out[chan] = lp_build_swizzle_soa_channel(bld, unswizzled, swizzle);
326 format_desc->swizzle[3] != chan)
789 enum pipe_swizzle swizzle = format_desc->swizzle[chan]; local
    [all...]
  /external/mesa3d/src/intel/blorp/
blorp_clear.c 332 swizzle_color_value(union isl_color_value src, struct isl_swizzle swizzle)
340 if ((unsigned)(swizzle.a - ISL_CHANNEL_SELECT_RED) < 4)
341 dst.u32[swizzle.a - ISL_CHANNEL_SELECT_RED] = src.u32[3];
342 if ((unsigned)(swizzle.b - ISL_CHANNEL_SELECT_RED) < 4)
343 dst.u32[swizzle.b - ISL_CHANNEL_SELECT_RED] = src.u32[2];
344 if ((unsigned)(swizzle.g - ISL_CHANNEL_SELECT_RED) < 4)
345 dst.u32[swizzle.g - ISL_CHANNEL_SELECT_RED] = src.u32[1];
346 if ((unsigned)(swizzle.r - ISL_CHANNEL_SELECT_RED) < 4)
347 dst.u32[swizzle.r - ISL_CHANNEL_SELECT_RED] = src.u32[0];
355 enum isl_format format, struct isl_swizzle swizzle,
    [all...]
  /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/swiftshader/src/Shader/
Shader.hpp 403 unsigned int swizzle : 8; member in struct:sw::Shader::Relative
434 rel.swizzle = 0;
477 SourceParameter() : swizzle(0xE4), modifier(MODIFIER_NONE), bufferIndex(-1)
486 unsigned int swizzle : 8; member in struct:sw::Shader::SourceParameter
504 static std::string swizzleString(ParameterType type, unsigned char swizzle);
576 static bool swizzleContainsComponent(int swizzle, int component);
577 static bool swizzleContainsComponentMasked(int swizzle, int component, int mask);
Shader.cpp 432 switch(rel.swizzle & 0x03)
445 switch(rel.swizzle & 0x03)
462 switch(rel.swizzle & 0x03)
526 return Instruction::swizzleString(type, swizzle);
601 dst.rel.swizzle = 0x00;
607 dst.rel.swizzle = (unsigned char)((token[1] & 0x00FF0000) >> 16);
642 src[i].swizzle = 0xE4;
644 src[i].rel.swizzle = 0x00;
680 src[i].swizzle = (unsigned char)((token[0] & 0x00FF0000) >> 16);
696 src[i].rel.swizzle = (unsigned char)((token[1] & 0x00FF0000) >> 16)
    [all...]
  /external/mesa3d/src/gallium/state_trackers/nine/
basetexture9.c 500 uint8_t swizzle[4]; local
513 swizzle[0] = PIPE_SWIZZLE_X;
514 swizzle[1] = PIPE_SWIZZLE_Y;
515 swizzle[2] = PIPE_SWIZZLE_Z;
516 swizzle[3] = PIPE_SWIZZLE_W;
522 * Tested on win the swizzle is
530 swizzle[1] = PIPE_SWIZZLE_0;
531 swizzle[2] = PIPE_SWIZZLE_0;
532 swizzle[3] = PIPE_SWIZZLE_1;
534 swizzle[1] = PIPE_SWIZZLE_X
    [all...]
  /external/mesa3d/src/mesa/main/
atifragshader.c 399 GLuint swizzle = curProg->SetupInst[j][i].swizzle; local
401 swizzle);
432 _mesa_PassTexCoordATI(GLuint dst, GLuint coord, GLenum swizzle)
467 if (!(swizzle >= GL_SWIZZLE_STR_ATI) && (swizzle <= GL_SWIZZLE_STQ_DQ_ATI)) {
468 _mesa_error(ctx, GL_INVALID_ENUM, "glPassTexCoordATI(swizzle)");
471 if ((swizzle & 1) && (coord >= GL_REG_0_ATI)) {
472 _mesa_error(ctx, GL_INVALID_OPERATION, "glPassTexCoordATI(swizzle)");
478 (((swizzle & 1) + 1) != ((curProg->swizzlerq >> (tmp * 2)) & 3)))
    [all...]
  /external/mesa3d/src/gallium/drivers/r300/compiler/
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...]
  /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;
  /external/vulkan-validation-layers/libs/glm/gtx/
simd_vec4.hpp 161 // Swizzle operators
164 fvec4SIMD& swizzle();
166 fvec4SIMD swizzle() const;
168 fvec4SIMD swizzle() const;
170 fvec4SIMD swizzle() const;
172 fvec4SIMD swizzle() const;
  /prebuilts/ndk/r16/sources/third_party/vulkan/src/libs/glm/gtx/
simd_vec4.hpp 161 // Swizzle operators
164 fvec4SIMD& swizzle();
166 fvec4SIMD swizzle() const;
168 fvec4SIMD swizzle() const;
170 fvec4SIMD swizzle() const;
172 fvec4SIMD swizzle() const;
  /external/mesa3d/src/compiler/nir/
nir_lower_to_source_mods.c 88 alu->src[i].swizzle[j] = parent->src[0].swizzle[alu->src[i].swizzle[j]];
  /external/mesa3d/src/mesa/drivers/dri/r200/
r200_fragshader.c 381 if (shader->SetupInst[0][reg].swizzle == GL_SWIZZLE_STR_ATI ||
382 shader->SetupInst[0][reg].swizzle == GL_SWIZZLE_STQ_ATI) {
396 else if (shader->SetupInst[0][reg].swizzle == GL_SWIZZLE_STR_ATI ||
397 shader->SetupInst[0][reg].swizzle == GL_SWIZZLE_STQ_ATI) {
422 if (shader->SetupInst[0][reg].swizzle == GL_SWIZZLE_STR_ATI ||
423 shader->SetupInst[0][reg].swizzle == GL_SWIZZLE_STQ_ATI) {
437 else if (shader->SetupInst[0][reg].swizzle == GL_SWIZZLE_STR_ATI ||
438 shader->SetupInst[0][reg].swizzle == GL_SWIZZLE_STQ_ATI) {
462 if (shader->SetupInst[1][reg].swizzle == GL_SWIZZLE_STR_ATI ||
463 shader->SetupInst[1][reg].swizzle == GL_SWIZZLE_STQ_ATI)
    [all...]
  /external/mesa3d/src/gallium/drivers/nouveau/nv30/
nv30_texture.c 208 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz) function
258 so->swz = fmt->swizzle;
259 so->swz |= swizzle(fmt, 3, tmpl->swizzle_a);
260 so->swz |= swizzle(fmt, 0, tmpl->swizzle_r) << 2;
261 so->swz |= swizzle(fmt, 1, tmpl->swizzle_g) << 4;
262 so->swz |= swizzle(fmt, 2, tmpl->swizzle_b) << 6;
  /external/mesa3d/src/mesa/drivers/dri/i965/
brw_vec4.cpp 55 this->swizzle = brw_swizzle_for_size(type->vector_elements);
57 this->swizzle = BRW_SWIZZLE_XYZW;
79 this->swizzle = brw_swizzle_for_mask(reg.writemask);
135 this->writemask = brw_mask_for_swizzle(reg.swizzle);
479 /* Replaces unused channels of a swizzle with channels that are used.
504 unsigned swizzle; local
513 swizzle = brw_swizzle_for_size(4);
516 swizzle = brw_swizzle_for_size(3);
519 swizzle = brw_swizzle_for_size(2);
528 swizzle = brw_swizzle_for_size(4)
    [all...]
  /external/mesa3d/src/gallium/drivers/freedreno/a2xx/
ir-a2xx.h 51 char *swizzle; member in struct:ir2_register
133 int num, const char *swizzle, int flags);
  /external/skia/src/gpu/
GrFragmentProcessor.cpp 151 std::unique_ptr<GrFragmentProcessor> fp, const GrSwizzle& swizzle) {
154 static std::unique_ptr<GrFragmentProcessor> Make(const GrSwizzle& swizzle) {
155 return std::unique_ptr<GrFragmentProcessor>(new SwizzleFragmentProcessor(swizzle));
158 const char* name() const override { return "Swizzle"; }
159 const GrSwizzle& swizzle() const { return fSwizzle; } function in class:SwizzleFragmentProcessor
164 SwizzleFragmentProcessor(const GrSwizzle& swizzle)
166 , fSwizzle(swizzle) {
174 const GrSwizzle& swizzle = sfp.swizzle(); local
178 args.fOutputColor, args.fInputColor, swizzle.c_str())
    [all...]

Completed in 1589 milliseconds

1 2 34 5 6 7 8 91011>>