Home | History | Annotate | Download | only in egl

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);
808 SharedRenderingPerfCase (EglTestContext& eglTestCtx, const TestConfig& config, const char* name, const char* description);
827 SharedRenderingPerfCase::SharedRenderingPerfCase (EglTestContext& eglTestCtx, const TestConfig& config, const char* name, const char* description)
829 , m_config (config)
980 void logTestConfig (TestLog& log, const TestConfig& config)
984 log << TestLog::Message << "Total triangles rendered: : " << config.triangleCount * config.drawCallCount * config.frameCount * config.perThreadContextCount * config.threadCount << TestLog::EndMessage;
985 log << TestLog::Message << "Number of threads: " << config.threadCount << TestLog::EndMessage;
986 log << TestLog::Message << "Number of contexts used to render with each thread: " << config.perThreadContextCount << TestLog::EndMessage;
987 log << TestLog::Message << "Number of frames rendered with each context: " << config.frameCount << TestLog::EndMessage;
988 log << TestLog::Message << "Number of draw calls performed by each frame: " << config.drawCallCount << TestLog::EndMessage;
989 log << TestLog::Message << "Number of triangles rendered by each draw call: " << config.triangleCount << TestLog::EndMessage;
991 if (config.sharedContexts)
996 if (config.useCoordBuffer)
997 log << TestLog::Message << (config.sharedCoordBuffer ? "Shared " : "") << "Coordinate buffer" << TestLog::EndMessage;
1001 if (config.useIndices)
1002 log << TestLog::Message << "Using glDrawElements with indices from " << (config.sharedIndexBuffer ? "shared " : "") << (config.useIndexBuffer ? "buffer." : "pointer.") << TestLog::EndMessage;
1004 if (config.useTexture)
1006 if (config.textureType == TestConfig::TEXTURETYPE_TEXTURE)
1008 else if (config.textureType == TestConfig::TEXTURETYPE_SHARED_TEXTURE)
1010 else if (config.textureType == TestConfig::TEXTURETYPE_IMAGE)
1012 else if (config.textureType == TestConfig::TEXTURETYPE_SHARED_IMAGE)
1014 else if (config.textureType == TestConfig::TEXTURETYPE_SHARED_IMAGE_TEXTURE)
1019 log << TestLog::Message << "Texture size: " << config.textureWidth << "x" << config.textureHeight << TestLog::EndMessage;
1022 if (config.sharedProgram)
1025 log << TestLog::Message << "Surface size: " << config.surfaceWidth << "x" << config.surfaceHeight << TestLog::EndMessage;
1131 TestConfig config = basicConfig;
1132 config.threadCount = threadCount;
1133 config.perThreadContextCount = contextCount;
1134 config.sharedContexts = false;
1137 TestConfig smallConfig = config;
1149 TestConfig bigConfig = config;
1180 TestConfig config = basicConfig;
1181 config.threadCount = threadCount;
1182 config.perThreadContextCount = contextCount;
1185 TestConfig smallConfig = config;
1197 TestConfig bigConfig = config;
1228 TestConfig config = basicConfig;
1229 config.sharedCoordBuffer = true;
1230 config.threadCount = threadCount;
1231 config.perThreadContextCount = contextCount;
1234 TestConfig smallConfig = config;
1246 TestConfig bigConfig = config;
1277 TestConfig config = basicConfig;
1278 config.sharedIndexBuffer = true;
1279 config.threadCount = threadCount;
1280 config.perThreadContextCount = contextCount;
1283 TestConfig smallConfig = config;
1295 TestConfig bigConfig = config;
1326 TestConfig config = basicConfig;
1327 config.textureType = TestConfig::TEXTURETYPE_SHARED_TEXTURE;
1328 config.threadCount = threadCount;
1329 config.perThreadContextCount = contextCount;
1332 TestConfig smallConfig = config;
1344 TestConfig bigConfig = config;
1375 TestConfig config = basicConfig;
1376 config.sharedProgram = true;
1377 config.threadCount = threadCount;
1378 config.perThreadContextCount = contextCount;
1381 TestConfig smallConfig = config;
1393 TestConfig bigConfig = config;
1424 TestConfig config = basicConfig;
1425 config.sharedCoordBuffer = true;
1426 config.sharedIndexBuffer = true;
1427 config.sharedProgram = true;
1428 config.textureType = TestConfig::TEXTURETYPE_SHARED_TEXTURE;
1429 config.threadCount = threadCount;
1430 config.perThreadContextCount = contextCount;
1433 TestConfig smallConfig = config;
1445 TestConfig bigConfig = config;
1476 TestConfig config = basicConfig;
1478 config.textureType = TestConfig::TEXTURETYPE_IMAGE;
1479 config.threadCount = threadCount;
1480 config.perThreadContextCount = contextCount;
1481 config.sharedContexts = false;
1484 TestConfig smallConfig = config;
1496 TestConfig bigConfig = config;
1527 TestConfig config = basicConfig;
1529 config.textureType = TestConfig::TEXTURETYPE_SHARED_IMAGE;
1530 config.threadCount = threadCount;
1531 config.perThreadContextCount = contextCount;
1532 config.sharedContexts = false;
1535 TestConfig smallConfig = config;
1547 TestConfig bigConfig = config;
1578 TestConfig config = basicConfig;
1579 config.textureType = TestConfig::TEXTURETYPE_SHARED_IMAGE_TEXTURE;
1580 config.threadCount = threadCount;
1581 config.perThreadContextCount = contextCount;
1584 TestConfig smallConfig = config;
1596 TestConfig bigConfig = config;