Lines Matching defs:mode

67 static const char* GetModeStr(glw::GLenum mode)
69 switch (mode)
102 DE_ASSERT(DE_FALSE && "Blend mode not from GL_KHR_blend_equation_advanced.");
103 return "Blend mode not from GL_KHR_blend_equation_advanced.";
107 static const char* GetLayoutQualifierStr(glw::GLenum mode)
109 switch (mode)
142 DE_ASSERT(DE_FALSE && "Blend mode not from GL_KHR_blend_equation_advanced.");
143 return "Blend mode not from GL_KHR_blend_equation_advanced.";
407 static BlendFunc GetBlendFunc(glw::GLenum mode)
409 switch (mode)
442 DE_ASSERT(DE_FALSE && "Blend mode not from GL_KHR_blend_equation_advanced.");
455 // Blend premultiplied src and dst with given blend mode.
456 static tcu::Vec4 Blend(glw::GLenum mode, const tcu::Vec4& src, const tcu::Vec4& dst)
458 BlendFunc blend = GetBlendFunc(mode);
616 glw::GLenum mode;
705 tcu::Vec4 refCol = Blend(s.mode, srcCol, dstCol);
709 gl.blendEquation(s.mode);
760 MATCHING_QUALIFIER, // Use single qualifier that matches used blending mode.
790 BlendTest(deqp::Context& context, glu::GLSLVersion glslVersion, glw::GLenum mode, bool useAllQualifier,
792 : TestCase(context, (std::string(GetModeStr(mode)) + (useAllQualifier ? "_all_qualifier" : "")).c_str(),
795 , m_mode(mode)
1249 * Each blending mode needs to be tested without specifying the proper
1250 * blend_support_[mode] or blend_support_all layout qualifier in the
1286 MissingCase(deqp::Context& context, glu::GLSLVersion glslVersion, glw::GLenum mode, const char* layoutQualifier)
1287 : TestCase(context, GetModeStr(mode), "")
1289 , m_mode(mode)
1642 ModeCase(deqp::Context& context, glw::GLenum mode)
1643 : TestCase(context, GetModeStr(mode), "Test one mode"), m_mode(mode)
1842 // Test that each blend mode produces correct results.