Searched defs:swizzle (Results 1 - 25 of 106) sorted by relevance

12345

/external/skia/src/gpu/
H A DGrTextureAccess.cpp30 const char* swizzle,
32 this->reset(texture, swizzle, params);
36 const char* swizzle,
39 this->reset(texture, swizzle, filterMode, tileXAndY);
43 const char* swizzle,
46 SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4);
50 this->setSwizzle(swizzle);
54 const char* swizzle,
58 SkASSERT(strlen(swizzle) >
29 GrTextureAccess(GrTexture* texture, const char* swizzle, const GrTextureParams& params) argument
35 GrTextureAccess(GrTexture* texture, const char* swizzle, GrTextureParams::FilterMode filterMode, SkShader::TileMode tileXAndY) argument
42 reset(GrTexture* texture, const char* swizzle, const GrTextureParams& params) argument
53 reset(GrTexture* texture, const char* swizzle, GrTextureParams::FilterMode filterMode, SkShader::TileMode tileXAndY) argument
84 setSwizzle(const char* swizzle) argument
[all...]
/external/mesa3d/src/gallium/drivers/r300/
H A Dr300_tgsi_to_rc.h36 unsigned swizzle; member in struct:swizzled_imms
H A Dr300_tgsi_to_rc.c224 dst->Swizzle |= GET_SWZ(ttr->imms_to_swizzle[i].swizzle,
301 unsigned swizzle = 0; local
307 swizzle |= RC_SWIZZLE_ZERO << (i * 3);
309 swizzle |= RC_SWIZZLE_HALF << (i * 3);
311 swizzle |= RC_SWIZZLE_ONE << (i * 3);
320 ttr->imms_to_swizzle[ttr->imms_to_swizzle_count].swizzle = swizzle;
H A Dr300_state_inlines.h414 unsigned i, swizzle = 0; local
425 swizzle |=
426 MIN2(desc->swizzle[i], R300_SWIZZLE_SELECT_FP_ONE) << (3*i);
430 swizzle |= R300_SWIZZLE_SELECT_FP_ZERO << (3*i);
433 swizzle |= R300_SWIZZLE_SELECT_FP_ONE << (3*i);
436 return swizzle | (0xf << R300_WRITE_ENA_SHIFT);
/external/mesa3d/src/mesa/main/
H A Duniforms.h239 int swizzle; member in struct:gl_builtin_uniform_element
H A Datifragshader.h64 GLenum swizzle; member in struct:atifs_setupinst
92 _mesa_PassTexCoordATI(GLuint dst, GLuint coord, GLenum swizzle);
95 _mesa_SampleMapATI(GLuint dst, GLuint interp, GLenum swizzle);
/external/mesa3d/src/gallium/drivers/nv30/
H A Dnv30_format.h24 unsigned swizzle; member in struct:nv30_texfmt
H A Dnv30_texture.c190 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz) function
240 so->swz = fmt->swizzle;
241 so->swz |= swizzle(fmt, 3, tmpl->swizzle_a);
242 so->swz |= swizzle(fmt, 0, tmpl->swizzle_r) << 2;
243 so->swz |= swizzle(fmt, 1, tmpl->swizzle_g) << 4;
244 so->swz |= swizzle(fmt, 2, tmpl->swizzle_b) << 6;
/external/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_util.c85 unsigned swizzle,
90 reg->SwizzleX = swizzle;
93 reg->SwizzleY = swizzle;
96 reg->SwizzleZ = swizzle;
99 reg->SwizzleW = swizzle;
83 tgsi_util_set_src_register_swizzle( struct tgsi_src_register *reg, unsigned swizzle, unsigned component ) argument
/external/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_code.c139 unsigned rc_constants_add_immediate_scalar(struct rc_constant_list * c, float data, unsigned * swizzle) argument
150 *swizzle = RC_MAKE_SWIZZLE_SMEAR(comp);
163 *swizzle = RC_MAKE_SWIZZLE_SMEAR(comp);
171 *swizzle = RC_SWIZZLE_XXXX;
H A Dr300_fragprog_swizzle.c44 unsigned int hash; /**< swizzle value this matches */
45 unsigned int base; /**< base value for hw swizzle */
67 * Find a native RGB swizzle that matches the given swizzle.
70 static const struct swizzle_data* lookup_native_swizzle(unsigned int swizzle) argument
77 unsigned int swz = GET_SWZ(swizzle, comp);
91 * Determines if the given swizzle is valid for r300/r400. In most situations
95 int r300_swizzle_is_native_basic(unsigned int swizzle) argument
97 if(lookup_native_swizzle(swizzle))
104 * Check whether the given instruction supports the swizzle an
206 r300FPTranslateRGBSwizzle(unsigned int src, unsigned int swizzle) argument
227 r300FPTranslateAlphaSwizzle(unsigned int src, unsigned int swizzle) argument
[all...]
/external/mesa3d/src/glsl/
H A Dlower_vec_index_to_cond_assign.cpp28 * of each channel's swizzle into a temporary.
98 /* Temporary where we store whichever value we swizzle out. */
119 ir_rvalue *swizzle = local
124 assign = new(base_ir) ir_assignment(deref, swizzle, condition_swizzle);
152 /* Can't be hit from normal GLSL, since you can't swizzle a scalar (which
220 ir_rvalue *swizzle = local
225 assign = new(ir) ir_assignment(swizzle, deref, condition_swizzle);
H A Dir_builder.cpp67 swizzle(operand a, int swizzle, int components) argument
72 GET_SWZ(swizzle, 0),
73 GET_SWZ(swizzle, 1),
74 GET_SWZ(swizzle, 2),
75 GET_SWZ(swizzle, 3),
97 return swizzle(a, SWIZZLE_XXXX, 4);
103 return swizzle(a, SWIZZLE_YYYY, 4);
109 return swizzle(a, SWIZZLE_ZZZZ, 4);
115 return swizzle(
[all...]
/external/mesa3d/src/mesa/program/
H A Dprog_parameter_layout.c167 unsigned swizzle = SWIZZLE_NOOP; local
190 _mesa_add_unnamed_constant(layout, v, p->Size, & swizzle);
193 _mesa_combine_swizzles(swizzle, inst->Base.SrcReg[i].Swizzle);
H A Dprog_instruction.c325 GLuint swizzle = GET_SWZ(inst->SrcReg[i].Swizzle, chan); local
326 if (swizzle <= SWIZZLE_W &&
327 (channelsWritten & (1 << swizzle))) {
/external/skia/src/gpu/gl/
H A DGrGLProcessor.h55 const char* swizzle() const { return fSwizzle; } function in class:GrGLProcessor::TextureSampler
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_tgsi.c289 unsigned swizzle; local
294 swizzle = ~0;
296 swizzle = tgsi_util_get_full_src_register_swizzle(reg, chan_index);
297 if (swizzle > 3) {
298 assert(0 && "invalid swizzle in emit_fetch()");
307 swizzle);
325 if (swizzle == ~0) {
H A Dlp_bld_tgsi_info.c67 unsigned swizzle = tgsi_util_get_src_register_swizzle(src, chan); local
70 *chan_info = ctx->temp[src->Index][swizzle];
77 chan_info->u.value = ctx->imm[src->Index][swizzle];
81 chan_info->swizzle = swizzle;
352 "xyzw01"[chan_info->swizzle]);
386 "xyzw01"[chan_info->swizzle]);
/external/mesa3d/src/gallium/tests/graw/
H A Dtex-swizzle.c118 init_tex(const unsigned swizzle[4]) argument
140 sv_template.swizzle_r = swizzle[0];
141 sv_template.swizzle_g = swizzle[1];
142 sv_template.swizzle_b = swizzle[2];
143 sv_template.swizzle_a = swizzle[3];
160 init(const unsigned swizzle[4]) argument
169 init_tex(swizzle);
202 uint swizzle[4]; local
205 swizzle[0] = PIPE_SWIZZLE_RED;
206 swizzle[
[all...]
/external/mesa3d/src/gallium/winsys/i915/drm/
H A Di915_drm_buffer.c99 uint32_t tile = 0, swizzle = 0; local
112 drm_intel_bo_get_tiling(buf->bo, &tile, &swizzle);
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Di915_program.h37 /* Having zero and one in here makes the definition of swizzle a lot
88 swizzle(int reg, int x, int y, int z, int w) function
/external/mesa3d/src/mesa/swrast/
H A Ds_fragprog.c49 * Apply texture object's swizzle (X/Y/Z/W/0/1) to incoming 'texel'
53 swizzle_texel(const GLfloat texel[4], GLfloat colorOut[4], GLuint swizzle) argument
55 if (swizzle == SWIZZLE_NOOP) {
66 colorOut[0] = vector[GET_SWZ(swizzle, 0)];
67 colorOut[1] = vector[GET_SWZ(swizzle, 1)];
68 colorOut[2] = vector[GET_SWZ(swizzle, 2)];
69 colorOut[3] = vector[GET_SWZ(swizzle, 3)];
/external/deqp/modules/gles2/scripts/
H A Dgen-swizzles.py145 def __init__(self, name, precision, dataType, swizzle, inputs, outputs):
149 self.swizzle = swizzle
152 self.op = "out0 = in0.%s;" % swizzle
234 swizzle = "".join(map(lambda x: swizzleComponents[x], swizzleIndices)) variable
235 #print "%s %s .%s" % (precision, dataType, swizzle)
236 caseName = "%s_%s_%s" % (precision, dataType, swizzle)
238 outputs = map(lambda x: x.swizzle(swizzleIndices), inputs)
240 vectorSwizzleCases.append(SwizzleCase(caseName, precision, dataType, swizzle, [("%s in0" % dataType, inputs)], [("%s out0" % outType, outputs)]))
247 # swizzle
[all...]
/external/deqp/modules/gles3/functional/
H A Des3fTextureSwizzleTests.cpp21 * \brief Texture swizzle tests.
48 static int swizzle (const tcu::RGBA& c, deUint32 swz) function in namespace:deqp::gles3::Functional
64 static void swizzle (tcu::Surface& surface, deUint32 swzR, deUint32 swzG, deUint32 swzB, deUint32 swzA) function in namespace:deqp::gles3::Functional
71 surface.setPixel(x, y, tcu::RGBA(swizzle(p, swzR), swizzle(p, swzG), swizzle(p, swzB), swizzle(p, swzA)));
179 // Setup texture swizzle.
199 swizzle(referenceFrame, m_swizzleR, m_swizzleG, m_swizzleB, m_swizzleA);
225 : TestCaseGroup(context, "swizzle", "Textur
267 deUint32 swizzle; member in struct:deqp::gles3::Functional::__anon3429
[all...]
/external/deqp/modules/gles3/scripts/
H A Dgen-swizzles.py149 def __init__(self, name, precision, dataType, swizzle, inputs, outputs):
153 self.swizzle = swizzle
156 self.op = "out0 = in0.%s;" % swizzle
238 swizzle = "".join(map(lambda x: swizzleComponents[x], swizzleIndices)) variable
239 #print "%s %s .%s" % (precision, dataType, swizzle)
240 caseName = "%s_%s_%s" % (precision, dataType, swizzle)
242 outputs = map(lambda x: x.swizzle(swizzleIndices), inputs)
244 vectorSwizzleCases.append(SwizzleCase(caseName, precision, dataType, swizzle, [("%s in0" % dataType, inputs)], [("%s out0" % outType, outputs)]))
251 # swizzle
[all...]

Completed in 466 milliseconds

12345