Lines Matching refs:value

48 static void logConfigAttribute (TestLog& log, EGLenum attrib, EGLint value)
50 log << TestLog::Message << " " << eglu::getConfigAttribName(attrib) << ": " << eglu::getConfigAttribValueStr(attrib, value) << TestLog::EndMessage;
285 EGLint value;
287 eglGetConfigAttrib(m_display, config, attrib, &value);
291 logConfigAttribute(log, attrib, value);
293 return value;
305 void checkColorBufferType (EGLint value)
307 const bool isRGBBuffer = value == EGL_RGB_BUFFER;
308 const bool isLuminanceBuffer = value == EGL_LUMINANCE_BUFFER;
309 const bool isYuvBuffer = value == EGL_YUV_BUFFER_EXT;
316 log << TestLog::Message << "Fail, invalid EGL_COLOR_BUFFER_TYPE value" << TestLog::EndMessage;
317 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid value");
321 void checkCaveat (EGLint value)
323 if (!(value == EGL_NONE || value == EGL_SLOW_CONFIG || value == EGL_NON_CONFORMANT_CONFIG))
327 log << TestLog::Message << "Fail, invalid EGL_CONFIG_CAVEAT value" << TestLog::EndMessage;
328 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid value");
332 void checkTransparentType (EGLint value)
334 if (!(value == EGL_NONE || value == EGL_TRANSPARENT_RGB))
338 log << TestLog::Message << "Fail, invalid EGL_TRANSPARENT_TYPE value" << TestLog::EndMessage;
339 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid value");
343 void checkBoolean (EGLenum attrib, EGLint value)
345 if (!(value == EGL_FALSE || value == EGL_TRUE))
349 log << TestLog::Message << "Fail, " << eglu::getConfigAttribStr(attrib) << " should be a boolean value." << TestLog::EndMessage;
350 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid value");
354 void checkInteger (EGLenum attrib, EGLint value)
359 if (attrib == EGL_CONFIG_ID && value < 1)
364 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid value");
368 void checkSurfaceTypeMask (EGLint value)
372 if ((value & wantedBits) == 0)
377 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid value");
381 void checkAttribute (EGLenum attrib, EGLint value)
386 checkColorBufferType(value);
389 checkCaveat(value);
392 checkTransparentType(value);
399 checkSurfaceTypeMask(value);
405 checkBoolean(attrib, value);
408 checkInteger(attrib, value);
428 EGLint value;
432 eglGetConfigAttrib(m_display, config, m_attrib, &value);
435 logConfigAttribute(log, m_attrib, value);
436 checkAttribute(m_attrib, value);
543 log << TestLog::Message << "Fail, transparent color values must lie between 0 and the maximum component value." << TestLog::EndMessage;
544 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid transparent color value");
623 constraintsGroup->addChild(new GetConfigAttribTransparentValueCase(m_eglTestCtx, "transparent_value", "Transparent color value"));