/external/mesa3d/src/gallium/drivers/r300/ |
r300_state_derived.c | 191 enum r300_rs_swizzle swiz) 194 if (swiz == SWIZ_0001) { 211 enum r300_rs_swizzle swiz) 213 if (swiz == SWIZ_X001) { 219 } else if (swiz == SWIZ_XY01) { 242 enum r300_rs_swizzle swiz) 245 if (swiz == SWIZ_0001) { 266 enum r300_rs_swizzle swiz) 268 if (swiz == SWIZ_X001) { 273 } else if (swiz == SWIZ_XY01) [all...] |
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
fd5_format.c | 416 tex_swiz(unsigned swiz) 418 switch (swiz) { 435 unsigned char swiz[4] = { local 439 util_format_compose_swizzles(desc->swizzle, swiz, rswiz);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_reg.h | 100 brw_is_single_value_swizzle(unsigned swiz) 102 return (swiz == BRW_SWIZZLE_XXXX || 103 swiz == BRW_SWIZZLE_YYYY || 104 swiz == BRW_SWIZZLE_ZZZZ || 105 swiz == BRW_SWIZZLE_WWWW);
|
brw_disasm.c | 893 src_swizzle(FILE *file, unsigned swiz) 895 unsigned x = BRW_GET_SWZ(swiz, BRW_CHANNEL_X); 896 unsigned y = BRW_GET_SWZ(swiz, BRW_CHANNEL_Y); 897 unsigned z = BRW_GET_SWZ(swiz, BRW_CHANNEL_Z); 898 unsigned w = BRW_GET_SWZ(swiz, BRW_CHANNEL_W); 904 } else if (swiz != BRW_SWIZZLE_XYZW) { [all...] |
brw_vec4_nir.cpp | [all...] |
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
fd2_gmem.c | 182 uint32_t swiz; local 190 swiz = fd2_tex_swiz(psurf->format, PIPE_SWIZZLE_X, PIPE_SWIZZLE_Y, 205 swiz |
|
disasm-a2xx.c | 67 uint32_t swiz, uint32_t negate, uint32_t abs) 74 if (swiz) { 78 printf("%c", chan_names[(swiz + i) & 0x3]); 79 swiz >>= 2;
|
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
fd3_format.c | 369 tex_swiz(unsigned swiz) 371 switch (swiz) { 388 unsigned char swiz[4] = { local 392 util_format_compose_swizzles(desc->swizzle, swiz, rswiz);
|
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
fd4_format.c | 417 tex_swiz(unsigned swiz) 419 switch (swiz) { 436 unsigned char swiz[4] = { local 440 util_format_compose_swizzles(desc->swizzle, swiz, rswiz);
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
tgsi_lowering.c | 76 get_swiz(unsigned *swiz, const struct tgsi_src_register *src) 78 swiz[0] = src->SwizzleX; 79 swiz[1] = src->SwizzleY; 80 swiz[2] = src->SwizzleZ; 81 swiz[3] = src->SwizzleW; 89 unsigned swiz[4]; local 90 get_swiz(swiz, &orig_src->Register); 92 src->Register.SwizzleX = swiz[sx]; 93 src->Register.SwizzleY = swiz[sy]; 94 src->Register.SwizzleZ = swiz[sz] 118 unsigned swiz[4]; local [all...] |
/external/mesa3d/src/compiler/glsl/ |
ir.cpp | 75 ir_swizzle *swiz = lhs->as_swizzle(); local 77 if (swiz == NULL) 83 for (unsigned i = 0; i < swiz->mask.num_components; i++) { 87 case 0: c = swiz->mask.x; break; 88 case 1: c = swiz->mask.y; break; 89 case 2: c = swiz->mask.z; break; 90 case 3: c = swiz->mask.w; break; 96 rhs_swiz.num_components = swiz->val->type->vector_elements; 100 lhs = swiz->val; [all...] |
ir_reader.cpp | 561 else if (strcmp(tag->value(), "swiz") == 0) { 760 s_symbol *swiz; local 763 s_pattern pat[] = { "swiz", swiz, sub }; 765 ir_read_error(expr, "expected (swiz <swizzle> <rvalue>)"); 769 if (strlen(swiz->value()) > 4) { 770 ir_read_error(expr, "expected a valid swizzle; found %s", swiz->value()); 778 ir_swizzle *ir = ir_swizzle::create(rvalue, swiz->value(), [all...] |
ir_print_visitor.cpp | 373 const unsigned swiz[4] = { local 380 fprintf(f, "(swiz "); 382 fprintf(f, "%c", "xyzw"[swiz[i]]);
|
glsl_to_nir.cpp | 1205 unsigned swiz[4]; local 1393 unsigned swiz[4] = { local [all...] |
/external/mesa3d/src/intel/vulkan/ |
genX_pipeline.c | 316 struct GENX(3DSTATE_SBE_SWIZ) swiz = { 320 # define swiz sbe macro 356 swiz.Attribute[input_index].ConstantSource = PRIM_ID; 357 swiz.Attribute[input_index].ComponentOverrideX = true; 358 swiz.Attribute[input_index].ComponentOverrideY = true; 359 swiz.Attribute[input_index].ComponentOverrideZ = true; 360 swiz.Attribute[input_index].ComponentOverrideW = true; 368 swiz.Attribute[input_index].SourceAttribute = source_attr; 385 GENX(3DSTATE_SBE_SWIZ_pack)(&pipeline->batch, dw, &swiz); local [all...] |
/external/mesa3d/src/compiler/nir/ |
nir_lower_vars_to_ssa.c | 571 unsigned swiz[4]; local 573 swiz[i] = i < intrin->num_components ? i : 0; 575 new_def = nir_swizzle(&b, intrin->src[0].ssa, swiz,
|
nir_lower_tex.c | 646 unsigned swiz[4] = { swizzle[0], swizzle[1], swizzle[2], swizzle[3] }; local 648 swizzled = nir_swizzle(b, &tex->dest.ssa, swiz, 4, false); 675 static const unsigned swiz[4] = {0, 1, 2, 0}; local 676 nir_ssa_def *comp = nir_swizzle(b, &tex->dest.ssa, swiz, 3, true);
|
nir_builder.h | 298 nir_swizzle(nir_builder *build, nir_ssa_def *src, const unsigned swiz[4], 304 alu_src.swizzle[i] = swiz[i];
|
/external/mesa3d/src/amd/vulkan/ |
radv_meta_blit2d.c | 590 unsigned swiz[4] = { 0, 1 }; local 591 nir_ssa_def *tex_pos = nir_swizzle(&b, pos_int, swiz, 2, false); 619 unsigned swiz[4] = { 0, 1 }; local 620 nir_ssa_def *tex_pos = nir_swizzle(&b, pos_int, swiz, 2, false); 648 unsigned swiz[4] = { 0, 1 }; local 649 nir_ssa_def *tex_pos = nir_swizzle(&b, pos_int, swiz, 2, false); [all...] |
/external/mesa3d/src/gallium/drivers/etnaviv/ |
etnaviv_compiler.c | 391 .swiz = INST_SWIZ_BROADCAST(idx & 3) 436 imm_src.swiz = INST_SWIZ_IDENTITY; 446 unsigned int idx = imm->reg * 4 + ((imm->swiz >> (swiz_idx * 2)) & 3); 780 .swiz = swizzle, 808 src.swiz = inst_swiz_compose(src.swiz, swizzle); 852 inst->src[src].swiz = INST_SWIZ_IDENTITY; /* swizzling happens on MOV */ 918 .swiz = INST_SWIZ_IDENTITY 935 .swiz = INST_SWIZ(reg->SwizzleX, reg->SwizzleY, reg->SwizzleZ, reg->SwizzleW), 964 src.swiz = INST_SWIZ_IDENTITY [all...] |
/external/mesa3d/src/gallium/drivers/ilo/core/ |
ilo_builder_3d_bottom.h | 89 memcpy(&dw[8], sbe->swiz, sizeof(*dw) * 8); 136 memcpy(&dw[2], sbe->swiz, sizeof(*dw) * 8); 176 memcpy(&dw[1], sbe->swiz, sizeof(*dw) * 8);
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
r500_fragprog_emit.c | 361 unsigned int swiz = 0; local 364 swiz |= (GET_SWZ(swizzle, i) & 0x3) << i*2; 365 return swiz;
|
/external/mesa3d/src/gallium/drivers/vc4/ |
vc4_program.c | 135 vc4_nir_get_swizzled_channel(nir_builder *b, nir_ssa_def **srcs, int swiz) 137 switch (swiz) { 150 return srcs[swiz]; 877 int swiz = instr->src[0].swizzle[i]; local 880 src = ntq_get_src(c, vec4->src[swiz].src, 881 vec4->src[swiz].swizzle[0]); 883 src = ntq_get_src(c, instr->src[0].src, swiz); [all...] |
/external/mesa3d/src/gallium/auxiliary/nir/ |
tgsi_to_nir.c | 38 #define SWIZ(X, Y, Z, W) (unsigned[4]){ \ 93 nir_swizzle(b, src, SWIZ(x, y, z, w), 4, false) 94 #define ttn_channel(b, src, swiz) \ 95 nir_swizzle(b, src, SWIZ(swiz, swiz, swiz, swiz), 1, false) [all...] |
/external/mesa3d/src/compiler/spirv/ |
spirv_to_nir.c | 1933 unsigned swiz[4]; local 1981 unsigned swiz[4] = {0, 1, 2, 3}; local 2241 unsigned swiz[4] = { index }; local [all...] |