/external/mesa3d/src/gallium/drivers/nv30/ |
H A D | nv30_format.h | 23 } swz[6]; member in struct:nv30_texfmt
|
H A D | nv30_texture.c | 190 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz) argument 192 uint32_t data = fmt->swz[swz].src << 8; 193 if (swz <= PIPE_SWIZZLE_ALPHA) 194 data |= fmt->swz[swz].cmp; 196 data |= fmt->swz[cmp].cmp; 240 so->swz = fmt->swizzle; 241 so->swz |= swizzle(fmt, 3, tmpl->swizzle_a); 242 so->swz | [all...] |
H A D | nv30_state.h | 52 unsigned swz; member in struct:nv30_sampler_view
|
/external/mesa3d/src/gallium/drivers/nv50/ |
H A D | nv50_tex.c | 35 nv50_tic_swizzle(uint32_t tc, unsigned swz, boolean tex_int) argument 37 switch (swz) { 80 uint32_t swz[4]; local 109 swz[0] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_r, tex_int); 110 swz[1] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_g, tex_int); 111 swz[2] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_b, tex_int); 112 swz[3] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_a, tex_int); 114 (swz[0] << NV50_TIC_0_MAPR__SHIFT) | 115 (swz[1] << NV50_TIC_0_MAPG__SHIFT) | 116 (swz[ [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | radeon_pair_translate.c | 137 unsigned int swz = GET_SWZ(src.Swizzle, j); local 138 if (swz < 3) 140 else if (swz < 4) 224 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); local 226 if (swz < RC_SWIZZLE_W) 228 else if (swz == RC_SWIZZLE_W) 231 if (swz < RC_SWIZZLE_UNUSED) 250 unsigned int swz; local 252 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle); 254 swz [all...] |
H A D | radeon_program_pair.c | 135 unsigned int swz, 138 /* swz > 3 means that the swizzle is either not used, or a constant 140 if(swz > 3) 143 if(swz == RC_SWIZZLE_W) { 194 unsigned int swz = RC_SWIZZLE_UNUSED; local 199 swz = GET_SWZ(pair->RGB.Arg[i].Swizzle, chan); 200 if(swz == RC_SWIZZLE_X || swz == RC_SWIZZLE_Y 201 || swz == RC_SWIZZLE_Z || swz 131 pair_foreach_source_callback( struct rc_pair_instruction * pair, void * data, rc_pair_foreach_src_fn cb, unsigned int swz, unsigned int src) argument [all...] |
H A D | r300_fragprog_swizzle.c | 77 unsigned int swz = GET_SWZ(swizzle, comp); local 78 if (swz == RC_SWIZZLE_UNUSED) 80 if (swz != GET_SWZ(sd->hash, comp)) 121 unsigned int swz = GET_SWZ(reg.Swizzle, j); local 122 if (swz == RC_SWIZZLE_UNUSED) 124 if (swz != j) 164 unsigned int swz; local 167 swz = GET_SWZ(src.Swizzle, comp); 168 if (swz == RC_SWIZZLE_UNUSED) 170 if (swz 229 unsigned int swz = GET_SWZ(swizzle, 0); local [all...] |
H A D | radeon_inline_literals.c | 85 unsigned swz, chan; local 88 swz = RC_SWIZZLE_UNUSED; 100 swz = GET_SWZ(src_reg->Swizzle, chan); 101 if (swz == RC_SWIZZLE_UNUSED) { 104 float_value = constant->u.Immediate[swz];
|
H A D | radeon_vert_fc.c | 194 unsigned swz; local 198 swz = rc_get_scalar_src_swz(inst->U.I.SrcReg[1].Swizzle); 202 RC_SWIZZLE_UNUSED, RC_SWIZZLE_UNUSED, swz);
|
H A D | r500_fragprog.c | 201 unsigned int swz = GET_SWZ(reg.Swizzle, i); local 202 if (swz == RC_SWIZZLE_UNUSED) { 206 if (swz >= 4) 227 unsigned int swz = GET_SWZ(reg.Swizzle, i); local 228 if (swz != RC_SWIZZLE_UNUSED && swz != RC_SWIZZLE_ZERO) 251 unsigned int swz = GET_SWZ(src.Swizzle, i); local 252 if (swz == RC_SWIZZLE_UNUSED || !GET_BIT(usemask, i))
|
H A D | r500_fragprog_emit.c | 141 static unsigned int fix_hw_swizzle(unsigned int swz) argument 143 switch (swz) { 146 swz = 4; 149 swz = 5; 152 swz = 6; 156 return swz;
|
H A D | radeon_program_print.c | 170 static char rc_swizzle_char(unsigned int swz) argument 172 switch(swz) { 182 fprintf(stderr, "bad swz: %u\n", swz); 190 rc_swizzle swz = GET_SWZ(swizzle, comp); local 193 fprintf(f, "%c", rc_swizzle_char(swz));
|
H A D | r3xx_vertprog.c | 162 unsigned int swz = rc_get_scalar_src_swz(src->Swizzle); local 165 t_swizzle(swz), 166 t_swizzle(swz), 167 t_swizzle(swz), 168 t_swizzle(swz),
|
H A D | radeon_compiler_util.c | 38 unsigned int rc_swizzle_to_writemask(unsigned int swz) argument 44 mask |= 1 << GET_SWZ(swz, i); 51 rc_swizzle get_swz(unsigned int swz, rc_swizzle idx) argument 55 return GET_SWZ(swz, idx); 89 unsigned int combine_swizzles(unsigned int src, unsigned int swz) argument 93 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_X)); 94 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Y)) << 3; 95 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Z)) << 6; 96 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_W)) << 9; 120 unsigned swz local 235 unsigned int swz = GET_SWZ(conversion_swizzle, i); local 269 unsigned int swz = GET_SWZ(swizzle, chan); local 295 rc_swizzle swz = GET_SWZ(swizzle, i); local 333 unsigned int swz = RC_SWIZZLE_UNUSED; local 725 int swz = GET_SWZ(swizzle, chan); local 744 unsigned int swz, chan; local [all...] |
H A D | radeon_dataflow.c | 66 unsigned int swz, unsigned int src) 68 if (swz >= 4) 71 if (swz == RC_SWIZZLE_X || swz == RC_SWIZZLE_Y || swz == RC_SWIZZLE_Z) { 78 refmasks[i] |= 1 << swz; 82 refmasks[src] |= 1 << swz; 86 if (swz == RC_SWIZZLE_W) { 92 refmasks[i] |= 1 << swz; 96 refmasks[src] |= 1 << swz; 64 pair_get_src_refmasks(unsigned int * refmasks, struct rc_pair_instruction * inst, unsigned int swz, unsigned int src) argument [all...] |
H A D | radeon_optimize.c | 187 unsigned int swz = GET_SWZ(src.Swizzle, chan); local 188 if (swz < 4) { 192 if (swz == RC_SWIZZLE_UNUSED) 196 *pswz = swz; 200 if (swz != *pswz || *pnegate != GET_BIT(src.Negate, chan)) { 212 rc_swizzle swz = 0; local 215 if (is_src_uniform_constant(inst->U.I.SrcReg[2], &swz, &negate)) { 216 if (swz == RC_SWIZZLE_ZERO) { 222 if (is_src_uniform_constant(inst->U.I.SrcReg[1], &swz, &negate)) { 223 if (swz 253 rc_swizzle swz = 0; local 286 rc_swizzle swz = 0; local 345 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); local 423 unsigned int swz = GET_SWZ(src.Swizzle, chan); local 538 rc_swizzle swz = local 630 unsigned int i, swz; local 703 unsigned int chan = 0, swz, i; local [all...] |
/external/mesa3d/src/gallium/drivers/nvc0/ |
H A D | nvc0_tex.c | 37 nv50_tic_swizzle(uint32_t tc, unsigned swz, boolean tex_int) argument 39 switch (swz) { 64 uint32_t swz[4]; local 92 swz[0] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_r, tex_int); 93 swz[1] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_g, tex_int); 94 swz[2] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_b, tex_int); 95 swz[3] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_a, tex_int); 97 (swz[0] << NV50_TIC_0_MAPR__SHIFT) | 98 (swz[1] << NV50_TIC_0_MAPG__SHIFT) | 99 (swz[ [all...] |
/external/deqp/modules/gles3/functional/ |
H A D | es3fTextureSwizzleTests.cpp | 48 static int swizzle (const tcu::RGBA& c, deUint32 swz) argument 50 switch (swz) 311 deUint32 swz = swizzles[swzNdx].swizzle; local 312 deUint32 swzR = (chanNdx == 0) ? swz : defaultSwizzles[0]; 313 deUint32 swzG = (chanNdx == 1) ? swz : defaultSwizzles[1]; 314 deUint32 swzB = (chanNdx == 2) ? swz : defaultSwizzles[2]; 315 deUint32 swzA = (chanNdx == 3) ? swz : defaultSwizzles[3];
|
/external/mesa3d/src/mesa/main/ |
H A D | texparam.c | 210 set_swizzle_component(GLuint *swizzle, GLuint comp, GLuint swz) argument 213 ASSERT(swz <= SWIZZLE_NIL); 216 GLuint s = (*swizzle & ~mask) | (swz << (3 * comp)); 450 const GLint swz = comp_to_swizzle(params[0]); local 451 if (swz < 0) { 460 set_swizzle_component(&texObj->_Swizzle, comp, swz); 471 const GLint swz = comp_to_swizzle(params[comp]); local 472 if (swz >= 0) { 474 set_swizzle_component(&texObj->_Swizzle, comp, swz);
|
/external/mesa3d/src/mesa/program/ |
H A D | prog_parameter.c | 268 GLuint swz = p->Size; /* 1, 2 or 3 for Y, Z, W */ local 271 *swizzleOut = MAKE_SWIZZLE4(swz, swz, swz, swz); 535 GLuint swz[4]; local 539 swz[j] = j; 545 swz[j] = k; 554 swz[j] = swz[ [all...] |
H A D | prog_print.c | 466 static const char swz[] = "xyzw01!?"; /* See SWIZZLE_x definitions */ local 478 s[i++] = swz[GET_SWZ(swizzle, 0)]; 486 s[i++] = swz[GET_SWZ(swizzle, 1)]; 494 s[i++] = swz[GET_SWZ(swizzle, 2)]; 502 s[i++] = swz[GET_SWZ(swizzle, 3)];
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_format.c | 698 const unsigned char swz[4]) 703 if (swz[i] <= UTIL_FORMAT_SWIZZLE_W) 704 dst[i] = src[swz[i]]; 705 else if (swz[i] == UTIL_FORMAT_SWIZZLE_0) 707 else if (swz[i] == UTIL_FORMAT_SWIZZLE_1) 713 const unsigned char swz[4]) 718 switch (swz[i]) { 697 util_format_swizzle_4f(float *dst, const float *src, const unsigned char swz[4]) argument 712 util_format_unswizzle_4f(float *dst, const float *src, const unsigned char swz[4]) argument
|
/external/deqp/modules/gles31/functional/ |
H A D | es31fTextureFilteringTests.cpp | 232 const tcu::IVec4 swz = levelSwz[layerFaceNdx % DE_LENGTH_OF_ARRAY(levelSwz)]; local 233 const tcu::Vec4 gMin = tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f).swizzle(swz[0],swz[1],swz[2],swz[3])*cScale + cBias; 234 const tcu::Vec4 gMax = tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f).swizzle(swz[0],swz[1],swz[2],swz[3])*cScale + cBias;
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_ureg.h | 870 unsigned swz = ( (reg.SwizzleX << 0) | local 881 reg.SwizzleX = (swz >> (x*2)) & 0x3; 882 reg.SwizzleY = (swz >> (y*2)) & 0x3; 883 reg.SwizzleZ = (swz >> (z*2)) & 0x3; 884 reg.SwizzleW = (swz >> (w*2)) & 0x3;
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_wm_fp.c | 577 struct prog_instruction *swz; local 580 /* dst.xz = swz src0.1zzz 582 swz = emit_op(c, 590 swz->SrcReg[0].Negate &= ~NEGATE_X; 637 struct prog_instruction *swz; local 639 /* dst.xw = swz src0.1111 641 swz = emit_op(c, 649 swz->SrcReg[0].Negate = NEGATE_NONE;
|