/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
D | x86.hpp | 46 RValue<Short4> paddsw(RValue<Short4> x, RValue<Short4> y); 47 RValue<Short4> psubsw(RValue<Short4> x, RValue<Short4> y); 57 RValue<Short4> pmaxsw(RValue<Short4> x, RValue<Short4> y); 58 RValue<Short4> pminsw(RValue<Short4> x, RValue<Short4> y); 60 RValue<Short4> pcmpgtw(RValue<Short4> x, RValue<Short4> y); 61 RValue<Short4> pcmpeqw(RValue<Short4> x, RValue<Short4> y); 65 RValue<Short4> packssdw(RValue<Int2> x, RValue<Int2> y); 67 RValue<SByte8> packsswb(RValue<Short4> x, RValue<Short4> y); 68 RValue<Byte8> packuswb(RValue<Short4> x, RValue<Short4> y); 74 RValue<Short4> psraw(RValue<Short4> x, unsigned char y); [all …]
|
D | Reactor.cpp | 1290 Byte4::Byte4(RValue<Short4> cast) in Byte4() 1510 RValue<Short4> Unpack(RValue<Byte4> x) in Unpack() 1514 return As<Short4>(Nucleus::createShuffleVector(x.value(), x.value(), shuffle)); in Unpack() 1517 RValue<Short4> Unpack(RValue<Byte4> x, RValue<Byte4> y) in Unpack() 1522 RValue<Short4> UnpackLow(RValue<Byte8> x, RValue<Byte8> y) in UnpackLow() 1526 return As<Short4>(Nucleus::createShuffleVector(x.value(), y.value(), shuffle)); in UnpackLow() 1529 RValue<Short4> UnpackHigh(RValue<Byte8> x, RValue<Byte8> y) in UnpackHigh() 1534 return As<Short4>(Swizzle(As<Int4>(lowHigh), 0x2323)); in UnpackHigh() 1690 RValue<Short4> UnpackLow(RValue<SByte8> x, RValue<SByte8> y) in UnpackLow() 1694 return As<Short4>(Nucleus::createShuffleVector(x.value(), y.value(), shuffle)); in UnpackLow() [all …]
|
D | Reactor.hpp | 101 class Short4; 577 explicit Byte4(RValue<Short4> cast); 712 RValue<Short4> Unpack(RValue<Byte4> x); 713 RValue<Short4> Unpack(RValue<Byte4> x, RValue<Byte4> y); 714 RValue<Short4> UnpackLow(RValue<Byte8> x, RValue<Byte8> y); 715 RValue<Short4> UnpackHigh(RValue<Byte8> x, RValue<Byte8> y); 767 RValue<Short4> UnpackLow(RValue<SByte8> x, RValue<SByte8> y); 768 RValue<Short4> UnpackHigh(RValue<SByte8> x, RValue<SByte8> y); 864 explicit Short2(RValue<Short4> cast); 877 class Short4 : public LValue<Short4> class [all …]
|
D | LLVMReactor.cpp | 2022 Short4::Short4(RValue<Int4> cast) in Short4() function in rr::Short4 2029 Value *short4 = As<Short4>(Int2(As<Int4>(packed))).value(); in Short4() 2038 Short4::Short4(RValue<Float4> cast) in Short4() function in rr::Short4 2049 storeValue(As<Short4>(Int2(v4i32)).value()); in Short4() 2052 RValue<Short4> operator<<(RValue<Short4> lhs, unsigned char rhs) in operator <<() 2060 return As<Short4>(V(lowerVectorShl(V(lhs.value()), rhs))); in operator <<() 2064 RValue<Short4> operator>>(RValue<Short4> lhs, unsigned char rhs) in operator >>() 2070 return As<Short4>(V(lowerVectorAShr(V(lhs.value()), rhs))); in operator >>() 2074 RValue<Short4> Max(RValue<Short4> x, RValue<Short4> y) in Max() 2080 return RValue<Short4>(V(lowerPMINMAX(V(x.value()), V(y.value()), llvm::ICmpInst::ICMP_SGT))); in Max() [all …]
|
D | SubzeroReactor.cpp | 2354 RValue<Short4> hi = (As<Short4>(lhs) >> rhs) & Short4(0xFF00u); in operator >>() 2355 RValue<Short4> lo = As<Short4>(As<UShort4>((As<Short4>(lhs) << 8) >> rhs) >> 8); in operator >>() 2533 Short4::Short4(RValue<Int4> cast) in Short4() function in rr::Short4 2540 Value *short4 = Nucleus::createBitCast(int2, Short4::type()); in Short4() 2549 Short4::Short4(RValue<Float4> cast) in Short4() function in rr::Short4 2554 *this = Short4(Int4(Max(Min(cast, Float4(smax)), Float4(smin)))); in Short4() 2557 RValue<Short4> operator<<(RValue<Short4> lhs, unsigned char rhs) in operator <<() 2562 Short4 result; in operator <<() 2572 return RValue<Short4>(Nucleus::createShl(lhs.value(), V(::context->getConstantInt32(rhs)))); in operator <<() 2576 RValue<Short4> operator>>(RValue<Short4> lhs, unsigned char rhs) in operator >>() [all …]
|
D | Print.hpp | 286 struct PrintValue::Ty<Short4> 288 static std::string fmt(const RValue<Short4> &v) { return "[%d, %d, %d, %d]"; } in fmt() 289 static std::vector<Value *> val(const RValue<Short4> &v);
|
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
D | PixelRoutine.cpp | 524 void PixelRoutine::alphaTest(Int &aMask, Short4 &alpha) in alphaTest() 526 Short4 cmp; in alphaTest() 527 Short4 equal; in alphaTest() 538 cmp = CmpEQ(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest() 539 aMask = SignMask(PackSigned(cmp, Short4(0x0000))); in alphaTest() 542 …cmp = CmpEQ(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))) ^ Short4(0xFF… in alphaTest() 543 aMask = SignMask(PackSigned(cmp, Short4(0x0000))); in alphaTest() 546 cmp = CmpGT(*Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4)), alpha); in alphaTest() 547 aMask = SignMask(PackSigned(cmp, Short4(0x0000))); in alphaTest() 550 equal = CmpEQ(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest() [all …]
|
D | PixelPipeline.cpp | 25 …if(state.color[0].component & 0x1) diffuse.x = convertFixed12(v[0].x); else diffuse.x = Short4(0x1… in setBuiltins() 26 …if(state.color[0].component & 0x2) diffuse.y = convertFixed12(v[0].y); else diffuse.y = Short4(0x1… in setBuiltins() 27 …if(state.color[0].component & 0x4) diffuse.z = convertFixed12(v[0].z); else diffuse.z = Short4(0x1… in setBuiltins() 28 …if(state.color[0].component & 0x8) diffuse.w = convertFixed12(v[0].w); else diffuse.w = Short4(0x1… in setBuiltins() 30 …if(state.color[1].component & 0x1) specular.x = convertFixed12(v[1].x); else specular.x = Short4(0… in setBuiltins() 31 …if(state.color[1].component & 0x2) specular.y = convertFixed12(v[1].y); else specular.y = Short4(0… in setBuiltins() 32 …if(state.color[1].component & 0x4) specular.z = convertFixed12(v[1].z); else specular.z = Short4(0… in setBuiltins() 33 …if(state.color[1].component & 0x8) specular.w = convertFixed12(v[1].w); else specular.w = Short4(0… in setBuiltins() 232 if(dst.mask & 0x1) { d.x = Min(d.x, Short4(0x1000)); d.x = Max(d.x, Short4(0x0000)); } in applyShader() 233 if(dst.mask & 0x2) { d.y = Min(d.y, Short4(0x1000)); d.y = Max(d.y, Short4(0x0000)); } in applyShader() [all …]
|
D | SamplerCore.hpp | 60 void border(Short4 &mask, Float4 &coordinates); 62 …Short4 offsetSample(Short4 &uvw, Pointer<Byte> &mipmap, int halfOffset, bool wrap, int count, Floa… 79 Short4 applyOffset(Short4 &uvw, Float4 &offset, const Int4 &whd, AddressingMode mode); 80 …void computeIndices(UInt index[4], Short4 uuuu, Short4 vvvv, Short4 wwww, Vector4f &offset, const … 82 …Vector4s sampleTexel(Short4 &u, Short4 &v, Short4 &s, Vector4f &offset, Pointer<Byte> &mipmap, Poi… 86 Short4 address(Float4 &uw, AddressingMode addressingMode, Pointer<Byte>& mipmap); 90 void convertFixed12(Short4 &ci, Float4 &cf); 92 void convertSigned12(Float4 &cf, Short4 &ci); 93 void convertSigned15(Float4 &cf, Short4 &ci); 94 void convertUnsigned16(Float4 &cf, Short4 &ci); [all …]
|
D | SamplerCore.cpp | 22 void applySwizzle(sw::SwizzleType swizzle, sw::Short4& s, const sw::Vector4s& c) in applySwizzle() 30 case sw::SWIZZLE_ZERO: s = sw::Short4(0x0000); break; in applySwizzle() 31 case sw::SWIZZLE_ONE: s = sw::Short4(0x1000); break; in applySwizzle() 79 c.x = Short4(0x0000); in sampleTexture() 80 c.y = Short4(0x0000); in sampleTexture() 81 c.z = Short4(0x0000); in sampleTexture() 85 c.w = Short4(0x1000); in sampleTexture() 89 c.w = Short4(0xFFFFu); // FIXME in sampleTexture() 215 if(componentCount < 2) c.y = Short4(defaultColorValue); in sampleTexture() 216 if(componentCount < 3) c.z = Short4(defaultColorValue); in sampleTexture() [all …]
|
D | ShaderCore.hpp | 34 Short4 &operator[](int i); 37 Short4 x; 38 Short4 y; 39 Short4 z; 40 Short4 w; 87 void transpose4x4(Short4 &row0, Short4 &row1, Short4 &row2, Short4 &row3); 88 void transpose4x3(Short4 &row0, Short4 &row1, Short4 &row2, Short4 &row3);
|
D | PixelPipeline.hpp | 47 Short4 L; 65 Short4 convertFixed12(RValue<Float4> cf); 67 Float4 convertSigned12(Short4 &cs);
|
D | VertexRoutine.cpp | 274 v.x = Float4(*Pointer<Short4>(source0)); in readStream() 275 v.y = Float4(*Pointer<Short4>(source1)); in readStream() 276 v.z = Float4(*Pointer<Short4>(source2)); in readStream() 277 v.w = Float4(*Pointer<Short4>(source3)); in readStream() 291 v.x = As<Float4>(Int4(*Pointer<Short4>(source0))); in readStream() 292 v.y = As<Float4>(Int4(*Pointer<Short4>(source1))); in readStream() 293 v.z = As<Float4>(Int4(*Pointer<Short4>(source2))); in readStream() 294 v.w = As<Float4>(Int4(*Pointer<Short4>(source3))); in readStream()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
D | PixelRoutine.cpp | 497 Short4 Z = convertFixed16(z, true); in depthTest16() 507 Short4 zValue; in depthTest16() 511 zValue = As<Short4>(Insert(As<Int2>(zValue), *Pointer<Int>(buffer), 0)); in depthTest16() 512 zValue = As<Short4>(Insert(As<Int2>(zValue), *Pointer<Int>(buffer + pitch), 1)); in depthTest16() 518 zValue = zValue - Short4(0x8000u); in depthTest16() 519 Z = Z - Short4(0x8000u); in depthTest16() 715 Short4 Z = As<Short4>(convertFixed16(z, true)); in writeDepth16() 725 Short4 zValue; in writeDepth16() 729 zValue = As<Short4>(Insert(As<Int2>(zValue), *Pointer<Int>(buffer), 0)); in writeDepth16() 730 zValue = As<Short4>(Insert(As<Int2>(zValue), *Pointer<Int>(buffer + pitch), 1)); in writeDepth16() [all …]
|
D | SamplerCore.cpp | 247 Short4 SamplerCore::offsetSample(Short4 &uvw, Pointer<Byte> &mipmap, int halfOffset, bool wrap, int… in offsetSample() 249 Short4 offset = *Pointer<Short4>(mipmap + halfOffset); in offsetSample() 253 offset &= Short4(CmpNLE(Float4(lod), Float4(0.0f))); in offsetSample() 257 offset &= Short4(CmpLE(Float4(lod), Float4(0.0f))); in offsetSample() 300 Short4 stri = utri >> 1; // FIXME: Optimize in sampleFilter() 320 stri = Short4(0x7FFF) - stri; in sampleFilter() 367 cSum.x = Short4(0); in sampleAniso() 368 cSum.y = Short4(0); in sampleAniso() 369 cSum.z = Short4(0); in sampleAniso() 370 cSum.w = Short4(0); in sampleAniso() [all …]
|
D | SamplerCore.hpp | 68 …Short4 offsetSample(Short4 &uvw, Pointer<Byte> &mipmap, int halfOffset, bool wrap, int count, Floa… 84 Short4 applyOffset(Short4 &uvw, Int4 &offset, const Int4 &whd, AddressingMode mode); 85 …void computeIndices(UInt index[4], Short4 uuuu, Short4 vvvv, Short4 wwww, const Short4 &cubeArrayL… 87 …Vector4s sampleTexel(Short4 &u, Short4 &v, Short4 &w, const Short4 &cubeArrayLayer, Vector4i &offs… 92 Short4 address(const Float4 &uvw, AddressingMode addressingMode, Pointer<Byte> &mipmap); 93 Short4 computeLayerIndex(const Float4 &a, Pointer<Byte> &mipmap); 97 void sRGBtoLinearFF00(Short4 &c);
|
D | ShaderCore.hpp | 37 Short4 &operator[](int i); 40 Short4 x; 41 Short4 y; 42 Short4 z; 43 Short4 w; 214 void transpose4x4(Short4 &row0, Short4 &row1, Short4 &row2, Short4 &row3); 215 void transpose4x3(Short4 &row0, Short4 &row1, Short4 &row2, Short4 &row3);
|
D | VertexRoutine.cpp | 341 v.x = Float4(*Pointer<Short4>(source0)); in readStream() 342 v.y = Float4(*Pointer<Short4>(source1)); in readStream() 343 v.z = Float4(*Pointer<Short4>(source2)); in readStream() 344 v.w = Float4(*Pointer<Short4>(source3)); in readStream() 366 v.x = Float4(*Pointer<Short4>(source0)); in readStream() 367 v.y = Float4(*Pointer<Short4>(source1)); in readStream() 368 v.z = Float4(*Pointer<Short4>(source2)); in readStream() 369 v.w = Float4(*Pointer<Short4>(source3)); in readStream() 376 v.x = As<Float4>(Int4(*Pointer<Short4>(source0))); in readStream() 377 v.y = As<Float4>(Int4(*Pointer<Short4>(source1))); in readStream() [all …]
|
D | ShaderCore.cpp | 30 this->x = Short4(x); in Vector4s() 31 this->y = Short4(y); in Vector4s() 32 this->z = Short4(z); in Vector4s() 33 this->w = Short4(w); in Vector4s() 54 Short4 &Vector4s::operator[](int i) in operator []() 472 void transpose4x4(Short4 &row0, Short4 &row1, Short4 &row2, Short4 &row3) in transpose4x4() 485 void transpose4x3(Short4 &row0, Short4 &row1, Short4 &row2, Short4 &row3) in transpose4x3()
|
/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() 232 Int4 rgb = Int4(*Pointer<Short4>(s)); 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() 340 Int4 rgb = Int4(*Pointer<Short4>(s)); in copyRoutine() 375 Short4 c = *Pointer<UShort4>(s) >> 8; in copyRoutine() 470 Short4 cc = *Pointer<UShort4>(s) >> 8; in copyRoutine() 535 Short4 c1; in blend() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Device/ |
D | QuadRasterizer.cpp | 179 Short4 xLeft[4]; in rasterize() 180 Short4 xRight[4]; in rasterize() 184 …xLeft[q] = *Pointer<Short4>(primitive + q * sizeof(Primitive) + OFFSET(Primitive, outline) + y * s… in rasterize() 187 xLeft[q] = Swizzle(xLeft[q], 0x0022) - Short4(1, 2, 1, 2); in rasterize() 188 xRight[q] = Swizzle(xRight[q], 0x1133) - Short4(0, 1, 0, 1); in rasterize() 193 Short4 xxxx = Short4(x); in rasterize() 201 Short4 mask = CmpGT(xxxx, xLeft[i]) & CmpGT(xRight[i], xxxx); in rasterize()
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
D | QuadRasterizer.cpp | 267 Short4 xLeft[4]; in rasterize() 268 Short4 xRight[4]; in rasterize() 272 …xLeft[q] = *Pointer<Short4>(primitive + q * sizeof(Primitive) + OFFSET(Primitive,outline) + y * si… in rasterize() 275 xLeft[q] = Swizzle(xLeft[q], 0x0022) - Short4(1, 2, 1, 2); in rasterize() 276 xRight[q] = Swizzle(xRight[q], 0x1133) - Short4(0, 1, 0, 1); in rasterize() 281 Short4 xxxx = Short4(x); in rasterize() 286 Short4 mask = CmpGT(xxxx, xLeft[q]) & CmpGT(xRight[q], xxxx); in rasterize()
|
D | Blitter.cpp | 303 c = Float4(*Pointer<Short4>(element)); in read() 310 c = Float4(*Pointer<Short4>(element)); in read() 441 Short4 c0 = RoundShort4(c.zyxw); in write() 456 Short4 c0 = RoundShort4(c); in write() 470 Short4 c0 = RoundShort4(c.zyxw) | Short4(0x0000, 0x0000, 0x0000, 0x00FF); in write() 485 Short4 c0 = RoundShort4(c) | Short4(0x0000, 0x0000, 0x0000, 0x00FF); in write() 576 *Pointer<Short4>(element) = Short4(RoundInt(c)); in write() 589 *Pointer<Short4>(element) = Short4(RoundInt(c)); in write() 602 *Pointer<Short2>(element) = Short2(Short4(RoundInt(c))); in write()
|
/third_party/skia/third_party/externals/swiftshader/tests/ReactorUnitTests/ |
D | ReactorUnitTests.cpp | 738 *Pointer<Short4>(out + 16 * 1) = *Pointer<Short4>(in + 16 * 1); in TEST() 787 *Pointer<Short4>(out + 16 * 1) = Short4(0x1211, 0x1413, 0x1615, 0x1817); in TEST() 826 …*Pointer<Short8>(out + 16 * 1) = Short8(Short4(0x0201, 0x0403, 0x0605, 0x0807), Short4(0x0A09, 0x0… in TEST() 859 *Pointer<Short4>(out + 16 * 0) = Short4(c); in TEST() 862 *Pointer<Byte4>(out + 16 * 1 + 8) = Byte4(As<Short4>(c)); in TEST() 908 *Pointer<Int2>(out + 16 * (512 + 2)) = UnpackLow(Short4(1, 2, 3, 4), Short4(5, 6, 7, 8)); in TEST() 909 *Pointer<Int2>(out + 16 * (512 + 3)) = UnpackHigh(Short4(1, 2, 3, 4), Short4(5, 6, 7, 8)); in TEST() 910 …*Pointer<Short4>(out + 16 * (512 + 4)) = UnpackLow(Byte8(1, 2, 3, 4, 5, 6, 7, 8), Byte8(9, 10, 11,… in TEST() 911 …*Pointer<Short4>(out + 16 * (512 + 5)) = UnpackHigh(Byte8(1, 2, 3, 4, 5, 6, 7, 8), Byte8(9, 10, 11… in TEST() 915 *Pointer<Short4>(out + 16 * (512 + 6) + (8 * i)) = in TEST() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/ |
D | VertexFormatTests.cpp | 131 case dawn::VertexFormat::Short4: in BytesPerComponents() 184 case dawn::VertexFormat::Short4: in ComponentCount() 612 TEST_P(VertexFormatTest, Short4) { in TEST_P() argument 628 DoVertexFormatTest(dawn::VertexFormat::Short4, vertexData, vertexData); in TEST_P()
|