/external/skia/src/gpu/ |
D | Swizzle.h | 20 class Swizzle { 24 constexpr Swizzle() : Swizzle(0x3210) {} in Swizzle() function 25 explicit constexpr Swizzle(const char c[4]); 27 constexpr Swizzle(const Swizzle&); 28 constexpr Swizzle& operator=(const Swizzle& that); 30 static constexpr Swizzle Concat(const Swizzle& a, const Swizzle& b); 32 constexpr bool operator==(const Swizzle& that) const { return fKey == that.fKey; } 33 constexpr bool operator!=(const Swizzle& that) const { return !(*this == that); } 59 static constexpr Swizzle RGBA() { return Swizzle("rgba"); } in RGBA() 60 static constexpr Swizzle BGRA() { return Swizzle("bgra"); } in BGRA() [all …]
|
D | Swizzle.cpp | 14 void Swizzle::apply(SkRasterPipeline* pipeline) const { in apply() 17 case Swizzle("rgba").asKey(): in apply() 19 case Swizzle("bgra").asKey(): in apply() 22 case Swizzle("aaa1").asKey(): in apply() 25 case Swizzle("rgb1").asKey(): in apply() 28 case Swizzle("a001").asKey(): in apply() 43 SkString Swizzle::asString() const { in asString()
|
/external/libdrm/intel/tests/ |
D | gen6-3d.batch-ref.txt | 91 0x12300168: 0x00200810: Attrib Out 0, Attrib Swizzle enable, VUE read length 1, VUE read of… 98 … Attrib 1 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 0 (Override , Const So… 99 … Attrib 3 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 2 (Override , Const So… 100 … Attrib 5 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 4 (Override , Const So… 101 … Attrib 7 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 6 (Override , Const So… 102 … Attrib 9 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 8 (Override , Const So… 103 … Attrib 11 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 10 (Override , Const So… 104 … Attrib 13 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 12 (Override , Const So… 105 … Attrib 15 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 14 (Override , Const So… 214 0x12300354: 0x00600810: Attrib Out 1, Attrib Swizzle enable, VUE read length 1, VUE read of… [all …]
|
/external/mesa3d/src/mesa/program/ |
D | prog_opt_constant_fold.c | 59 src.Swizzle = swiz; in src_reg_for_float() 74 src.Swizzle = swiz; in src_reg_for_vec4() 84 && (a->Swizzle == b->Swizzle) in src_regs_are_same() 97 data[0] = value[GET_SWZ(r->Swizzle, 0)].f; in get_value() 98 data[1] = value[GET_SWZ(r->Swizzle, 1)].f; in get_value() 99 data[2] = value[GET_SWZ(r->Swizzle, 2)].f; in get_value() 100 data[3] = value[GET_SWZ(r->Swizzle, 3)].f; in get_value() 153 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() 183 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() 185 inst->SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() [all …]
|
D | programopt.c | 95 newInst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; in insert_mvp_dp4_code() 98 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_dp4_code() 166 newInst[0].SrcReg[0].Swizzle = SWIZZLE_XXXX; in insert_mvp_mad_code() 169 newInst[0].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() 178 newInst[i].SrcReg[0].Swizzle = MAKE_SWIZZLE4(i,i,i,i); in insert_mvp_mad_code() 181 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() 184 newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() 193 newInst[3].SrcReg[0].Swizzle = SWIZZLE_WWWW; in insert_mvp_mad_code() 196 newInst[3].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() 199 newInst[3].SrcReg[2].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() [all …]
|
/external/skia/src/gpu/graphite/ |
D | TextureProxyView.h | 25 TextureProxyView(sk_sp<TextureProxy> proxy, Swizzle swizzle) in TextureProxyView() 60 Swizzle swizzle() const { return fSwizzle; } in swizzle() 62 void concatSwizzle(Swizzle swizzle) { in concatSwizzle() 63 fSwizzle = skgpu::Swizzle::Concat(fSwizzle, swizzle); in concatSwizzle() 66 TextureProxyView makeSwizzle(Swizzle swizzle) const & { in makeSwizzle() 67 return {fProxy, Swizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle() 70 TextureProxyView makeSwizzle(Swizzle swizzle) && { in makeSwizzle() 71 return {std::move(fProxy), Swizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle() 92 Swizzle fSwizzle;
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_vertprog.c | 286 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src() 287 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src() 288 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src() 289 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src() 298 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 299 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 300 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 301 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 606 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program() 607 src[i].Swizzle &= ~(SWIZZLE_W << (j*3)); in r200_translate_vertex_program() [all …]
|
/external/skia/src/gpu/ganesh/ |
D | GrDataUtils.cpp | 348 static skgpu::Swizzle get_load_and_src_swizzle(GrColorType ct, SkRasterPipelineOp* load, in get_load_and_src_swizzle() 350 skgpu::Swizzle swizzle("rgba"); in get_load_and_src_swizzle() 358 case GrColorType::kARGB_4444: swizzle = skgpu::Swizzle("bgra"); in get_load_and_src_swizzle() 360 case GrColorType::kBGRA_4444: swizzle = skgpu::Swizzle("gbar"); in get_load_and_src_swizzle() 366 swizzle = skgpu::Swizzle("bgra"); in get_load_and_src_swizzle() 386 swizzle = skgpu::Swizzle("000r"); in get_load_and_src_swizzle() 389 swizzle = skgpu::Swizzle("000r"); in get_load_and_src_swizzle() 392 swizzle = skgpu::Swizzle("rrr1"); in get_load_and_src_swizzle() 395 swizzle = skgpu::Swizzle("aaa1"); in get_load_and_src_swizzle() 398 swizzle = skgpu::Swizzle("r001"); in get_load_and_src_swizzle() [all …]
|
D | GrSurfaceProxyView.cpp | 49 void GrSurfaceProxyView::concatSwizzle(skgpu::Swizzle swizzle) { in concatSwizzle() 50 fSwizzle = skgpu::Swizzle::Concat(fSwizzle, swizzle); in concatSwizzle() 53 GrSurfaceProxyView GrSurfaceProxyView::makeSwizzle(skgpu::Swizzle swizzle) const& { in makeSwizzle() 54 return {fProxy, fOrigin, skgpu::Swizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle() 57 GrSurfaceProxyView GrSurfaceProxyView::makeSwizzle(skgpu::Swizzle swizzle) && { in makeSwizzle() 58 return {std::move(fProxy), fOrigin, skgpu::Swizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle()
|
D | GrSurfaceProxyView.h | 38 GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy, GrSurfaceOrigin origin, skgpu::Swizzle swizzle) in GrSurfaceProxyView() 72 skgpu::Swizzle swizzle() const { return fSwizzle; } in swizzle() 74 void concatSwizzle(skgpu::Swizzle swizzle); 76 GrSurfaceProxyView makeSwizzle(skgpu::Swizzle swizzle) const&; 78 GrSurfaceProxyView makeSwizzle(skgpu::Swizzle swizzle) &&; 108 skgpu::Swizzle fSwizzle;
|
D | GrPipeline.h | 65 skgpu::Swizzle fWriteSwizzle; 75 const skgpu::Swizzle& writeSwizzle, 84 const skgpu::Swizzle& writeSwizzle, 196 const skgpu::Swizzle& writeSwizzle() const { return fWriteSwizzle; } in writeSwizzle() 230 skgpu::Swizzle fWriteSwizzle;
|
/external/mesa3d/src/mesa/main/ |
D | format_parser.py | 109 class Swizzle: class 148 swizzle = [Swizzle.__identity_str.index(c) for c in swizzle] 152 assert isinstance(s, int) and 0 <= s and s <= Swizzle.SWIZZLE_NONE 156 self.__list = swizzle + [Swizzle.SWIZZLE_NONE] * (4 - len(swizzle)) 169 return ''.join(Swizzle.__identity_str[i] for i in self.__list) 180 assert idx >= Swizzle.SWIZZLE_X and idx <= Swizzle.SWIZZLE_NONE 181 if idx <= Swizzle.SWIZZLE_W: 204 assert isinstance(other, Swizzle) 205 return Swizzle(self[x] for x in other) 224 rev = [Swizzle.SWIZZLE_NONE] * 4 [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
D | rc_test_helpers.c | 120 struct match_info Swizzle; member 160 tokens.Swizzle.String = src_str + matches[5].rm_so; in init_rc_normal_src() 161 tokens.Swizzle.Length = match_length(matches, 5); in init_rc_normal_src() 193 if (tokens.Swizzle.Length == 0) { in init_rc_normal_src() 194 src_reg->Swizzle = RC_SWIZZLE_XYZW; in init_rc_normal_src() 197 src_reg->Swizzle = RC_MAKE_SWIZZLE_SMEAR(RC_SWIZZLE_UNUSED); in init_rc_normal_src() 198 if (tokens.Swizzle.String[0] != '.') { in init_rc_normal_src() 202 for (i = 0; i < 4 && str_index < tokens.Swizzle.Length; in init_rc_normal_src() 204 if (tokens.Swizzle.String[str_index] == '-') { in init_rc_normal_src() 208 switch(tokens.Swizzle.String[str_index]) { in init_rc_normal_src() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_dataflow_swizzles.c | 49 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) in rewrite_source() 70 SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, RC_SWIZZLE_UNUSED); in rewrite_source() 72 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan); in rewrite_source() 87 inst->U.I.SrcReg[src].Swizzle = 0; in rewrite_source() 91 SET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan, in rewrite_source() 115 unsigned swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant() 125 new_swizzle = reg->Swizzle; in try_rewrite_constant() 135 unsigned chan_swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant() 327 swz3 = GET_SWZ(reg->Swizzle, 3); in try_rewrite_constant() 332 unsigned old_swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant() [all …]
|
D | radeon_pair_translate.c | 46 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; in final_rewrite() 67 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; in final_rewrite() 69 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; in final_rewrite() 74 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; in final_rewrite() 137 unsigned int swz = GET_SWZ(src.Swizzle, j); in src_uses() 224 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); in set_pair_instruction() 242 pair->RGB.Arg[i].Swizzle = in set_pair_instruction() 243 rc_init_swizzle(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction() 252 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle); in set_pair_instruction() 254 swz = GET_SWZ(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction() [all …]
|
D | radeon_compiler_util.c | 203 sub->Arg[i].Swizzle = in rc_pair_rewrite_writemask() 204 rc_adjust_channels(sub->Arg[i].Swizzle, in rc_pair_rewrite_writemask() 215 src->Swizzle = rc_adjust_channels(src->Swizzle, *conversion_swizzle); in normal_rewrite_writemask_cb() 292 tmp.Swizzle = 0; in lmul_swizzle() 297 tmp.Swizzle |= GET_SWZ(srcreg.Swizzle, swz) << (i*3); in lmul_swizzle() 300 tmp.Swizzle |= swz << (i*3); in lmul_swizzle() 309 reg->Swizzle = RC_SWIZZLE_XYZW; in reset_srcreg() 408 rc_source_type_swz(src->Swizzle)); in can_use_presub_read_cb() 451 src_type0 = rc_source_type_swz(presub_src0->Swizzle); in rc_inst_can_use_presub() 458 src_type1 = rc_source_type_swz(presub_src1->Swizzle); in rc_inst_can_use_presub() [all …]
|
D | radeon_program_tex.c | 41 reg.Swizzle = combine_swizzles(RC_SWIZZLE_0000, in shadow_fail_value() 52 reg.Swizzle = combine_swizzles(RC_SWIZZLE_1111, in shadow_pass_value() 96 inst_rcp->U.I.SrcReg[0].Swizzle = in projective_divide() 97 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in projective_divide() 106 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in projective_divide() 185 inst_rcp->U.I.SrcReg[0].Swizzle = in radeonTransformTEX() 186 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in radeonTransformTEX() 197 inst_mul->U.I.SrcReg[0].Swizzle = in radeonTransformTEX() 198 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 2)); in radeonTransformTEX() 202 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in radeonTransformTEX() [all …]
|
D | r500_fragprog.c | 99 if (GET_SWZ(inst_if->U.I.SrcReg[0].Swizzle, 0) == RC_SWIZZLE_X) { in r500_transform_IF() 115 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( in r500_transform_IF() 116 inst_mov->U.I.SrcReg[0].Swizzle, in r500_transform_IF() 120 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( in r500_transform_IF() 121 inst_mov->U.I.SrcReg[0].Swizzle, in r500_transform_IF() 175 inst_if->U.I.SrcReg[0].Swizzle = RC_MAKE_SWIZZLE( in r500_transform_IF() 197 if (opcode == RC_OPCODE_KIL && (reg.Swizzle != RC_SWIZZLE_XYZW || reg.Negate != RC_MASK_NONE)) in r500_swizzle_is_native() 201 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() 217 if (reg.Swizzle == RC_SWIZZLE_XYZW && !reg.Abs && !reg.Negate) in r500_swizzle_is_native() 227 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() [all …]
|
D | radeon_optimize.c | 59 combine.Negate = swizzle_mask(outer.Swizzle, inner.Negate); in chain_srcregs() 62 combine.Swizzle = combine_swizzles(inner.Swizzle, outer.Swizzle); in chain_srcregs() 74 rc_swizzle_to_writemask(src->Swizzle), in copy_propagate_scan_read() 113 && (rc_swizzle_to_writemask(src->Swizzle) & sc_data->Mask)) { in src_clobbered_reads_cb() 204 unsigned int swz = GET_SWZ(src.Swizzle, chan); in is_src_uniform_constant() 282 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in constant_folding_mul() 295 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in constant_folding_mul() 340 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) <= 3) in constant_folding() 362 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); in constant_folding() 386 SET_SWZ(newsrc.Swizzle, chan, newswz); in constant_folding() [all …]
|
/external/skia/gm/ |
D | clear_swizzle.cpp | 37 skgpu::Swizzle readSwizzle = skgpu::Swizzle::Concat(sfc->readSwizzle(), in __anon6ca87a1f0102() 38 skgpu::Swizzle{"bgra"}); in __anon6ca87a1f0102() 39 skgpu::Swizzle writeSwizzle = skgpu::Swizzle::Concat(sfc->readSwizzle(), in __anon6ca87a1f0102() 40 skgpu::Swizzle{"bgra"}); in __anon6ca87a1f0102()
|
/external/skia/src/gpu/ganesh/dawn/ |
D | GrDawnCaps.cpp | 60 static skgpu::Swizzle get_swizzle(const GrBackendFormat& format, GrColorType colorType, in get_swizzle() 66 return skgpu::Swizzle("a000"); in get_swizzle() 68 return skgpu::Swizzle("000r"); in get_swizzle() 72 return skgpu::Swizzle::RRRA(); in get_swizzle() 77 return skgpu::Swizzle::RGB1(); in get_swizzle() 81 return skgpu::Swizzle::RGBA(); in get_swizzle() 83 return skgpu::Swizzle::RGBA(); in get_swizzle() 139 skgpu::Swizzle GrDawnCaps::onGetReadSwizzle(const GrBackendFormat& format, in onGetReadSwizzle() 144 skgpu::Swizzle GrDawnCaps::getWriteSwizzle(const GrBackendFormat& format, in getWriteSwizzle()
|
/external/skia/src/gpu/ganesh/vk/ |
D | GrVkUniformHandler.h | 115 const skgpu::Swizzle&, 119 SamplerHandle addInputSampler(const skgpu::Swizzle& swizzle, const char* name) override; 125 skgpu::Swizzle samplerSwizzle(SamplerHandle handle) const override { in samplerSwizzle() 143 skgpu::Swizzle inputSamplerSwizzle(SamplerHandle handle) const override { in inputSamplerSwizzle() 158 SkTArray<skgpu::Swizzle> fSamplerSwizzles; 160 skgpu::Swizzle fInputSwizzle;
|
/external/skia/src/sksl/ir/ |
D | SkSLSwizzle.cpp | 232 newArgs.push_back(Swizzle::Make(context, pos, std::move(newArg), in optimize_constructor_swizzle() 244 std::unique_ptr<Expression> Swizzle::Convert(const Context& context, in Convert() 286 std::unique_ptr<Expression> Swizzle::Convert(const Context& context, in Convert() 386 std::unique_ptr<Expression> expr = Swizzle::Make(context, pos, std::move(base), maskComponents); in Convert() 445 return Swizzle::Make(context, pos, std::move(expr), swizzleComponents); in Convert() 448 std::unique_ptr<Expression> Swizzle::Make(const Context& context, in Make() 489 if (expr->is<Swizzle>()) { in Make() 490 Swizzle& base = expr->as<Swizzle>(); in Make() 498 return Swizzle::Make(context, pos, std::move(base.base()), combined); in Make() 521 std::unique_ptr<Expression> swizzled = Swizzle::Make(context, pos, cast.argument()->clone(), in Make() [all …]
|
D | SkSLSwizzle.h | 32 struct Swizzle final : public Expression { 35 Swizzle(const Context& context, Position pos, std::unique_ptr<Expression> base, in Swizzle() function 79 return std::unique_ptr<Expression>(new Swizzle(pos, &this->type(), this->base()->clone(), in clone() 86 Swizzle(Position pos, const Type* type, std::unique_ptr<Expression> base, in Swizzle() function
|
/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_value_gpr.h | 77 using Swizzle = std::array<uint32_t,4>; 90 void swizzle(const Swizzle& swz); 187 inline GPRVector::Swizzle swizzle_from_comps(unsigned ncomp) in swizzle_from_comps() 189 GPRVector::Swizzle swz = {0,1,2,3}; in swizzle_from_comps() 195 inline GPRVector::Swizzle swizzle_from_mask(unsigned mask) in swizzle_from_mask() 197 GPRVector::Swizzle swz; in swizzle_from_mask()
|