/third_party/vk-gl-cts/framework/common/ |
H A D | tcuRGBA.hpp | 158 return RGBA(deClamp32(a.getRed() + b.getRed(), 0, 255), in operator +() 159 deClamp32(a.getGreen() + b.getGreen(), 0, 255), in operator +() 160 deClamp32(a.getBlue() + b.getBlue(), 0, 255), in operator +() 161 deClamp32(a.getAlpha() + b.getAlpha(), 0, 255)); in operator +() 166 return RGBA(deClamp32(a.getRed() - b.getRed(), 0, 255), in operator -() 167 deClamp32(a.getGreen() - b.getGreen(), 0, 255), in operator -() 168 deClamp32(a.getBlue() - b.getBlue(), 0, 255), in operator -() 169 deClamp32(a.getAlpha() - b.getAlpha(), 0, 255)); in operator -() 174 return RGBA(deClamp32(a.getRed() * b, 0, 255), in operator *() 175 deClamp32( in operator *() [all...] |
H A D | tcuCompressedTexture.cpp | 535 dst[dstOffset+0] = (deUint8)deClamp32((int)baseR[subBlock] + modifier, 0, 255); in decompressETC1Block() 536 dst[dstOffset+1] = (deUint8)deClamp32((int)baseG[subBlock] + modifier, 0, 255); in decompressETC1Block() 537 dst[dstOffset+2] = (deUint8)deClamp32((int)baseB[subBlock] + modifier, 0, 255); in decompressETC1Block() 648 dst[dstOffset+0] = (deUint8)deClamp32((int)baseR[subBlock] + modifier, 0, 255); in decompressETC2Block() 649 dst[dstOffset+1] = (deUint8)deClamp32((int)baseG[subBlock] + modifier, 0, 255); in decompressETC2Block() 650 dst[dstOffset+2] = (deUint8)deClamp32((int)baseB[subBlock] + modifier, 0, 255); in decompressETC2Block() 685 paintR[1] = (deUint8)deClamp32((int)paintR[2] + dist, 0, 255); in decompressETC2Block() 686 paintG[1] = (deUint8)deClamp32((int)paintG[2] + dist, 0, 255); in decompressETC2Block() 687 paintB[1] = (deUint8)deClamp32((int)paintB[2] + dist, 0, 255); in decompressETC2Block() 688 paintR[3] = (deUint8)deClamp32((in in decompressETC2Block() [all...] |
H A D | tcuTexVerifierUtil.cpp | 150 return deClamp32(c, -1, size); in wrap() 153 return deClamp32(c, 0, size-1); in wrap() 160 c = deClamp32(c, -size, size); in wrap()
|
H A D | tcuTexture.cpp | 1888 return deClamp32(c, -1, size); in wrap() 1891 return deClamp32(c, 0, size-1); in wrap() 1900 c = deClamp32(c, -size, size); in wrap() 1907 return deClamp32(c, 0, size-1); // \note Actual mirroring done already in unnormalization function. in wrap() 2632 int level = deClamp32((int)deFloatCeil(lod + 0.5f) - 1, 0, maxLevel); in sampleLevelArray1DOffset() 2642 int level0 = deClamp32((int)deFloatFloor(lod), 0, maxLevel); in sampleLevelArray1DOffset() 2690 const int level0 = isLinearMipmapMode ? (int)deFloatFloor(minLodRelative) : deClamp32((int)deFloatCeil(minLodRelative + 0.5f) - 1, 0, maxLevel); in sampleLevelArray2DOffset() 2710 int level = deClamp32((int)deFloatCeil(lod + 0.5f) - 1, 0, maxLevel); in sampleLevelArray2DOffset() 2733 int level0 = deClamp32((int)deFloatFloor(lod), 0, maxLevel); in sampleLevelArray2DOffset() 2783 const int level0 = isLinearMipmapMode ? (int)deFloatFloor(minLodRelative) : deClamp32((in in sampleLevelArray3DOffset() [all...] |
H A D | tcuImageCompare.cpp | 404 diffMask.setPixel(tcu::RGBA(deClamp32(sum*diffFactor, 0, 255), deClamp32(255-sum*diffFactor, 0, 255), 0, 255).toVec(), x, y); in computeSquaredDiffSum() 436 int score = deClamp32(deFloorFloatToInt32(100.0f - (de::max(sum-(float)bestScoreDiff, 0.0f) / (float)(worstScoreDiff-bestScoreDiff))*100.0f), 0, 100); in measurePixelDiffAccuracy()
|
/third_party/vk-gl-cts/framework/delibs/deimage/ |
H A D | deARGB.h | 63 return deARGB_set(deClamp32(deARGB_getRed(a) + deARGB_getRed(b), 0, 255), in deARGB_add() 64 deClamp32(deARGB_getGreen(a) + deARGB_getGreen(b), 0, 255), in deARGB_add() 65 deClamp32(deARGB_getBlue(a) + deARGB_getBlue(b), 0, 255), in deARGB_add() 66 deClamp32(deARGB_getAlpha(a) + deARGB_getAlpha(b), 0, 255)); in deARGB_add()
|
H A D | deImage.c | 140 int x1 = deClamp32(x0+1, 0, srcWidth-1); in deImage_scale() 141 int y1 = deClamp32(y0+1, 0, srcHeight-1); in deImage_scale()
|
/third_party/vk-gl-cts/framework/randomshaders/ |
H A D | rsgProgramExecutor.cpp | 205 return tcu::RGBA(deClamp32(deRoundFloatToInt32(rgba.x()*255), 0, 255), in toColor() 206 deClamp32(deRoundFloatToInt32(rgba.y()*255), 0, 255), in toColor() 207 deClamp32(deRoundFloatToInt32(rgba.z()*255), 0, 255), in toColor() 208 deClamp32(deRoundFloatToInt32(rgba.w()*255), 0, 255)); in toColor()
|
/third_party/vk-gl-cts/modules/egl/ |
H A D | teglGLES2SharingTests.cpp | 623 int r = deClamp32((int)(255.0f * color.x()), 0, 255); in renderResource() 624 int g = deClamp32((int)(255.0f * color.y()), 0, 255); in renderResource() 625 int b = deClamp32((int)(255.0f * color.z()), 0, 255); in renderResource() 626 int a = deClamp32((int)(255.0f * color.w()), 0, 255); in renderResource() 830 int red = deClamp32((int)(255.0f * color.x()), 0, 255); in renderResource() 831 int green = deClamp32((int)(255.0f * color.y()), 0, 255); in renderResource() 832 int blue = deClamp32((int)(255.0f * color.z()), 0, 255); in renderResource() 833 int alpha = deClamp32((int)(255.0f * color.w()), 0, 255); in renderResource() 1119 int red = deClamp32((int)(255.0f * color.x()), 0, 255); in renderResource() 1120 int green = deClamp32((in in renderResource() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcShaderRenderCase.cpp | 66 deClamp32(deRoundFloatToInt32(a.x() * 255.0f), 0, 255), deClamp32(deRoundFloatToInt32(a.y() * 255.0f), 0, 255), in toRGBA() 67 deClamp32(deRoundFloatToInt32(a.z() * 255.0f), 0, 255), deClamp32(deRoundFloatToInt32(a.w() * 255.0f), 0, 255)); in toRGBA()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fDepthStencilClearTests.cpp | 440 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), oldColor.getGreen(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getAlpha()); in renderReference() 488 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getBlue(), oldColor.getAlpha()); in renderReference()
|
H A D | es2fTextureMipmapTests.cpp | 169 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init() 521 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fDepthStencilClearTests.cpp | 443 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), oldColor.getGreen(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getAlpha()); in renderReference() 491 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getBlue(), oldColor.getAlpha()); in renderReference()
|
H A D | es3fTextureMipmapTests.cpp | 213 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init() 560 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init() 1155 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init() 1472 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init() 1774 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init() 2095 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
H A D | vktPipelineVertexInputTests.cpp | 1451 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(-(deInt32)(vertexInputIndex + swizzledNdx), minIntValue, maxIntValue)); in writeVertexInputValue() 1463 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(vertexInputIndex + swizzledNdx, minUintValue, maxUintValue)); in writeVertexInputValue() 1487 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(-(deInt32)(vertexInputIndex + swizzledNdx), minIntValue, maxIntValue)); in writeVertexInputValue() 1494 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(vertexInputIndex + swizzledNdx, minUintValue, maxUintValue)); in writeVertexInputValue() 1501 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(minIntValue + (vertexInputIndex + swizzledNdx), minIntValue, maxIntValue)); in writeVertexInputValue()
|
H A D | vktPipelineMultisampleSampleLocationsExtTests.cpp | 363 locationNdx.x() = static_cast<deUint32>(deClamp32(locationNdx.x() + offset[rng.getUint32() % DE_LENGTH_OF_ARRAY(offset)], 0u, numLocations - 1)); in fillSampleLocationsPacked() 364 locationNdx.y() = static_cast<deUint32>(deClamp32(locationNdx.y() + offset[rng.getUint32() % DE_LENGTH_OF_ARRAY(offset)], 0u, numLocations - 1)); in fillSampleLocationsPacked()
|
/third_party/vk-gl-cts/modules/gles2/accuracy/ |
H A D | es2aTextureMipmapTests.cpp | 166 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init() 465 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
|
/third_party/vk-gl-cts/modules/gles3/accuracy/ |
H A D | es3aTextureMipmapTests.cpp | 157 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init() 452 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineVertexInputTests.cpp | 1586 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(-(deInt32)(vertexInputIndex + swizzledNdx), minIntValue, maxIntValue)); in writeVertexInputValue() 1598 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(vertexInputIndex + swizzledNdx, minUintValue, maxUintValue)); in writeVertexInputValue() 1626 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(-(deInt32)(vertexInputIndex + swizzledNdx), minIntValue, maxIntValue)); in writeVertexInputValue() 1633 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(vertexInputIndex + swizzledNdx, minUintValue, maxUintValue)); in writeVertexInputValue() 1640 writeVertexInputValueIntPacked(destPtr, packedFormat32, componentOffset, attribute.vkDescription.format, componentNdx, deClamp32(minIntValue + (vertexInputIndex + swizzledNdx), minIntValue, maxIntValue)); in writeVertexInputValue()
|
H A D | vktPipelineMultisampleSampleLocationsExtTests.cpp | 364 locationNdx.x() = static_cast<deUint32>(deClamp32(locationNdx.x() + offset[rng.getUint32() % DE_LENGTH_OF_ARRAY(offset)], 0u, numLocations - 1)); in fillSampleLocationsPacked() 365 locationNdx.y() = static_cast<deUint32>(deClamp32(locationNdx.y() + offset[rng.getUint32() % DE_LENGTH_OF_ARRAY(offset)], 0u, numLocations - 1)); in fillSampleLocationsPacked()
|
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsCalibration.cpp | 332 int numMeasureFrames = deClamp32(deRoundFloatToInt32(m_params.targetMeasureDurationUs / m_calibrateIterations.back().frameTime), minFrames, maxFrames); in recomputeParameters()
|
/third_party/vk-gl-cts/framework/delibs/debase/ |
H A D | deInt32.h | 148 DE_INLINE int deClamp32 (int a, int mn, int mx) in deClamp32() function
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
H A D | vktTextureMipmapTests.cpp | 194 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in Texture2DMipmapTestInstance() 462 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in TextureCubeMipmapTestInstance() 703 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in Texture3DMipmapTestInstance() 1000 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in Texture2DLodControlTestInstance() 1274 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in TextureCubeLodControlTestInstance() 1551 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in Texture3DLodControlTestInstance()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
H A D | vktTextureMipmapTests.cpp | 194 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in Texture2DMipmapTestInstance() 462 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in TextureCubeMipmapTestInstance() 703 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in Texture3DMipmapTestInstance() 1000 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in Texture2DLodControlTestInstance() 1274 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in TextureCubeLodControlTestInstance() 1551 const deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in Texture3DLodControlTestInstance()
|
/third_party/vk-gl-cts/framework/opengl/simplereference/ |
H A D | sglrReferenceContext.cpp | 4641 const int copyX = deClamp32(x, 0, src.raw().getHeight()); 4642 const int copyY = deClamp32(y, 0, src.raw().getDepth()); 4643 const int copyWidth = deClamp32(width, 0, src.raw().getHeight()-x); 4644 const int copyHeight = deClamp32(height, 0, src.raw().getDepth()-y);
|