/external/mesa3d/src/gallium/drivers/nouveau/nv30/ |
nv30_format.h | 23 } swz[6]; member in struct:nv30_texfmt
|
nv30_state.h | 54 unsigned swz; member in struct:nv30_sampler_view
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
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 == RC_SWIZZLE_W [all...] |
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 == GET_SWZ(sd->hash, comp)) 229 unsigned int swz = GET_SWZ(swizzle, 0); local [all...] |
radeon_dataflow_swizzles.c | 104 unsigned new_swizzle, chan, swz0, swz1, swz2, swz3, found_swizzle, swz; local 115 unsigned swz = GET_SWZ(reg->Swizzle, chan); local 116 if (swz <= RC_SWIZZLE_W) { 119 if (swz == RC_SWIZZLE_UNUSED) { 128 swz = RC_SWIZZLE_UNUSED; 139 if (swz == RC_SWIZZLE_UNUSED) { 140 swz = chan_swz; 141 } else if (swz != chan_swz) {
|
radeon_inline_literals.c | 110 unsigned swz, chan; local 113 swz = RC_SWIZZLE_UNUSED; 125 swz = GET_SWZ(src_reg->Swizzle, chan); 126 if (swz == RC_SWIZZLE_UNUSED) { 129 float_value = constant->u.Immediate[swz];
|
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 = GET_SWZ(inst->SrcReg[i].Swizzle, 3) [all...] |
radeon_vert_fc.c | 218 unsigned swz; local 222 swz = rc_get_scalar_src_swz(inst->U.I.SrcReg[1].Swizzle); 226 RC_SWIZZLE_UNUSED, RC_SWIZZLE_UNUSED, swz);
|
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))
|
radeon_program_print.c | 170 static char rc_swizzle_char(unsigned int swz) 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));
|
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),
|
radeon_compiler_util.c | 38 unsigned int rc_swizzle_to_writemask(unsigned int swz) 44 mask |= 1 << GET_SWZ(swz, i); 51 rc_swizzle get_swz(unsigned int swz, rc_swizzle idx) 55 return GET_SWZ(swz, idx); 89 unsigned int combine_swizzles(unsigned int src, unsigned int swz) 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 = GET_SWZ(swizzle, chan) 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...] |
radeon_optimize.c | 204 unsigned int swz = GET_SWZ(src.Swizzle, chan); local 205 if (swz < 4) { 209 if (swz == RC_SWIZZLE_UNUSED) 213 *pswz = swz; 217 if (swz != *pswz || *pnegate != GET_BIT(src.Negate, chan)) { 229 rc_swizzle swz = 0; local 232 if (is_src_uniform_constant(inst->U.I.SrcReg[2], &swz, &negate)) { 233 if (swz == RC_SWIZZLE_ZERO) { 239 if (is_src_uniform_constant(inst->U.I.SrcReg[1], &swz, &negate)) { 240 if (swz == RC_SWIZZLE_ONE) 270 rc_swizzle swz = 0; local 303 rc_swizzle swz = 0; local 362 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); local 440 unsigned int swz = GET_SWZ(src.Swizzle, chan); local 555 rc_swizzle swz = local 647 unsigned int i, swz; local 720 unsigned int chan = 0, swz, i; local [all...] |
/external/mesa3d/src/compiler/glsl/ |
opt_vectorize.cpp | 139 ir_swizzle *swz = (ir_swizzle *)ir; local 140 if (swz->val->type->is_vector()) { 141 swz->mask = *mask; 143 swz->type = glsl_type::get_instance(swz->type->base_type, 239 const ir_swizzle *swz) 241 return ((write_mask == WRITEMASK_X && swz->mask.x == SWIZZLE_X) || 242 (write_mask == WRITEMASK_Y && swz->mask.x == SWIZZLE_Y) || 243 (write_mask == WRITEMASK_Z && swz->mask.x == SWIZZLE_Z) || 244 (write_mask == WRITEMASK_W && swz->mask.x == SWIZZLE_W)) [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_vec4_copy_propagation.cpp | 98 unsigned swz[4] = {}; local 107 swz[i] = i; 109 swz[i] = BRW_GET_SWZ(src.swizzle, i); 130 BRW_SWIZZLE4(swz[0], swz[1], 131 swz[2], swz[3])));
|
brw_fs_surface_builder.cpp | 516 const fs_reg swz = offset(image, bld, BRW_IMAGE_PARAM_SWIZZLING_OFFSET); local 629 * XOR-ed with bit 6 of the memory address, so a swz value of 638 bld.SHR(offset(tmp, bld, c), dst, offset(swz, bld, c)); [all...] |
/external/mesa3d/src/mesa/program/ |
prog_parameter.c | 97 GLuint swz[4]; local 101 swz[j] = j; 107 swz[j] = k; 116 swz[j] = swz[j-1]; 120 *swizzleOut = MAKE_SWIZZLE4(swz[0], swz[1], swz[2], swz[3]); 335 GLuint swz = p->Size; /* 1, 2 or 3 for Y, Z, W * local [all...] |
prog_execute.c | 1050 const GLuint swz = GET_SWZ(source->Swizzle, i); local [all...] |
prog_print.c | 433 static const char swz[] = "xyzw01!?"; /* See SWIZZLE_x definitions */ local 445 s[i++] = swz[GET_SWZ(swizzle, 0)]; 453 s[i++] = swz[GET_SWZ(swizzle, 1)]; 461 s[i++] = swz[GET_SWZ(swizzle, 2)]; 469 s[i++] = swz[GET_SWZ(swizzle, 3)]; 623 fprintf(f, "SWZ");
|
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_sampler.c | 203 const unsigned char swz[4] = local 216 &border_color, swz, is_integer);
|
st_sampler_view.c | 139 unsigned i, swz[4]; local 153 swz[i] = GET_SWZ(swizzle2, s); 156 swz[i] = SWIZZLE_ZERO; 159 swz[i] = SWIZZLE_ONE; 163 swz[i] = SWIZZLE_X; 167 return MAKE_SWIZZLE4(swz[0], swz[1], swz[2], swz[3]);
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
nv50_tex.c | 31 nv50_tic_swizzle(const struct nv50_format *fmt, unsigned swz, bool tex_int) 33 switch (swz) { 71 uint32_t swz[4]; local 100 swz[0] = nv50_tic_swizzle(fmt, view->pipe.swizzle_r, tex_int); 101 swz[1] = nv50_tic_swizzle(fmt, view->pipe.swizzle_g, tex_int); 102 swz[2] = nv50_tic_swizzle(fmt, view->pipe.swizzle_b, tex_int); 103 swz[3] = nv50_tic_swizzle(fmt, view->pipe.swizzle_a, tex_int); 109 (swz[0] << G80_TIC_0_X_SOURCE__SHIFT) | 110 (swz[1] << G80_TIC_0_Y_SOURCE__SHIFT) | 111 (swz[2] << G80_TIC_0_Z_SOURCE__SHIFT) [all...] |
/external/deqp/modules/gles3/functional/ |
es3fTextureSwizzleTests.cpp | 49 static int swizzle (const tcu::RGBA& c, deUint32 swz) 51 switch (swz) 312 deUint32 swz = swizzles[swzNdx].swizzle; local 313 deUint32 swzR = (chanNdx == 0) ? swz : defaultSwizzles[0]; 314 deUint32 swzG = (chanNdx == 1) ? swz : defaultSwizzles[1]; 315 deUint32 swzB = (chanNdx == 2) ? swz : defaultSwizzles[2]; 316 deUint32 swzA = (chanNdx == 3) ? swz : defaultSwizzles[3];
|
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
nvc0_tex.c | 36 nv50_tic_swizzle(const struct nvc0_format *fmt, unsigned swz, bool tex_int) 38 switch (swz) { 75 uint32_t swz[4]; local 102 swz[0] = nv50_tic_swizzle(fmt, view->pipe.swizzle_r, tex_int); 103 swz[1] = nv50_tic_swizzle(fmt, view->pipe.swizzle_g, tex_int); 104 swz[2] = nv50_tic_swizzle(fmt, view->pipe.swizzle_b, tex_int); 105 swz[3] = nv50_tic_swizzle(fmt, view->pipe.swizzle_a, tex_int); 112 tic[0] |= swz[0] << GM107_TIC2_0_X_SOURCE__SHIFT; 113 tic[0] |= swz[1] << GM107_TIC2_0_Y_SOURCE__SHIFT; 114 tic[0] |= swz[2] << GM107_TIC2_0_Z_SOURCE__SHIFT 286 uint32_t swz[4]; local [all...] |
/external/mesa3d/src/gallium/drivers/r600/sb/ |
sb_ra_coalesce.cpp | 469 unsigned swz[4] = {0, 1, 2, 3}; local 538 if (ch[i]->pin.chan() != swz[i]) 548 unsigned bit = sel_chan(reg, swz[i]); 555 std::copy(swz, swz + 4, min_swz); 563 } while (std::next_permutation(swz, swz + 4));
|