/external/deqp/framework/randomshaders/ |
rsgProgramExecutor.cpp | 205 return tcu::RGBA(deClamp32(deRoundFloatToInt32(rgba.x()*255), 0, 255), 206 deClamp32(deRoundFloatToInt32(rgba.y()*255), 0, 255), 207 deClamp32(deRoundFloatToInt32(rgba.z()*255), 0, 255), 208 deClamp32(deRoundFloatToInt32(rgba.w()*255), 0, 255));
|
/external/deqp/modules/glshared/ |
glsShaderPerformanceCase.cpp | 84 numVert = deRoundFloatToInt32((float)numFrag / fragmentsPerVertices); 97 numFrag = deRoundFloatToInt32((float)numVert * fragmentsPerVertices);
|
glsCalibration.cpp | 332 int numMeasureFrames = deClamp32(deRoundFloatToInt32(m_params.targetMeasureDurationUs / m_calibrateIterations.back().frameTime), minFrames, maxFrames);
|
glsTextureBufferCase.cpp | 200 texelValue = tcu::Vec4(m_texture.getPixel(de::clamp<int>((deRoundFloatToInt32(position.x() * 4) + 4) * (deRoundFloatToInt32(position.y() * 4) + 4), 0, m_texture.getWidth()-1), 0)); [all...] |
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
vktShaderPackingFunctionTests.cpp | 214 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 215 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 437 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1); 438 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1); 912 const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1); 913 const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1); 914 const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1); 915 const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1); [all...] |
/external/deqp/modules/gles31/functional/ |
es31fShaderPackingFunctionTests.cpp | 213 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 214 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 404 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1); 405 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1); 815 const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1); 816 const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1); 817 const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1); 818 const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1); [all...] |
es31fPrimitiveBoundingBoxTests.cpp | [all...] |
/external/deqp/external/vulkancts/modules/vulkan/geometry/ |
vktGeometryInstancedRenderingTests.cpp | 504 const int ix1 = std::max(deRoundFloatToInt32(x1), 0); 505 const int ix2 = std::min(deRoundFloatToInt32(x2), image.getWidth()); 506 const int iy1 = std::max(deRoundFloatToInt32(y1), 0); 507 const int iy2 = std::min(deRoundFloatToInt32(y2), image.getHeight());
|
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktSampleVerifierUtil.cpp | 86 levelBounds[0] = deRoundFloatToInt32(q); 99 levelBounds[1] = deRoundFloatToInt32(q); 108 levelBounds[ndx] = deRoundFloatToInt32(q);
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineVertexInputTests.cpp | [all...] |
/external/deqp/modules/gles2/functional/ |
es2fShaderBuiltinVarTests.cpp | 532 const int x0 = deRoundFloatToInt32(float(width) *(pointIter->x()*0.5f + 0.5f) - pointIter->z()*0.5f); 533 const int y0 = deRoundFloatToInt32(float(height)*(pointIter->y()*0.5f + 0.5f) - pointIter->z()*0.5f); 534 const int x1 = deRoundFloatToInt32(float(width) *(pointIter->x()*0.5f + 0.5f) + pointIter->z()*0.5f); 535 const int y1 = deRoundFloatToInt32(float(height)*(pointIter->y()*0.5f + 0.5f) + pointIter->z()*0.5f);
|
es2fDepthStencilClearTests.cpp | 440 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), oldColor.getGreen(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getAlpha()); 488 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getBlue(), oldColor.getAlpha());
|
es2fDepthRangeTests.cpp | 384 int col = de::clamp(deRoundFloatToInt32((float)step*depthStep*255.0f), 0, 255);
|
es2fBufferWriteTests.cpp | 488 const int size = de::clamp(deRoundFloatToInt32((float)m_curSize * deFloatPow(rnd.getFloat(0.0f, 0.7f), 3.0f)), minSize, m_curSize);
|
/external/deqp/modules/gles3/functional/ |
es3fShaderPackingFunctionTests.cpp | 209 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 210 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 400 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1); 401 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1);
|
es3fDepthStencilClearTests.cpp | 443 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), oldColor.getGreen(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getAlpha()); 491 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getBlue(), oldColor.getAlpha());
|
es3fShaderBuiltinVarTests.cpp | 558 const int x0 = deRoundFloatToInt32(float(width) *(pointIter->x()*0.5f + 0.5f) - pointIter->z()*0.5f); 559 const int y0 = deRoundFloatToInt32(float(height)*(pointIter->y()*0.5f + 0.5f) - pointIter->z()*0.5f); 560 const int x1 = deRoundFloatToInt32(float(width) *(pointIter->x()*0.5f + 0.5f) + pointIter->z()*0.5f); 561 const int y1 = deRoundFloatToInt32(float(height)*(pointIter->y()*0.5f + 0.5f) + pointIter->z()*0.5f); [all...] |
es3fFragDepthTests.cpp | 410 int col = de::clamp(deRoundFloatToInt32((float)step*depthStep*255.0f), 0, 255);
|
es3fBufferWriteTests.cpp | 500 const int size = de::clamp(deRoundFloatToInt32((float)m_curSize * deFloatPow(rnd.getFloat(0.0f, 0.7f), 3.0f)), minSize, m_curSize);
|
/external/deqp/modules/egl/ |
teglGLES2SharingTests.cpp | 439 int ox = deRoundFloatToInt32((float)width / 2.0f); 440 int oy = deRoundFloatToInt32((float)height / 2.0f); 441 int x1 = deRoundFloatToInt32(((float)width * fx1 / 2.0f) + (float)ox); 442 int y1 = deRoundFloatToInt32(((float)height * fy1 / 2.0f) + (float)oy); 443 int x2 = deRoundFloatToInt32(((float)width * fx2 / 2.0f) + (float)ox); 444 int y2 = deRoundFloatToInt32(((float)height * fy2 / 2.0f) + (float)oy); [all...] |
/external/deqp/framework/delibs/debase/ |
deMath.h | 221 DE_INLINE deInt32 deRoundFloatToInt32 (float x) { if(x >= 0.0f) return (deInt32)(x + 0.5f); else return (deInt32)(x - 0.5f); }
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
vktShaderRenderBuiltinVarTests.cpp | [all...] |
/external/deqp/framework/common/ |
tcuTestLog.cpp | 230 res[i] = de::max(1, deRoundFloatToInt32((float)imageSize[i] / d));
|
tcuRasterizationVerifier.cpp | [all...] |
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
vktRenderPassTests.cpp | [all...] |