/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktTextureFilteringAnisotropyTests.cpp | 111 const int gridSize = max(texture->getLevel(levelNdx, 0).getHeight() / 8, 1); 112 tcu::fillWithGrid(texture->getLevel(levelNdx, 0), gridSize, Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4(1.0f));
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineMultisampleTestsUtil.cpp | 130 const tcu::UVec3 gridSize = getShaderGridSize(imageType, imageSize); 132 return gridSize.x() * gridSize.y() * gridSize.z();
|
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/ |
vktSparseResourcesShaderIntrinsicsStorage.cpp | 34 tcu::UVec3 computeWorkGroupSize (const tcu::UVec3& gridSize) 39 const deUint32 xWorkGroupSize = std::min(std::min(gridSize.x(), maxComputeWorkGroupSize.x()), maxComputeWorkGroupInvocations); 40 const deUint32 yWorkGroupSize = std::min(std::min(gridSize.y(), maxComputeWorkGroupSize.y()), maxComputeWorkGroupInvocations / xWorkGroupSize); 41 const deUint32 zWorkGroupSize = std::min(std::min(gridSize.z(), maxComputeWorkGroupSize.z()), maxComputeWorkGroupInvocations / (xWorkGroupSize*yWorkGroupSize)); 429 { 1u, 0u * (deUint32)sizeof(deUint32), sizeof(deUint32) }, // GridSize.x 430 { 2u, 1u * (deUint32)sizeof(deUint32), sizeof(deUint32) }, // GridSize.y 431 { 3u, 2u * (deUint32)sizeof(deUint32), sizeof(deUint32) }, // GridSize.z 441 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize, mipLevelNdx); 442 const tcu::UVec3 workGroupSize = computeWorkGroupSize(gridSize); 443 const tcu::UVec3 specializationData[2] = { gridSize, workGroupSize } [all...] |
vktSparseResourcesTestsUtil.cpp | 129 const tcu::UVec3 gridSize = getShaderGridSize(imageType, imageSize); 131 return gridSize.x() * gridSize.y() * gridSize.z();
|
vktSparseResourcesImageMemoryAliasing.cpp | 575 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize, mipLevelNdx); 576 const deUint32 xWorkGroupSize = std::min(std::min(gridSize.x(), maxWorkGroupSize.x()), maxWorkGroupInvocations); 577 const deUint32 yWorkGroupSize = std::min(std::min(gridSize.y(), maxWorkGroupSize.y()), maxWorkGroupInvocations / xWorkGroupSize); 578 const deUint32 zWorkGroupSize = std::min(std::min(gridSize.z(), maxWorkGroupSize.z()), maxWorkGroupInvocations / (xWorkGroupSize * yWorkGroupSize)); 580 const deUint32 xWorkGroupCount = gridSize.x() / xWorkGroupSize + (gridSize.x() % xWorkGroupSize ? 1u : 0u); 581 const deUint32 yWorkGroupCount = gridSize.y() / yWorkGroupSize + (gridSize.y() % yWorkGroupSize ? 1u : 0u); 582 const deUint32 zWorkGroupCount = gridSize.z() / zWorkGroupSize + (gridSize.z() % zWorkGroupSize ? 1u : 0u) [all...] |
vktSparseResourcesImageSparseResidency.cpp | 84 tcu::UVec3 computeWorkGroupSize (const tcu::UVec3& gridSize) 89 const deUint32 xWorkGroupSize = std::min(std::min(gridSize.x(), maxComputeWorkGroupSize.x()), maxComputeWorkGroupInvocations); 90 const deUint32 yWorkGroupSize = std::min(std::min(gridSize.y(), maxComputeWorkGroupSize.y()), maxComputeWorkGroupInvocations / xWorkGroupSize); 91 const deUint32 zWorkGroupSize = std::min(std::min(gridSize.z(), maxComputeWorkGroupSize.z()), maxComputeWorkGroupInvocations / (xWorkGroupSize*yWorkGroupSize)); 143 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize); 144 const tcu::UVec3 workGroupSize = computeWorkGroupSize(gridSize); 152 << " if( gl_GlobalInvocationID.x < " << gridSize.x() << " ) \n" 153 << " if( gl_GlobalInvocationID.y < " << gridSize.y() << " ) \n" 154 << " if( gl_GlobalInvocationID.z < " << gridSize.z() << " ) \n" 517 const tcu::UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fStencilTests.cpp | 283 int gridSize = (int)deFloatCeil(deFloatSqrt((float)(numStencilValues+2))); 314 int cellWidth = width/gridSize; 315 int cellHeight = height/gridSize; 316 for (int y = 0; y < gridSize; y++) 317 for (int x = 0; x < gridSize; x++)
|
es2fVertexTextureTests.cpp | 190 PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords); 229 PosTexCoordQuadGrid<TexType>::PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords) 230 : m_gridSize(gridSize) 336 const int gridSize = grid.getSize(); 338 for (int y = 0; y < gridSize; y++) 339 for (int x = 0; x < gridSize; x++) 341 const Vec4 color = quadColors[y*gridSize + x]; 365 const int gridSize = grid.getSize(); 366 vector<Vec4> quadColors (gridSize*gridSize); [all...] |
/external/deqp/modules/gles3/functional/ |
es3fStencilTests.cpp | 286 int gridSize = (int)deFloatCeil(deFloatSqrt((float)(numStencilValues+2))); 317 int cellWidth = width/gridSize; 318 int cellHeight = height/gridSize; 319 for (int y = 0; y < gridSize; y++) 320 for (int x = 0; x < gridSize; x++)
|
es3fVertexTextureTests.cpp | 239 PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords); 278 PosTexCoordQuadGrid<TexType>::PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoordParams& texCoordParams, bool useSafeTexCoords) 279 : m_gridSize(gridSize) 431 const int gridSize = grid.getSize(); 433 for (int y = 0; y < gridSize; y++) 434 for (int x = 0; x < gridSize; x++) 436 const Vec4 color = quadColors[y*gridSize + x]; 462 const int gridSize = grid.getSize(); 463 vector<Vec4> quadColors (gridSize*gridSize); [all...] |
/external/deqp/external/vulkancts/modules/vulkan/image/ |
vktImageAtomicOperationTests.cpp | 120 const IVec3& gridSize) 133 return string("((" + z + "*" + toString(gridSize.x()) + " + " + x + ")*" + toString(gridSize.y()) + " + " + y + ")"); 195 static deInt32 getAtomicFuncArgument (const AtomicOperation op, const IVec3& invocationID, const IVec3& gridSize) 213 return (z*gridSize.x() + x)*gridSize.y() + y; 296 const UVec3 gridSize = getShaderGridSize(m_imageType, m_imageSize); 297 const string atomicCoord = getCoordStr(m_imageType, "gx % " + toString(gridSize.x()), "gy", "gz"); 300 + getAtomicFuncArgumentShaderStr(m_operation, "gx", "gy", "gz", IVec3(NUM_INVOCATIONS_PER_PIXEL*gridSize.x(), gridSize.y(), gridSize.z())) [all...] |
vktImageTestsUtil.cpp | 142 const tcu::UVec3 gridSize = getShaderGridSize(imageType, imageSize); 144 return gridSize.x() * gridSize.y() * gridSize.z(); [all...] |
/external/deqp/external/openglcts/modules/common/ |
glcShaderRenderCase.cpp | 141 QuadGrid(int gridSize, int screenWidth, int screenHeight, const Vec4& constCoords, 221 QuadGrid::QuadGrid(int gridSize, int width, int height, const Vec4& constCoords, 223 : m_gridSize(gridSize) 224 , m_numVertices((gridSize + 1) * (gridSize + 1)) 225 , m_numTriangles(gridSize * gridSize * 2) 243 for (int y = 0; y < gridSize + 1; y++) 244 for (int x = 0; x < gridSize + 1; x++) 246 float sx = static_cast<float>(x) / static_cast<float>(gridSize); [all...] |
/external/deqp/modules/glshared/ |
glsShaderRenderCase.cpp | 137 QuadGrid (int gridSize, int screenWidth, int screenHeight, const Vec4& constCoords, const vector<Mat4>& userAttribTransforms, const vector<TextureBinding>& textures); 177 QuadGrid::QuadGrid (int gridSize, int width, int height, const Vec4& constCoords, const vector<Mat4>& userAttribTransforms, const vector<TextureBinding>& textures) 178 : m_gridSize (gridSize) 179 , m_numVertices ((gridSize + 1) * (gridSize + 1)) 180 , m_numTriangles (gridSize * gridSize * 2) 198 for (int y = 0; y < gridSize+1; y++) 199 for (int x = 0; x < gridSize+1; x++) 201 float sx = (float)x / (float)gridSize; [all...] |
glsVertexArrayTests.cpp | [all...] |