/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
D | SamplerCore.cpp | 140 c.x = MulHigh(As<UShort4>(c.x), UShort4(0x10000000 / 0xF800)); in sampleTexture() 141 c.y = MulHigh(As<UShort4>(c.y), UShort4(0x10000000 / 0xFC00)); in sampleTexture() 142 c.z = MulHigh(As<UShort4>(c.z), UShort4(0x10000000 / 0xF800)); in sampleTexture() 150 c[component] = As<UShort4>(c[component]) >> 4; in sampleTexture() 364 c.x = Float4(As<UShort4>(cs.x)) * Float4(1.0f / 0xF800); in sampleTexture() 365 c.y = Float4(As<UShort4>(cs.y)) * Float4(1.0f / 0xFC00); in sampleTexture() 366 c.z = Float4(As<UShort4>(cs.z)) * Float4(1.0f / 0xF800); in sampleTexture() 557 case -1: return SubSat(As<UShort4>(uvw), As<UShort4>(offset)); in offsetSample() 559 case +1: return AddSat(As<UShort4>(uvw), As<UShort4>(offset)); in offsetSample() 560 case 2: return AddSat(AddSat(As<UShort4>(uvw), As<UShort4>(offset)), As<UShort4>(offset)); in offsetSample() [all …]
|
D | PixelRoutine.cpp | 914 blendFactor.x = Min(As<UShort4>(blendFactor.x), As<UShort4>(current.w)); in blendFactor() 1100 pixel.y = (c01 & Short4(0xFF00u)) | As<Short4>(As<UShort4>(c01) >> 8); in readPixel() 1190 current.x = MulHigh(As<UShort4>(current.x), As<UShort4>(sourceFactor.x)); in alphaBlend() 1191 current.y = MulHigh(As<UShort4>(current.y), As<UShort4>(sourceFactor.y)); in alphaBlend() 1192 current.z = MulHigh(As<UShort4>(current.z), As<UShort4>(sourceFactor.z)); in alphaBlend() 1197 pixel.x = MulHigh(As<UShort4>(pixel.x), As<UShort4>(destFactor.x)); in alphaBlend() 1198 pixel.y = MulHigh(As<UShort4>(pixel.y), As<UShort4>(destFactor.y)); in alphaBlend() 1199 pixel.z = MulHigh(As<UShort4>(pixel.z), As<UShort4>(destFactor.z)); in alphaBlend() 1205 current.x = AddSat(As<UShort4>(current.x), As<UShort4>(pixel.x)); in alphaBlend() 1206 current.y = AddSat(As<UShort4>(current.y), As<UShort4>(pixel.y)); in alphaBlend() [all …]
|
D | VertexRoutine.cpp | 302 v.x = Float4(*Pointer<UShort4>(source0)); in readStream() 303 v.y = Float4(*Pointer<UShort4>(source1)); in readStream() 304 v.z = Float4(*Pointer<UShort4>(source2)); in readStream() 305 v.w = Float4(*Pointer<UShort4>(source3)); in readStream() 319 v.x = As<Float4>(Int4(*Pointer<UShort4>(source0))); in readStream() 320 v.y = As<Float4>(Int4(*Pointer<UShort4>(source1))); in readStream() 321 v.z = As<Float4>(Int4(*Pointer<UShort4>(source2))); in readStream() 322 v.w = As<Float4>(Int4(*Pointer<UShort4>(source3))); in readStream()
|
D | PixelRoutine.hpp | 65 UShort4 convertFixed16(Float4 &cf, bool saturate = true);
|
D | PixelPipeline.cpp | 1186 UShort4 fog = convertFixed16(f, true); in fogBlend() 1188 current.x = As<Short4>(MulHigh(As<UShort4>(current.x), fog)); in fogBlend() 1189 current.y = As<Short4>(MulHigh(As<UShort4>(current.y), fog)); in fogBlend() 1190 current.z = As<Short4>(MulHigh(As<UShort4>(current.z), fog)); in fogBlend() 1192 UShort4 invFog = UShort4(0xFFFFu) - fog; in fogBlend() 1194 …current.x += As<Short4>(MulHigh(invFog, *Pointer<UShort4>(data + OFFSET(DrawData, fog.color4[0])))… in fogBlend() 1195 …current.y += As<Short4>(MulHigh(invFog, *Pointer<UShort4>(data + OFFSET(DrawData, fog.color4[1])))… in fogBlend() 1196 …current.z += As<Short4>(MulHigh(invFog, *Pointer<UShort4>(data + OFFSET(DrawData, fog.color4[2])))… in fogBlend()
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
D | x86.hpp | 48 RValue<UShort4> paddusw(RValue<UShort4> x, RValue<UShort4> y); 49 RValue<UShort4> psubusw(RValue<UShort4> x, RValue<UShort4> y); 55 RValue<UShort4> pavgw(RValue<UShort4> x, RValue<UShort4> y); 72 RValue<UShort4> psrlw(RValue<UShort4> x, unsigned char y); 91 RValue<UShort4> pmulhuw(RValue<UShort4> x, RValue<UShort4> y);
|
D | Reactor.hpp | 102 class UShort4; 576 explicit Byte4(RValue<UShort4> cast); 872 explicit UShort2(RValue<UShort4> cast); 891 Short4(RValue<UShort4> rhs); 892 Short4(const UShort4 &rhs); 893 Short4(const Reference<UShort4> &rhs); 898 RValue<Short4> operator=(RValue<UShort4> rhs); 899 RValue<Short4> operator=(const UShort4 &rhs); 900 RValue<Short4> operator=(const Reference<UShort4> &rhs); 956 class UShort4 : public LValue<UShort4> class [all …]
|
D | Reactor.cpp | 1284 Byte4::Byte4(RValue<UShort4> cast) in Byte4() 1764 UShort2::UShort2(RValue<UShort4> cast) in UShort2() 1810 Short4::Short4(RValue<UShort4> rhs) in Short4() 1815 Short4::Short4(const UShort4 &rhs) in Short4() 1820 Short4::Short4(const Reference<UShort4> &rhs) in Short4() 1840 RValue<Short4> Short4::operator=(RValue<UShort4> rhs) in operator =() 1845 RValue<Short4> Short4::operator=(const UShort4 &rhs) in operator =() 1850 RValue<Short4> Short4::operator=(const Reference<UShort4> &rhs) in operator =() 2008 UShort4::UShort4(RValue<Int4> cast) in UShort4() function in rr::UShort4 2013 UShort4::UShort4(unsigned short xyzw) in UShort4() function in rr::UShort4 [all …]
|
D | LLVMReactor.cpp | 2181 UShort4::UShort4(RValue<Float4> cast, bool saturate) in UShort4() function in rr::UShort4 2204 RValue<UShort4> operator<<(RValue<UShort4> lhs, unsigned char rhs) in operator <<() 2210 return As<UShort4>(x86::psllw(As<Short4>(lhs), rhs)); in operator <<() 2212 return As<UShort4>(V(lowerVectorShl(V(lhs.value()), rhs))); in operator <<() 2216 RValue<UShort4> operator>>(RValue<UShort4> lhs, unsigned char rhs) in operator >>() 2224 return As<UShort4>(V(lowerVectorLShr(V(lhs.value()), rhs))); in operator >>() 2228 RValue<UShort4> Max(RValue<UShort4> x, RValue<UShort4> y) in Max() 2231 …return RValue<UShort4>(Max(As<Short4>(x) - Short4(0x8000u, 0x8000u, 0x8000u, 0x8000u), As<Short4>(… in Max() 2234 RValue<UShort4> Min(RValue<UShort4> x, RValue<UShort4> y) in Min() 2237 …return RValue<UShort4>(Min(As<Short4>(x) - Short4(0x8000u, 0x8000u, 0x8000u, 0x8000u), As<Short4>(… in Min() [all …]
|
D | SubzeroReactor.cpp | 2355 RValue<Short4> lo = As<Short4>(As<UShort4>((As<Short4>(lhs) << 8) >> rhs) >> 8); in operator >>() 2808 UShort4::UShort4(RValue<Float4> cast, bool saturate) in UShort4() function in rr::UShort4 2817 *this = As<UShort4>(PackUnsigned(int4, int4)); in UShort4() 2823 *this = As<UShort4>(PackUnsigned(int4, int4)); in UShort4() 2836 RValue<UShort> Extract(RValue<UShort4> val, int i) in Extract() 2841 RValue<UShort4> Insert(RValue<UShort4> val, RValue<UShort> element, int i) in Insert() 2843 return RValue<UShort4>(Nucleus::createInsertElement(val.value(), element.value(), i)); in Insert() 2846 RValue<UShort4> operator<<(RValue<UShort4> lhs, unsigned char rhs) in operator <<() 2852 UShort4 result; in operator <<() 2862 return RValue<UShort4>(Nucleus::createShl(lhs.value(), V(::context->getConstantInt32(rhs)))); in operator <<() [all …]
|
D | Print.hpp | 298 struct PrintValue::Ty<UShort4> 300 static std::string fmt(const RValue<UShort4> &v) { return "[%u, %u, %u, %u]"; } in fmt() 301 static std::vector<Value *> val(const RValue<UShort4> &v);
|
D | LLVMReactorDebugInfo.cpp | 432 …diTypes.emplace(T(UShort4::type()), diBuilder->createVectorType(128, 128, diTypes[T(UShort::type()… in registerBasicTypes()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
D | SamplerCore.cpp | 169 c[component] = Float4(As<UShort4>(cs[component])); in sampleTexture() 274 case -1: return SubSat(As<UShort4>(uvw), As<UShort4>(offset)); in offsetSample() 276 case +1: return AddSat(As<UShort4>(uvw), As<UShort4>(offset)); in offsetSample() 277 case 2: return AddSat(AddSat(As<UShort4>(uvw), As<UShort4>(offset)), As<UShort4>(offset)); in offsetSample() 299 UShort4 utri = UShort4(Float4(lod)); // FIXME: Optimize in sampleFilter() 303 cc.x = MulHigh(As<UShort4>(cc.x), utri); in sampleFilter() 307 cc.y = MulHigh(As<UShort4>(cc.y), utri); in sampleFilter() 311 cc.z = MulHigh(As<UShort4>(cc.z), utri); in sampleFilter() 315 cc.w = MulHigh(As<UShort4>(cc.w), utri); in sampleFilter() 323 c.x = MulHigh(As<UShort4>(c.x), utri); in sampleFilter() [all …]
|
D | PixelRoutine.cpp | 619 Float4 zValue = convertFloat32(As<UShort4>(z)); in depthBoundsTest16() 963 pixel.x |= As<Short4>(As<UShort4>(pixel.x) >> 4); in readPixel() 964 pixel.x |= As<Short4>(As<UShort4>(pixel.x) >> 8); in readPixel() 965 pixel.y |= As<Short4>(As<UShort4>(pixel.y) >> 4); in readPixel() 966 pixel.y |= As<Short4>(As<UShort4>(pixel.y) >> 8); in readPixel() 967 pixel.z |= As<Short4>(As<UShort4>(pixel.z) >> 4); in readPixel() 968 pixel.z |= As<Short4>(As<UShort4>(pixel.z) >> 8); in readPixel() 969 pixel.w |= As<Short4>(As<UShort4>(pixel.w) >> 4); in readPixel() 970 pixel.w |= As<Short4>(As<UShort4>(pixel.w) >> 8); in readPixel() 983 pixel.x |= As<Short4>(As<UShort4>(pixel.x) >> 4); in readPixel() [all …]
|
D | VertexRoutine.cpp | 326 v.x = Float4(*Pointer<UShort4>(source0)); in readStream() 327 v.y = Float4(*Pointer<UShort4>(source1)); in readStream() 328 v.z = Float4(*Pointer<UShort4>(source2)); in readStream() 329 v.w = Float4(*Pointer<UShort4>(source3)); in readStream() 356 v.x = Float4(*Pointer<UShort4>(source0)); in readStream() 357 v.y = Float4(*Pointer<UShort4>(source1)); in readStream() 358 v.z = Float4(*Pointer<UShort4>(source2)); in readStream() 359 v.w = Float4(*Pointer<UShort4>(source3)); in readStream() 386 v.x = As<Float4>(Int4(*Pointer<UShort4>(source0))); in readStream() 387 v.y = As<Float4>(Int4(*Pointer<UShort4>(source1))); in readStream() [all …]
|
D | PixelRoutine.hpp | 62 UShort4 convertFixed16(const Float4 &cf, bool saturate = true); 63 Float4 convertFloat32(const UShort4 &cf);
|
/third_party/skia/third_party/externals/swiftshader/src/Main/ |
D | FrameBuffer.cpp | 220 Short4 c0 = As<UShort4>(Swizzle(*Pointer<Short4>(s + 0), 0x2103)) >> 8; in copyRoutine() 221 Short4 c1 = As<UShort4>(Swizzle(*Pointer<Short4>(s + 8), 0x2103)) >> 8; in copyRoutine() 267 Short4 c = As<UShort4>(Swizzle(*Pointer<Short4>(s), 0x2103)) >> 8; in copyRoutine() 328 Short4 c0 = *Pointer<UShort4>(s + 0) >> 8; in copyRoutine() 329 Short4 c1 = *Pointer<UShort4>(s + 8) >> 8; in copyRoutine() 375 Short4 c = *Pointer<UShort4>(s) >> 8; in copyRoutine() 470 Short4 cc = *Pointer<UShort4>(s) >> 8; in copyRoutine() 568 c1 = As<Short4>(As<UShort4>(c1) >> 9); in blend() 569 c2 = As<Short4>(As<UShort4>(c2) >> 9); in blend()
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/ |
D | VertexFormatTests.cpp | 79 case dawn::VertexFormat::UShort4: in IsUnsignedFormat() 129 case dawn::VertexFormat::UShort4: in BytesPerComponents() 181 case dawn::VertexFormat::UShort4: in ComponentCount() 582 TEST_P(VertexFormatTest, UShort4) { in TEST_P() argument 598 DoVertexFormatTest(dawn::VertexFormat::UShort4, vertexData, vertexData); in TEST_P()
|
/third_party/skia/third_party/externals/swiftshader/tests/ReactorUnitTests/ |
D | ReactorUnitTests.cpp | 1202 *Pointer<UShort4>(out + 16 * 8) = Min(UShort4(1, 0, -1, -0), UShort4(0, 1, 0, +0)); in TEST() 1203 *Pointer<UShort4>(out + 16 * 9) = Max(UShort4(1, 0, -1, -0), UShort4(0, 1, 0, +0)); in TEST() 1504 *Pointer<UShort4>(out + 8 * 11) = in TEST() 1505 AddSat(UShort4(1, 2, 3, 4), UShort4(3, 2, 1, 0)); in TEST() 1506 *Pointer<UShort4>(out + 8 * 12) = in TEST() 1507 AddSat(UShort4(0xFFFE, 0xFFFE, 0xFFFE, 0xFFFE), in TEST() 1508 UShort4(3, 2, 1, 0)); in TEST() 1509 *Pointer<UShort4>(out + 8 * 13) = in TEST() 1510 SubSat(UShort4(1, 2, 3, 4), UShort4(3, 2, 1, 0)); in TEST() 1664 *Pointer<UShort4>(out + 16 * 1) = in TEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
D | Blitter.cpp | 307 c = Float4(*Pointer<UShort4>(element)); in read() 314 c = Float4(*Pointer<UShort4>(element)); in read() 617 *Pointer<UShort4>(element) = UShort4(RoundInt(c)); in write() 630 *Pointer<UShort4>(element) = UShort4(RoundInt(c)); in write() 644 *Pointer<UShort2>(element) = UShort2(UShort4(RoundInt(c))); in write()
|
/third_party/skia/tests/ |
D | SkSLDSLTest.cpp | 423 EXPECT_EQUAL(UShort4(0), in DEF_GPUTEST_FOR_MOCK_CONTEXT() 425 EXPECT_EQUAL(UShort4(UShort2(0, 1), UShort2(2, 3)), in DEF_GPUTEST_FOR_MOCK_CONTEXT() 427 EXPECT_EQUAL(UShort4(0, 1, UShort2(2, 3)), in DEF_GPUTEST_FOR_MOCK_CONTEXT() 429 EXPECT_EQUAL(UShort4(0, 1, 2, 3), in DEF_GPUTEST_FOR_MOCK_CONTEXT() 440 UShort2(UShort4(1)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 446 UShort4(UShort3(1)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/ |
D | RenderPipeline.cpp | 182 case dawn::VertexFormat::UShort4: in VertexFormatNumComponents() 229 case dawn::VertexFormat::UShort4: in VertexFormatComponentSize()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | CommandBufferGL.cpp | 61 case dawn::VertexFormat::UShort4: in VertexFormatType() 116 case dawn::VertexFormat::UShort4: in VertexFormatIsInt()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | RenderPipelineD3D12.cpp | 50 case dawn::VertexFormat::UShort4: in VertexFormatType()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | RenderPipelineVk.cpp | 60 case dawn::VertexFormat::UShort4: in VulkanVertexFormat()
|