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);
812 SharedRenderingPerfCase (EglTestContext& eglTestCtx, const TestConfig& config, const char* name, const char* description);
831 SharedRenderingPerfCase::SharedRenderingPerfCase (EglTestContext& eglTestCtx, const TestConfig& config, const char* name, const char* description)
833 , m_config (config)
984 void logTestConfig (TestLog& log, const TestConfig& config)
988 log << TestLog::Message << "Total triangles rendered: : " << config.triangleCount * config.drawCallCount * config.frameCount * config.perThreadContextCount * config.threadCount << TestLog::EndMessage;
989 log << TestLog::Message << "Number of threads: " << config.threadCount << TestLog::EndMessage;
990 log << TestLog::Message << "Number of contexts used to render with each thread: " << config.perThreadContextCount << TestLog::EndMessage;
991 log << TestLog::Message << "Number of frames rendered with each context: " << config.frameCount << TestLog::EndMessage;
992 log << TestLog::Message << "Number of draw calls performed by each frame: " << config.drawCallCount << TestLog::EndMessage;
993 log << TestLog::Message << "Number of triangles rendered by each draw call: " << config.triangleCount << TestLog::EndMessage;
995 if (config.sharedContexts)
1000 if (config.useCoordBuffer)
1001 log << TestLog::Message << (config.sharedCoordBuffer ? "Shared " : "") << "Coordinate buffer" << TestLog::EndMessage;
1005 if (config.useIndices)
1006 log << TestLog::Message << "Using glDrawElements with indices from " << (config.sharedIndexBuffer ? "shared " : "") << (config.useIndexBuffer ? "buffer." : "pointer.") << TestLog::EndMessage;
1008 if (config.useTexture)
1010 if (config.textureType == TestConfig::TEXTURETYPE_TEXTURE)
1012 else if (config.textureType == TestConfig::TEXTURETYPE_SHARED_TEXTURE)
1014 else if (config.textureType == TestConfig::TEXTURETYPE_IMAGE)
1016 else if (config.textureType == TestConfig::TEXTURETYPE_SHARED_IMAGE)
1018 else if (config.textureType == TestConfig::TEXTURETYPE_SHARED_IMAGE_TEXTURE)
1023 log << TestLog::Message << "Texture size: " << config.textureWidth << "x" << config.textureHeight << TestLog::EndMessage;
1026 if (config.sharedProgram)
1029 log << TestLog::Message << "Surface size: " << config.surfaceWidth << "x" << config.surfaceHeight << TestLog::EndMessage;
1135 TestConfig config = basicConfig;
1136 config.threadCount = threadCount;
1137 config.perThreadContextCount = contextCount;
1138 config.sharedContexts = false;
1141 TestConfig smallConfig = config;
1153 TestConfig bigConfig = config;
1184 TestConfig config = basicConfig;
1185 config.threadCount = threadCount;
1186 config.perThreadContextCount = contextCount;
1189 TestConfig smallConfig = config;
1201 TestConfig bigConfig = config;
1232 TestConfig config = basicConfig;
1233 config.sharedCoordBuffer = true;
1234 config.threadCount = threadCount;
1235 config.perThreadContextCount = contextCount;
1238 TestConfig smallConfig = config;
1250 TestConfig bigConfig = config;
1281 TestConfig config = basicConfig;
1282 config.sharedIndexBuffer = true;
1283 config.threadCount = threadCount;
1284 config.perThreadContextCount = contextCount;
1287 TestConfig smallConfig = config;
1299 TestConfig bigConfig = config;
1330 TestConfig config = basicConfig;
1331 config.textureType = TestConfig::TEXTURETYPE_SHARED_TEXTURE;
1332 config.threadCount = threadCount;
1333 config.perThreadContextCount = contextCount;
1336 TestConfig smallConfig = config;
1348 TestConfig bigConfig = config;
1379 TestConfig config = basicConfig;
1380 config.sharedProgram = true;
1381 config.threadCount = threadCount;
1382 config.perThreadContextCount = contextCount;
1385 TestConfig smallConfig = config;
1397 TestConfig bigConfig = config;
1428 TestConfig config = basicConfig;
1429 config.sharedCoordBuffer = true;
1430 config.sharedIndexBuffer = true;
1431 config.sharedProgram = true;
1432 config.textureType = TestConfig::TEXTURETYPE_SHARED_TEXTURE;
1433 config.threadCount = threadCount;
1434 config.perThreadContextCount = contextCount;
1437 TestConfig smallConfig = config;
1449 TestConfig bigConfig = config;
1480 TestConfig config = basicConfig;
1482 config.textureType = TestConfig::TEXTURETYPE_IMAGE;
1483 config.threadCount = threadCount;
1484 config.perThreadContextCount = contextCount;
1485 config.sharedContexts = false;
1488 TestConfig smallConfig = config;
1500 TestConfig bigConfig = config;
1531 TestConfig config = basicConfig;
1533 config.textureType = TestConfig::TEXTURETYPE_SHARED_IMAGE;
1534 config.threadCount = threadCount;
1535 config.perThreadContextCount = contextCount;
1536 config.sharedContexts = false;
1539 TestConfig smallConfig = config;
1551 TestConfig bigConfig = config;
1582 TestConfig config = basicConfig;
1583 config.textureType = TestConfig::TEXTURETYPE_SHARED_IMAGE_TEXTURE;
1584 config.threadCount = threadCount;
1585 config.perThreadContextCount = contextCount;
1588 TestConfig smallConfig = config;
1600 TestConfig bigConfig = config;