| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/ |
| H A D | opt_swizzle.cpp | 61 ir_swizzle *swiz = (*rvalue)->as_swizzle(); local in function:ir_opt_swizzle_visitor::handle_rvalue 63 if (!swiz) 68 while ((swiz2 = swiz->val->as_swizzle()) != NULL) { 81 if (swiz->mask.num_components >= 1) 82 swiz->mask.x = mask2[swiz->mask.x]; 83 if (swiz->mask.num_components >= 2) 84 swiz->mask.y = mask2[swiz->mask.y]; 85 if (swiz [all...] |
| H A D | hir_field_selection.cpp | 60 ir_swizzle *swiz = ir_swizzle::create(op, local in function:_mesa_ast_field_selection_to_hir 63 if (swiz != NULL) { 64 result = swiz;
|
| H A D | opt_constant_folding.cpp | 84 ir_swizzle *swiz = (*rvalue)->as_swizzle(); local in function:ir_constant_fold 85 if (swiz && !swiz->val->as_constant())
|
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/ |
| H A D | opt_swizzle.cpp | 61 ir_swizzle *swiz = (*rvalue)->as_swizzle(); local in function:ir_opt_swizzle_visitor::handle_rvalue 63 if (!swiz) 68 while ((swiz2 = swiz->val->as_swizzle()) != NULL) { 81 if (swiz->mask.num_components >= 1) 82 swiz->mask.x = mask2[swiz->mask.x]; 83 if (swiz->mask.num_components >= 2) 84 swiz->mask.y = mask2[swiz->mask.y]; 85 if (swiz [all...] |
| H A D | hir_field_selection.cpp | 60 ir_swizzle *swiz = ir_swizzle::create(op, local in function:_mesa_ast_field_selection_to_hir 63 if (swiz != NULL) { 64 result = swiz;
|
| H A D | opt_constant_folding.cpp | 84 ir_swizzle *swiz = (*rvalue)->as_swizzle(); local in function:ir_constant_fold 85 if (swiz && !swiz->val->as_constant())
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a6xx/ |
| H A D | fd6_format.c | 35 fd6_pipe2swiz(unsigned swiz) argument 37 switch (swiz) { 55 fd6_tex_swiz(enum pipe_format format, enum a6xx_tile_mode tile_mode, unsigned char *swiz, unsigned swizzle_r, argument 67 util_format_compose_swizzles(stencil_swiz, uswiz, swiz); 70 util_format_compose_swizzles(fswiz, uswiz, swiz); 76 memcpy(swiz, uswiz, sizeof(uswiz)); 81 util_format_compose_swizzles(desc->swizzle, uswiz, swiz); 92 unsigned char swiz[4]; local in function:fd6_tex_const_0 94 fd6_tex_swiz(format, rsc->layout.tile_mode, swiz, swizzle_r, swizzle_g, swizzle_b, swizzle_a); 101 A6XX_TEX_CONST_0_SWIZ_X(fd6_pipe2swiz(swiz[ [all...] |
| H A D | fd6_format.h | 37 enum a6xx_tex_swiz fd6_pipe2swiz(unsigned swiz); 39 void fd6_tex_swiz(enum pipe_format format, enum a6xx_tile_mode tile_mode, unsigned char *swiz,
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_nir_lower_io.c | 95 uint8_t swiz, 99 &desc->channel[swiz]; 102 if (swiz > PIPE_SWIZZLE_W) { 103 return vc4_nir_get_swizzled_channel(b, vpm_reads, swiz); 105 return vc4_nir_get_swizzled_channel(b, vpm_reads, swiz); 109 nir_i2f32(b, vpm_reads[swiz]), 113 return nir_i2f32(b, vpm_reads[swiz]); 123 vc4_nir_unpack_8f(b, temp, swiz), 130 swiz)), 135 return vc4_nir_unpack_8f(b, vpm, swiz); 92 vc4_nir_get_vattr_channel_vpm(struct vc4_compile * c,nir_builder * b,nir_ssa_def ** vpm_reads,uint8_t swiz,const struct util_format_description * desc) argument 210 uint8_t swiz = desc->swizzle[i]; local in function:vc4_nir_lower_vertex_attr [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_nir_lower_io.c | 96 uint8_t swiz, 100 &desc->channel[swiz]; 103 if (swiz > PIPE_SWIZZLE_W) { 104 return vc4_nir_get_swizzled_channel(b, vpm_reads, swiz); 106 return vc4_nir_get_swizzled_channel(b, vpm_reads, swiz); 110 nir_i2f32(b, vpm_reads[swiz]), 114 return nir_i2f32(b, vpm_reads[swiz]); 124 vc4_nir_unpack_8f(b, temp, swiz), 131 swiz)), 136 return vc4_nir_unpack_8f(b, vpm, swiz); 93 vc4_nir_get_vattr_channel_vpm(struct vc4_compile * c,nir_builder * b,nir_ssa_def ** vpm_reads,uint8_t swiz,const struct util_format_description * desc) argument 202 uint8_t swiz = desc->swizzle[i]; local in function:vc4_nir_lower_vertex_attr [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/ |
| H A D | fd2_util.c | 191 tex_swiz(unsigned swiz) argument 193 switch (swiz) { 215 unsigned char swiz[4] = { local in function:fd2_tex_swiz 222 util_format_compose_swizzles(desc->swizzle, swiz, rswiz); 234 unsigned char swiz[4], rswiz[4]; local in function:fd2_vtx_swiz 237 swiz[i] = (swizzle >> i * 3) & 7; 239 util_format_compose_swizzles(desc->swizzle, swiz, rswiz);
|
| H A D | ir2_private.h | 314 swiz_get(unsigned swiz, unsigned i) argument 316 return ((swiz >> i * 2) + i) & 3; 322 unsigned swiz = 0; local in function:swiz_merge 324 swiz |= swiz_set(swiz_get(swiz0, swiz_get(swiz1, i)), i); 325 return swiz; 331 unsigned swiz = 0; local in function:swiz_merge_p 333 swiz |= swiz_set(swiz_get(*swiz0, swiz_get(swiz1, i)), i); 334 *swiz0 = swiz;
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_asm.c | 82 VIV_ISA_WORD_1_TEX_SWIZ(inst->tex.swiz) | 86 VIV_ISA_WORD_1_SRC0_SWIZ(inst->src[0].swiz) | 94 VIV_ISA_WORD_2_SRC1_SWIZ(inst->src[1].swiz) | 102 VIV_ISA_WORD_3_SRC2_SWIZ(inst->src[2].swiz) |
|
| H A D | etnaviv_asm.h | 67 unsigned swiz:8; /* INST_SWIZ */ member in struct:etna_inst_tex 74 unsigned swiz:8; /* INST_SWIZ */ member in struct:etna_inst_src 114 * src[0-2]_reg, use, swiz, neg, abs, amode, rgroup,
|
| H A D | etnaviv_disasm.c | 101 uint8_t swiz; member in struct:src_operand 108 uint8_t swiz; member in struct:tex_operand 310 print_swiz(uint8_t swiz) argument 313 if (swiz == 0xe4) 316 const unsigned x = swiz & 0x3; 317 const unsigned y = (swiz & 0x0C) >> 2; 318 const unsigned z = (swiz & 0x30) >> 4; 319 const unsigned w = (swiz & 0xc0) >> 6; 378 print_swiz(tex->swiz); 400 print_swiz(src->swiz); [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_asm.c | 82 VIV_ISA_WORD_1_TEX_SWIZ(inst->tex.swiz) | 86 VIV_ISA_WORD_1_SRC0_SWIZ(inst->src[0].swiz) | 94 VIV_ISA_WORD_2_SRC1_SWIZ(inst->src[1].swiz) | 102 VIV_ISA_WORD_3_SRC2_SWIZ(inst->src[2].swiz) |
|
| H A D | etnaviv_compiler_nir.h | 98 update_swiz_mask(nir_alu_instr *alu, nir_dest *dest, unsigned *swiz, unsigned *mask) argument 100 if (!swiz) 114 swizzle |= (*swiz >> src_swiz * 2 & 3) << i * 2; 119 *swiz = swizzle; 124 real_dest(nir_dest *dest, unsigned *swiz, unsigned *mask) argument 167 update_swiz_mask(alu, dest, swiz, mask); 180 update_swiz_mask(alu, NULL, swiz, mask); 189 return real_dest(&alu->dest.dest, swiz, mask);
|
| H A D | etnaviv_compiler_nir_emit.c | 157 src[0].swiz = inst_swiz_compose(src[0].swiz, swiz_scalar); 158 src[1].swiz = inst_swiz_compose(src[1].swiz, swiz_scalar); 202 .tex.swiz = dst_swiz, 238 inst.src[0].swiz = INST_SWIZ_BROADCAST(inst.src[0].swiz & 3); 256 inst.src[0].swiz = INST_SWIZ_BROADCAST(inst.src[0].swiz & 3);
|
| H A D | etnaviv_disasm.c | 292 print_swiz(uint8_t swiz) argument 295 if (swiz == 0xe4) 298 const unsigned x = swiz & 0x3; 299 const unsigned y = (swiz & 0x0C) >> 2; 300 const unsigned z = (swiz & 0x30) >> 4; 301 const unsigned w = (swiz & 0xc0) >> 6; 360 print_swiz(tex->swiz); 398 print_swiz(src->swiz); 550 .swiz = instr->tex_swiz, 559 .swiz [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a2xx/ |
| H A D | ir2_private.h | 303 static inline unsigned swiz_get(unsigned swiz, unsigned i) argument 305 return ((swiz >> i * 2) + i) & 3; 310 unsigned swiz = 0; local in function:swiz_merge 312 swiz |= swiz_set(swiz_get(swiz0, swiz_get(swiz1, i)), i); 313 return swiz; 318 unsigned swiz = 0; local in function:swiz_merge_p 320 swiz |= swiz_set(swiz_get(*swiz0, swiz_get(swiz1, i)), i); 321 *swiz0 = swiz;
|
| H A D | fd2_util.c | 308 tex_swiz(unsigned swiz) argument 310 switch (swiz) { 327 unsigned char swiz[4] = { local in function:fd2_tex_swiz 331 util_format_compose_swizzles(desc->swizzle, swiz, rswiz);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a6xx/ |
| H A D | fd6_format.h | 42 enum a6xx_tex_swiz fd6_pipe2swiz(unsigned swiz); 44 void fd6_tex_swiz(enum pipe_format format, unsigned char *swiz,
|
| /xsrc/external/mit/MesaLib/dist/src/freedreno/vulkan/ |
| H A D | tu_image.c | 86 compose_swizzle(unsigned char *swiz, const VkComponentMapping *mapping) argument 88 unsigned char src_swiz[4] = { swiz[0], swiz[1], swiz[2], swiz[3] }; 95 swiz[i] = src_swiz[i]; 98 swiz[i] = src_swiz[vk_swiz[i] - VK_COMPONENT_SWIZZLE_R]; 101 swiz[i] = A6XX_TEX_ZERO; 104 swiz[i] = A6XX_TEX_ONE; 119 unsigned char swiz[ local in function:tu6_texswiz [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/ |
| H A D | st_nir_lower_builtin.c | 207 unsigned swiz[4]; local in function:lower_builtin_block 209 swiz[i] = GET_SWZ(element->swizzle, i); 210 assert(swiz[i] <= SWIZZLE_W); 212 def = nir_swizzle(b, def, swiz, intrin->num_components, true);
|
| /xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/ |
| H A D | st_nir_lower_builtin.c | 222 unsigned swiz[NIR_MAX_VEC_COMPONENTS] = {0}; local in function:lower_builtin_block 224 swiz[i] = GET_SWZ(element->swizzle, i); 225 assert(swiz[i] <= SWIZZLE_W); 227 def = nir_swizzle(b, def, swiz, intrin->num_components);
|