| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/ |
| r300_fragprog_swizzle.c | 79 unsigned int swz = GET_SWZ(swizzle, comp); local 80 if (swz == RC_SWIZZLE_UNUSED) 82 if (swz != GET_SWZ(sd->hash, comp)) 123 unsigned int swz = GET_SWZ(reg.Swizzle, j); local 124 if (swz == RC_SWIZZLE_UNUSED) 126 if (swz != j) 166 unsigned int swz; local 169 swz = GET_SWZ(src.Swizzle, comp); 170 if (swz == RC_SWIZZLE_UNUSED) 172 if (swz == GET_SWZ(sd->hash, comp)) 231 unsigned int swz = GET_SWZ(swizzle, 0); local [all...] |
| 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_compiler_util.h | 41 unsigned int rc_swizzle_to_writemask(unsigned int swz); 43 rc_swizzle get_swz(unsigned int swz, rc_swizzle idx); 51 unsigned int combine_swizzles(unsigned int src, unsigned int 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_program_constants.h | 120 #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7) 122 #define SET_SWZ(swz, idx, newv) \ 124 (swz) = ((swz) & ~(7 << ((idx)*3))) | ((newv) << ((idx)*3)); \
|
| radeon_optimize.c | 206 unsigned int swz = GET_SWZ(src.Swizzle, chan); local 207 if (swz < 4) { 211 if (swz == RC_SWIZZLE_UNUSED) 215 *pswz = swz; 219 if (swz != *pswz || *pnegate != GET_BIT(src.Negate, chan)) { 231 rc_swizzle swz = 0; local 234 if (is_src_uniform_constant(inst->U.I.SrcReg[2], &swz, &negate)) { 235 if (swz == RC_SWIZZLE_ZERO) { 241 if (is_src_uniform_constant(inst->U.I.SrcReg[1], &swz, &negate)) { 242 if (swz == RC_SWIZZLE_ONE) 272 rc_swizzle swz = 0; local 305 rc_swizzle swz = 0; local 364 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); local 442 unsigned int swz = GET_SWZ(src.Swizzle, chan); local 557 rc_swizzle swz = local 649 unsigned int i, swz; local 723 unsigned int chan = 0, swz, i; local [all...] |
| 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...] |
| radeon_pair_translate.c | 139 unsigned int swz = GET_SWZ(src.Swizzle, j); local 140 if (swz < 3) 142 else if (swz < 4) 226 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); local 228 if (swz < RC_SWIZZLE_W) 230 else if (swz == RC_SWIZZLE_W) 233 if (swz < RC_SWIZZLE_UNUSED) 252 unsigned int swz; local 254 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle); 256 swz = GET_SWZ(inst->SrcReg[i].Swizzle, 3) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/ |
| r300_fragprog_swizzle.c | 79 unsigned int swz = GET_SWZ(swizzle, comp); local 80 if (swz == RC_SWIZZLE_UNUSED) 82 if (swz != GET_SWZ(sd->hash, comp)) 123 unsigned int swz = GET_SWZ(reg.Swizzle, j); local 124 if (swz == RC_SWIZZLE_UNUSED) 126 if (swz != j) 166 unsigned int swz; local 169 swz = GET_SWZ(src.Swizzle, comp); 170 if (swz == RC_SWIZZLE_UNUSED) 172 if (swz == GET_SWZ(sd->hash, comp)) 231 unsigned int swz = GET_SWZ(swizzle, 0); local [all...] |
| 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_compiler_util.h | 41 unsigned int rc_swizzle_to_writemask(unsigned int swz); 43 rc_swizzle get_swz(unsigned int swz, rc_swizzle idx); 51 unsigned int combine_swizzles(unsigned int src, unsigned int 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_program_constants.h | 120 #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7) 122 #define SET_SWZ(swz, idx, newv) \ 124 (swz) = ((swz) & ~(7 << ((idx)*3))) | ((newv) << ((idx)*3)); \
|
| 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...] |
| 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...] |
| 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...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/program/ |
| prog_parameter.c | 99 GLuint swz[4]; local 103 swz[j] = j; 109 swz[j] = k; 118 swz[j] = swz[j-1]; 122 *swizzleOut = MAKE_SWIZZLE4(swz[0], swz[1], swz[2], swz[3]); 350 GLuint swz = p->Size; /* 1, 2 or 3 for Y, Z, W * local [all...] |
| /xsrc/external/mit/MesaLib/dist/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...] |
| /xsrc/external/mit/MesaLib.old/dist/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...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/ |
| nv30_texture.c | 208 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz) 210 uint32_t data = fmt->swz[swz].src << 8; 211 if (swz <= PIPE_SWIZZLE_W) 212 data |= fmt->swz[swz].cmp; 214 data |= fmt->swz[cmp].cmp; 259 so->swz = fmt->swizzle; 260 so->swz |= swizzle(fmt, 3, tmpl->swizzle_a); 261 so->swz |= swizzle(fmt, 0, tmpl->swizzle_r) << 2 [all...] |
| nvfx_shader.h | 411 #define swz(s,x,y,z,w) nvfx_src_swz((s), NVFX_SWZ_##x, NVFX_SWZ_##y, NVFX_SWZ_##z, NVFX_SWZ_##w) macro 428 uint8_t swz[4]; member in struct:nvfx_src 486 .swz = { 0, 1, 2, 3 }, 497 dst.swz[NVFX_SWZ_X] = src.swz[x]; 498 dst.swz[NVFX_SWZ_Y] = src.swz[y]; 499 dst.swz[NVFX_SWZ_Z] = src.swz[z]; 500 dst.swz[NVFX_SWZ_W] = src.swz[w] [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/nv30/ |
| nv30_texture.c | 208 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz) 210 uint32_t data = fmt->swz[swz].src << 8; 211 if (swz <= PIPE_SWIZZLE_W) 212 data |= fmt->swz[swz].cmp; 214 data |= fmt->swz[cmp].cmp; 258 so->swz = fmt->swizzle; 259 so->swz |= swizzle(fmt, 3, tmpl->swizzle_a); 260 so->swz |= swizzle(fmt, 0, tmpl->swizzle_r) << 2 [all...] |
| nvfx_shader.h | 411 #define swz(s,x,y,z,w) nvfx_src_swz((s), NVFX_SWZ_##x, NVFX_SWZ_##y, NVFX_SWZ_##z, NVFX_SWZ_##w) macro 428 uint8_t swz[4]; member in struct:nvfx_src 486 .swz = { 0, 1, 2, 3 }, 497 dst.swz[NVFX_SWZ_X] = src.swz[x]; 498 dst.swz[NVFX_SWZ_Y] = src.swz[y]; 499 dst.swz[NVFX_SWZ_Z] = src.swz[z]; 500 dst.swz[NVFX_SWZ_W] = src.swz[w] [all...] |
| /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/ |
| ir3_lower_subgroups.c | 228 struct ir3_instruction *swz = local 230 ir3_dst_create(swz, instr->dsts[0]->num, instr->dsts[0]->flags); 231 ir3_dst_create(swz, instr->dsts[1]->num, instr->dsts[1]->flags); 232 ir3_src_create(swz, instr->srcs[0]->num, instr->srcs[0]->flags); 233 ir3_src_create(swz, instr->srcs[1]->num, instr->srcs[1]->flags); 234 swz->cat1.dst_type = swz->cat1.src_type = TYPE_U32; 235 swz->repeat = 1;
|
| /xsrc/external/mit/MesaLib/dist/src/mesa/program/ |
| prog_parameter.c | 99 GLuint swz[4]; local 103 swz[j] = j; 109 swz[j] = k; 118 swz[j] = swz[j-1]; 122 *swizzleOut = MAKE_SWIZZLE4(swz[0], swz[1], swz[2], swz[3]); 401 GLuint swz = p->Size; /* 1, 2 or 3 for Y, Z, W * local [all...] |