| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/ |
| H A D | r300_fragprog_swizzle.c | 79 unsigned int swz = GET_SWZ(swizzle, comp); local in function:lookup_native_swizzle 80 if (swz == RC_SWIZZLE_UNUSED) 82 if (swz != GET_SWZ(sd->hash, comp)) 123 unsigned int swz = GET_SWZ(reg.Swizzle, j); local in function:r300_swizzle_is_native 124 if (swz == RC_SWIZZLE_UNUSED) 126 if (swz != j) 166 unsigned int swz; local in function:r300_swizzle_split 169 swz = GET_SWZ(src.Swizzle, comp); 170 if (swz == RC_SWIZZLE_UNUSED) 172 if (swz 231 unsigned int swz = GET_SWZ(swizzle, 0); local in function:r300FPTranslateAlphaSwizzle [all...] |
| 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 in function:swizzle_mask 235 unsigned int swz = GET_SWZ(conversion_swizzle, i); local in function:rc_normal_rewrite_writemask 269 unsigned int swz = GET_SWZ(swizzle, chan); local in function:rc_rewrite_swizzle 295 rc_swizzle swz = GET_SWZ(swizzle, i); local in function:lmul_swizzle 333 unsigned int swz = RC_SWIZZLE_UNUSED; local in function:rc_source_type_swz 725 int swz = GET_SWZ(swizzle, chan); local in function:rc_get_constant_value 744 unsigned int swz, chan; local in function:rc_get_scalar_src_swz [all...] |
| H A D | 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);
|
| H A D | radeon_inline_literals.c | 110 unsigned swz, chan; local in function:rc_inline_literals 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];
|
| H A D | radeon_optimize.c | 204 unsigned int swz = GET_SWZ(src.Swizzle, chan); local in function:is_src_uniform_constant 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 in function:constant_folding_mad 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 270 rc_swizzle swz = 0; local in function:constant_folding_mul 303 rc_swizzle swz = 0; local in function:constant_folding_add 362 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); local in function:constant_folding 440 unsigned int swz = GET_SWZ(src.Swizzle, chan); local in function:src_has_const_swz 555 rc_swizzle swz = local in function:is_presub_candidate 647 unsigned int i, swz; local in function:peephole_add_presub_inv 720 unsigned int chan = 0, swz, i; local in function:peephole_mul_omod [all...] |
| H A D | 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)); \
|
| 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 in function:rc_pair_foreach_source_that_rgb_reads 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 | radeon_pair_translate.c | 137 unsigned int swz = GET_SWZ(src.Swizzle, j); local in function:src_uses 138 if (swz < 3) 140 else if (swz < 4) 224 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); local in function:set_pair_instruction 226 if (swz < RC_SWIZZLE_W) 228 else if (swz == RC_SWIZZLE_W) 231 if (swz < RC_SWIZZLE_UNUSED) 250 unsigned int swz; local in function:set_pair_instruction 252 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle); 254 swz [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/ |
| H A D | r300_fragprog_swizzle.c | 79 unsigned int swz = GET_SWZ(swizzle, comp); local in function:lookup_native_swizzle 80 if (swz == RC_SWIZZLE_UNUSED) 82 if (swz != GET_SWZ(sd->hash, comp)) 123 unsigned int swz = GET_SWZ(reg.Swizzle, j); local in function:r300_swizzle_is_native 124 if (swz == RC_SWIZZLE_UNUSED) 126 if (swz != j) 166 unsigned int swz; local in function:r300_swizzle_split 169 swz = GET_SWZ(src.Swizzle, comp); 170 if (swz == RC_SWIZZLE_UNUSED) 172 if (swz 231 unsigned int swz = GET_SWZ(swizzle, 0); local in function:r300FPTranslateAlphaSwizzle [all...] |
| 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 in function:swizzle_mask 235 unsigned int swz = GET_SWZ(conversion_swizzle, i); local in function:rc_normal_rewrite_writemask 269 unsigned int swz = GET_SWZ(swizzle, chan); local in function:rc_rewrite_swizzle 295 rc_swizzle swz = GET_SWZ(swizzle, i); local in function:lmul_swizzle 333 unsigned int swz = RC_SWIZZLE_UNUSED; local in function:rc_source_type_swz 725 int swz = GET_SWZ(swizzle, chan); local in function:rc_get_constant_value 744 unsigned int swz, chan; local in function:rc_get_scalar_src_swz [all...] |
| H A D | 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);
|
| H A D | radeon_inline_literals.c | 110 unsigned swz, chan; local in function:rc_inline_literals 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];
|
| H A D | radeon_optimize.c | 206 unsigned int swz = GET_SWZ(src.Swizzle, chan); local in function:is_src_uniform_constant 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 in function:constant_folding_mad 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 272 rc_swizzle swz = 0; local in function:constant_folding_mul 305 rc_swizzle swz = 0; local in function:constant_folding_add 364 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); local in function:constant_folding 442 unsigned int swz = GET_SWZ(src.Swizzle, chan); local in function:src_has_const_swz 557 rc_swizzle swz = local in function:is_presub_candidate 649 unsigned int i, swz; local in function:peephole_add_presub_inv 723 unsigned int chan = 0, swz, i; local in function:peephole_mul_omod [all...] |
| H A D | 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)); \
|
| 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 in function:rc_pair_foreach_source_that_rgb_reads 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 | radeon_pair_translate.c | 139 unsigned int swz = GET_SWZ(src.Swizzle, j); local in function:src_uses 140 if (swz < 3) 142 else if (swz < 4) 226 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); local in function:set_pair_instruction 228 if (swz < RC_SWIZZLE_W) 230 else if (swz == RC_SWIZZLE_W) 233 if (swz < RC_SWIZZLE_UNUSED) 252 unsigned int swz; local in function:set_pair_instruction 254 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle); 256 swz [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/program/ |
| H A D | prog_parameter.c | 99 GLuint swz[4]; local in function:lookup_parameter_constant 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 local in function:_mesa_add_typed_unnamed_constant [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/ |
| H A D | opt_vectorize.cpp | 139 ir_swizzle *swz = (ir_swizzle *)ir; local in function:rewrite_swizzle 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 238 write_mask_matches_swizzle(unsigned write_mask,const ir_swizzle * swz) argument [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/ |
| H A D | opt_vectorize.cpp | 139 ir_swizzle *swz = (ir_swizzle *)ir; local in function:rewrite_swizzle 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 238 write_mask_matches_swizzle(unsigned write_mask,const ir_swizzle * swz) argument [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/nv30/ |
| H A D | nv30_texture.c | 208 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz) argument 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 | [all...] |
| H A D | 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_ [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/ |
| H A D | nv30_texture.c | 208 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz) argument 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 | [all...] |
| H A D | 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_ [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/fp/ |
| H A D | Makefile.am | 51 add-swz.txt \ 75 mul-swz.txt \ 90 swz.txt \
|
| /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/ |
| H A D | ir3_lower_subgroups.c | 228 struct ir3_instruction *swz = local in function:lower_block 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;
|