/external/swiftshader/src/Shader/ |
D | PixelPipeline.cpp | 217 …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 …]
|
D | SamplerCore.cpp | 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() 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 …]
|
D | PixelRoutine.cpp | 843 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()
|
/external/swiftshader/src/Pipeline/ |
D | SamplerCore.cpp | 354 case +1: return AddSat(As<UShort4>(uvw), As<UShort4>(offset)); in offsetSample() 355 case 2: return AddSat(AddSat(As<UShort4>(uvw), As<UShort4>(offset)), As<UShort4>(offset)); in offsetSample() 497 c.x = AddSat(cSum.x, cSum.x); in sampleAniso() 501 c.y = AddSat(cSum.y, cSum.y); in sampleAniso() 505 c.z = AddSat(cSum.z, cSum.z); in sampleAniso() 509 c.w = AddSat(cSum.w, cSum.w); in sampleAniso() 614 if(!hasUnsignedTextureComponent(0)) c.x = AddSat(c.x, c.x); // Correct for signed fractions in sampleQuad2D() 644 if(!hasUnsignedTextureComponent(1)) c.y = AddSat(c.y, c.y); // Correct for signed fractions in sampleQuad2D() 674 if(!hasUnsignedTextureComponent(2)) c.z = AddSat(c.z, c.z); // Correct for signed fractions in sampleQuad2D() 704 if(!hasUnsignedTextureComponent(3)) c.w = AddSat(c.w, c.w); // Correct for signed fractions in sampleQuad2D() [all …]
|
D | PixelRoutine.cpp | 844 output = AddSat(bufferValue, Byte8(1, 1, 1, 1, 1, 1, 1, 1)); in stencilOperation() 1200 current.x = AddSat(As<UShort4>(current.x), As<UShort4>(pixel.x)); in alphaBlend() 1201 current.y = AddSat(As<UShort4>(current.y), As<UShort4>(pixel.y)); in alphaBlend() 1202 current.z = AddSat(As<UShort4>(current.z), As<UShort4>(pixel.z)); in alphaBlend() 1257 current.w = AddSat(As<UShort4>(current.w), As<UShort4>(pixel.w)); in alphaBlend() 2795 c.x = AddSat(As<UShort4>(c.x), UShort4(0x0007)) >> 4; in sRGBtoLinear16_12_16() 2796 c.y = AddSat(As<UShort4>(c.y), UShort4(0x0007)) >> 4; in sRGBtoLinear16_12_16() 2797 c.z = AddSat(As<UShort4>(c.z), UShort4(0x0007)) >> 4; in sRGBtoLinear16_12_16() 2817 c.x = AddSat(As<UShort4>(c.x), UShort4(0x0007)) >> 4; in linearToSRGB16_12_16() 2818 c.y = AddSat(As<UShort4>(c.y), UShort4(0x0007)) >> 4; in linearToSRGB16_12_16() [all …]
|
/external/swiftshader/tests/ReactorUnitTests/ |
D | ReactorUnitTests.cpp | 1408 AddSat(Byte8(1, 2, 3, 4, 5, 6, 7, 8), in TEST() 1411 AddSat(Byte8(0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE), in TEST() 1418 AddSat(SByte8(1, 2, 3, 4, 5, 6, 7, 8), in TEST() 1421 AddSat(SByte8(0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E), in TEST() 1424 AddSat(SByte8(0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88), in TEST() 1431 AddSat(Short4(1, 2, 3, 4), Short4(3, 2, 1, 0)); in TEST() 1433 AddSat(Short4(0x7FFE, 0x7FFE, 0x7FFE, 0x7FFE), in TEST() 1436 AddSat(Short4(0x8001, 0x8002, 0x8003, 0x8004), in TEST() 1443 AddSat(UShort4(1, 2, 3, 4), UShort4(3, 2, 1, 0)); in TEST() 1445 AddSat(UShort4(0xFFFE, 0xFFFE, 0xFFFE, 0xFFFE), in TEST()
|
/external/swiftshader/src/Reactor/ |
D | Reactor.hpp | 708 RValue<Byte8> AddSat(RValue<Byte8> x, RValue<Byte8> y); 763 RValue<SByte8> AddSat(RValue<SByte8> x, RValue<SByte8> y); 940 RValue<Short4> AddSat(RValue<Short4> x, RValue<Short4> y); 1010 RValue<UShort4> AddSat(RValue<UShort4> x, RValue<UShort4> y);
|
D | SubzeroReactor.cpp | 2262 RValue<Byte8> AddSat(RValue<Byte8> x, RValue<Byte8> y) in AddSat() function 2417 RValue<SByte8> AddSat(RValue<SByte8> x, RValue<SByte8> y) in AddSat() function 2630 RValue<Short4> AddSat(RValue<Short4> x, RValue<Short4> y) in AddSat() function 2919 RValue<UShort4> AddSat(RValue<UShort4> x, RValue<UShort4> y) in AddSat() function
|
D | LLVMReactor.cpp | 1873 RValue<Byte8> AddSat(RValue<Byte8> x, RValue<Byte8> y) in AddSat() function 1927 RValue<SByte8> AddSat(RValue<SByte8> x, RValue<SByte8> y) in AddSat() function 2074 RValue<Short4> AddSat(RValue<Short4> x, RValue<Short4> y) in AddSat() function 2220 RValue<UShort4> AddSat(RValue<UShort4> x, RValue<UShort4> y) in AddSat() function
|