Home
last modified time | relevance | path

Searched refs:AddSat (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/src/Shader/
DPixelPipeline.cpp217 …if(dst.mask & 0x1) { d.x = AddSat(d.x, d.x); if(dst.shift > 1) d.x = AddSat(d.x, d.x); if(dst.shif… in applyShader()
218 …if(dst.mask & 0x2) { d.y = AddSat(d.y, d.y); if(dst.shift > 1) d.y = AddSat(d.y, d.y); if(dst.shif… in applyShader()
219 …if(dst.mask & 0x4) { d.z = AddSat(d.z, d.z); if(dst.shift > 1) d.z = AddSat(d.z, d.z); if(dst.shif… in applyShader()
220 …if(dst.mask & 0x8) { d.w = AddSat(d.w, d.w); if(dst.shift > 1) d.w = AddSat(d.w, d.w); if(dst.shif… in applyShader()
617 res.x = AddSat(arg1->x, arg2->x); in blendTexture()
618 res.y = AddSat(arg1->y, arg2->y); in blendTexture()
619 res.z = AddSat(arg1->z, arg2->z); in blendTexture()
622 res.x = AddSat(arg1->x, arg2->x); in blendTexture()
623 res.y = AddSat(arg1->y, arg2->y); in blendTexture()
624 res.z = AddSat(arg1->z, arg2->z); in blendTexture()
[all …]
DSamplerCore.cpp559 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()
719 if(hasUnsignedTextureComponent(0)) c.x = cSum.x; else c.x = AddSat(cSum.x, cSum.x); in sampleAniso()
720 if(hasUnsignedTextureComponent(1)) c.y = cSum.y; else c.y = AddSat(cSum.y, cSum.y); in sampleAniso()
721 if(hasUnsignedTextureComponent(2)) c.z = cSum.z; else c.z = AddSat(cSum.z, cSum.z); in sampleAniso()
722 if(hasUnsignedTextureComponent(3)) c.w = cSum.w; else c.w = AddSat(cSum.w, cSum.w); in sampleAniso()
829 if(!hasUnsignedTextureComponent(0)) c.x = AddSat(c.x, c.x); // Correct for signed fractions in sampleQuad2D()
859 if(!hasUnsignedTextureComponent(1)) c.y = AddSat(c.y, c.y); // Correct for signed fractions in sampleQuad2D()
889 if(!hasUnsignedTextureComponent(2)) c.z = AddSat(c.z, c.z); // Correct for signed fractions in sampleQuad2D()
919 if(!hasUnsignedTextureComponent(3)) c.w = AddSat(c.w, c.w); // Correct for signed fractions in sampleQuad2D()
[all …]
DPixelRoutine.cpp843 output = AddSat(bufferValue, Byte8(1, 1, 1, 1, 1, 1, 1, 1)); in stencilOperation()
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()
1207 current.z = AddSat(As<UShort4>(current.z), As<UShort4>(pixel.z)); in alphaBlend()
1262 current.w = AddSat(As<UShort4>(current.w), As<UShort4>(pixel.w)); in alphaBlend()
1397 current.x = AddSat(As<UShort4>(current.x), UShort4(0x0400)); in writeColor()
1398 current.y = AddSat(As<UShort4>(current.y), UShort4(0x0200)); in writeColor()
1399 current.z = AddSat(As<UShort4>(current.z), UShort4(0x0400)); in writeColor()
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSamplerCore.cpp276 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()
419 c.x = AddSat(cSum.x, cSum.x); in sampleAniso()
423 c.y = AddSat(cSum.y, cSum.y); in sampleAniso()
427 c.z = AddSat(cSum.z, cSum.z); in sampleAniso()
431 c.w = AddSat(cSum.w, cSum.w); in sampleAniso()
536 if(!hasUnsignedTextureComponent(0)) c.x = AddSat(c.x, c.x); // Correct for signed fractions in sampleQuad2D()
566 if(!hasUnsignedTextureComponent(1)) c.y = AddSat(c.y, c.y); // Correct for signed fractions in sampleQuad2D()
596 if(!hasUnsignedTextureComponent(2)) c.z = AddSat(c.z, c.z); // Correct for signed fractions in sampleQuad2D()
626 if(!hasUnsignedTextureComponent(3)) c.w = AddSat(c.w, c.w); // Correct for signed fractions in sampleQuad2D()
[all …]
DPixelRoutine.cpp917 output = AddSat(bufferValue, Byte8(1, 1, 1, 1, 1, 1, 1, 1)); in stencilOperation()
3219 c.x = AddSat(As<UShort4>(c.x), UShort4(0x0007)) >> 4; in sRGBtoLinear16_12_16()
3220 c.y = AddSat(As<UShort4>(c.y), UShort4(0x0007)) >> 4; in sRGBtoLinear16_12_16()
3221 c.z = AddSat(As<UShort4>(c.z), UShort4(0x0007)) >> 4; in sRGBtoLinear16_12_16()
3241 c.x = AddSat(As<UShort4>(c.x), UShort4(0x0007)) >> 4; in linearToSRGB16_12_16()
3242 c.y = AddSat(As<UShort4>(c.y), UShort4(0x0007)) >> 4; in linearToSRGB16_12_16()
3243 c.z = AddSat(As<UShort4>(c.z), UShort4(0x0007)) >> 4; in linearToSRGB16_12_16()
/third_party/skia/third_party/externals/swiftshader/tests/ReactorUnitTests/
DReactorUnitTests.cpp1470 AddSat(Byte8(1, 2, 3, 4, 5, 6, 7, 8), in TEST()
1473 AddSat(Byte8(0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE), in TEST()
1480 AddSat(SByte8(1, 2, 3, 4, 5, 6, 7, 8), in TEST()
1483 AddSat(SByte8(0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E), in TEST()
1486 AddSat(SByte8(0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88), in TEST()
1493 AddSat(Short4(1, 2, 3, 4), Short4(3, 2, 1, 0)); in TEST()
1495 AddSat(Short4(0x7FFE, 0x7FFE, 0x7FFE, 0x7FFE), in TEST()
1498 AddSat(Short4(0x8001, 0x8002, 0x8003, 0x8004), in TEST()
1505 AddSat(UShort4(1, 2, 3, 4), UShort4(3, 2, 1, 0)); in TEST()
1507 AddSat(UShort4(0xFFFE, 0xFFFE, 0xFFFE, 0xFFFE), in TEST()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DReactor.hpp710 RValue<Byte8> AddSat(RValue<Byte8> x, RValue<Byte8> y);
765 RValue<SByte8> AddSat(RValue<SByte8> x, RValue<SByte8> y);
942 RValue<Short4> AddSat(RValue<Short4> x, RValue<Short4> y);
1012 RValue<UShort4> AddSat(RValue<UShort4> x, RValue<UShort4> y);
DLLVMReactor.cpp1893 RValue<Byte8> AddSat(RValue<Byte8> x, RValue<Byte8> y) in AddSat() function
1947 RValue<SByte8> AddSat(RValue<SByte8> x, RValue<SByte8> y) in AddSat() function
2094 RValue<Short4> AddSat(RValue<Short4> x, RValue<Short4> y) in AddSat() function
2240 RValue<UShort4> AddSat(RValue<UShort4> x, RValue<UShort4> y) in AddSat() function
DSubzeroReactor.cpp2261 RValue<Byte8> AddSat(RValue<Byte8> x, RValue<Byte8> y) in AddSat() function
2416 RValue<SByte8> AddSat(RValue<SByte8> x, RValue<SByte8> y) in AddSat() function
2629 RValue<Short4> AddSat(RValue<Short4> x, RValue<Short4> y) in AddSat() function
2918 RValue<UShort4> AddSat(RValue<UShort4> x, RValue<UShort4> y) in AddSat() function