Lines Matching defs:config
104 TestContext (EglTestContext& eglTestCtx, EGLDisplay display, EGLConfig eglConfig, const TestConfig& config, bool share, TestContext* parent);
152 void createCoordData (vector<float>& data, const TestConfig& config)
154 if (config.useIndices)
178 data.reserve(config.triangleCount * 3 * 2);
180 for (int triangleNdx = 0; triangleNdx < config.triangleCount; triangleNdx++)
202 GLuint createCoordBuffer (const glw::Functions& gl, const TestConfig& config)
207 createCoordData(data, config);
221 void createIndexData (vector<deUint16>& data, const TestConfig& config)
223 for (int triangleNdx = 0; triangleNdx < config.triangleCount; triangleNdx++)
240 GLuint createIndexBuffer (const glw::Functions& gl, const TestConfig& config)
245 createIndexData(data, config);
259 void createTextureData (vector<deUint8>& data, const TestConfig& config)
261 for (int x = 0; x < config.textureWidth; x++)
263 for (int y = 0; y < config.textureHeight; y++)
273 GLuint createTexture (const glw::Functions& gl, const TestConfig& config)
278 createTextureData(data, config);
292 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, config.textureWidth, config.textureWidth, 0, GL_RGBA, GL_UNSIGNED_BYTE, &(data[0]));
300 GLuint createProgram (const glw::Functions& gl, const TestConfig& config)
305 if (config.useTexture)
461 EGLSurface createEGLSurface (EglTestContext& testCtx, EGLDisplay display, EGLConfig eglConfig, const TestConfig& config)
466 EGL_WIDTH, config.surfaceWidth,
467 EGL_HEIGHT, config.surfaceHeight,
479 TestContext::TestContext (EglTestContext& testCtx, EGLDisplay eglDisplay, EGLConfig eglConfig, const TestConfig& config, bool share, TestContext* parent)
482 , m_config (config)
506 m_eglSurface = createEGLSurface(m_testCtx, m_eglDisplay, eglConfig, config);
815 SharedRenderingPerfCase (EglTestContext& eglTestCtx, const TestConfig& config, const char* name, const char* description);
834 SharedRenderingPerfCase::SharedRenderingPerfCase (EglTestContext& eglTestCtx, const TestConfig& config, const char* name, const char* description)
836 , m_config (config)
987 void logTestConfig (TestLog& log, const TestConfig& config)
991 log << TestLog::Message << "Total triangles rendered: : " << config.triangleCount * config.drawCallCount * config.frameCount * config.perThreadContextCount * config.threadCount << TestLog::EndMessage;
992 log << TestLog::Message << "Number of threads: " << config.threadCount << TestLog::EndMessage;
993 log << TestLog::Message << "Number of contexts used to render with each thread: " << config.perThreadContextCount << TestLog::EndMessage;
994 log << TestLog::Message << "Number of frames rendered with each context: " << config.frameCount << TestLog::EndMessage;
995 log << TestLog::Message << "Number of draw calls performed by each frame: " << config.drawCallCount << TestLog::EndMessage;
996 log << TestLog::Message << "Number of triangles rendered by each draw call: " << config.triangleCount << TestLog::EndMessage;
998 if (config.sharedContexts)
1003 if (config.useCoordBuffer)
1004 log << TestLog::Message << (config.sharedCoordBuffer ? "Shared " : "") << "Coordinate buffer" << TestLog::EndMessage;
1008 if (config.useIndices)
1009 log << TestLog::Message << "Using glDrawElements with indices from " << (config.sharedIndexBuffer ? "shared " : "") << (config.useIndexBuffer ? "buffer." : "pointer.") << TestLog::EndMessage;
1011 if (config.useTexture)
1013 if (config.textureType == TestConfig::TEXTURETYPE_TEXTURE)
1015 else if (config.textureType == TestConfig::TEXTURETYPE_SHARED_TEXTURE)
1017 else if (config.textureType == TestConfig::TEXTURETYPE_IMAGE)
1019 else if (config.textureType == TestConfig::TEXTURETYPE_SHARED_IMAGE)
1021 else if (config.textureType == TestConfig::TEXTURETYPE_SHARED_IMAGE_TEXTURE)
1026 log << TestLog::Message << "Texture size: " << config.textureWidth << "x" << config.textureHeight << TestLog::EndMessage;
1029 if (config.sharedProgram)
1032 log << TestLog::Message << "Surface size: " << config.surfaceWidth << "x" << config.surfaceHeight << TestLog::EndMessage;
1138 TestConfig config = basicConfig;
1139 config.threadCount = threadCount;
1140 config.perThreadContextCount = contextCount;
1141 config.sharedContexts = false;
1144 TestConfig smallConfig = config;
1156 TestConfig bigConfig = config;
1187 TestConfig config = basicConfig;
1188 config.threadCount = threadCount;
1189 config.perThreadContextCount = contextCount;
1192 TestConfig smallConfig = config;
1204 TestConfig bigConfig = config;
1235 TestConfig config = basicConfig;
1236 config.sharedCoordBuffer = true;
1237 config.threadCount = threadCount;
1238 config.perThreadContextCount = contextCount;
1241 TestConfig smallConfig = config;
1253 TestConfig bigConfig = config;
1284 TestConfig config = basicConfig;
1285 config.sharedIndexBuffer = true;
1286 config.threadCount = threadCount;
1287 config.perThreadContextCount = contextCount;
1290 TestConfig smallConfig = config;
1302 TestConfig bigConfig = config;
1333 TestConfig config = basicConfig;
1334 config.textureType = TestConfig::TEXTURETYPE_SHARED_TEXTURE;
1335 config.threadCount = threadCount;
1336 config.perThreadContextCount = contextCount;
1339 TestConfig smallConfig = config;
1351 TestConfig bigConfig = config;
1382 TestConfig config = basicConfig;
1383 config.sharedProgram = true;
1384 config.threadCount = threadCount;
1385 config.perThreadContextCount = contextCount;
1388 TestConfig smallConfig = config;
1400 TestConfig bigConfig = config;
1431 TestConfig config = basicConfig;
1432 config.sharedCoordBuffer = true;
1433 config.sharedIndexBuffer = true;
1434 config.sharedProgram = true;
1435 config.textureType = TestConfig::TEXTURETYPE_SHARED_TEXTURE;
1436 config.threadCount = threadCount;
1437 config.perThreadContextCount = contextCount;
1440 TestConfig smallConfig = config;
1452 TestConfig bigConfig = config;
1483 TestConfig config = basicConfig;
1485 config.textureType = TestConfig::TEXTURETYPE_IMAGE;
1486 config.threadCount = threadCount;
1487 config.perThreadContextCount = contextCount;
1488 config.sharedContexts = false;
1491 TestConfig smallConfig = config;
1503 TestConfig bigConfig = config;
1534 TestConfig config = basicConfig;
1536 config.textureType = TestConfig::TEXTURETYPE_SHARED_IMAGE;
1537 config.threadCount = threadCount;
1538 config.perThreadContextCount = contextCount;
1539 config.sharedContexts = false;
1542 TestConfig smallConfig = config;
1554 TestConfig bigConfig = config;
1585 TestConfig config = basicConfig;
1586 config.textureType = TestConfig::TEXTURETYPE_SHARED_IMAGE_TEXTURE;
1587 config.threadCount = threadCount;
1588 config.perThreadContextCount = contextCount;
1591 TestConfig smallConfig = config;
1603 TestConfig bigConfig = config;