• Home
  • Raw
  • Download

Lines Matching +full:results +full:- +full:coverage

1 /*-------------------------------------------------------------------------
3 * -----------------------------
5 * Copyright (c) 2015-2016 The Khronos Group Inc.
11 * http://www.apache.org/licenses/LICENSE-2.0
22 */ /*-------------------------------------------------------------------*/
69 /******************************** Coverage Tests Implementation ********************************/
71 /** @brief API coverage tests constructor.
76 …: deqp::TestCase(context, "coverage", "Clip Distance API Coverage Test"), m_gl_max_clip_distances_… in CoverageTest()
81 /** @brief Iterate API coverage tests.
118 /* @brief glGet GL_MAX_CLIP_DISTANCES limit coverage test.
168 /* @brief glEnable / glDisable of GL_CLIP_DISTANCEi coverage test.
219 /* @brief gl_MaxClipDistances value test in the vertex shader coverage test.
269 /* Check results. */ in MaxClipDistancesValueInVertexShaderTest()
270 std::vector<glw::GLint> results = vertex_buffer_object.readBuffer(); in MaxClipDistancesValueInVertexShaderTest() local
272 if (results.size() < 1) in MaxClipDistancesValueInVertexShaderTest()
274 …m_testCtx.getLog() << tcu::TestLog::Message << "Results reading error." << tcu::TestLog::EndMessag… in MaxClipDistancesValueInVertexShaderTest()
278 if (results[0] != m_gl_max_clip_distances_value) in MaxClipDistancesValueInVertexShaderTest()
281 … << "Vertex shader's gl_MaxClipDistances constant has improper value equal to " << results[0] in MaxClipDistancesValueInVertexShaderTest()
291 /* @brief gl_MaxClipDistances value test in the fragment shader coverage test.
309 /* Creating red-color-only frambuffer. */ in MaxClipDistancesValueInFragmentShaderTest()
348 /* Fetch results. */ in MaxClipDistancesValueInFragmentShaderTest()
357 /* Check results. */ in MaxClipDistancesValueInFragmentShaderTest()
373 /* @brief Vertex shader to fragment shader passing coverage test.
397 /* Creating red-color-only frambuffer. */ in ClipDistancesValuePassing()
436 /* Fetch results. */ in ClipDistancesValuePassing()
445 /* Check results. */ in ClipDistancesValuePassing()
446 glw::GLfloat results = pixels.front(); in ClipDistancesValuePassing() local
448 if (fabs(results - 1.f) > 0.0125) in ClipDistancesValuePassing()
460 …shader source code to test gl_MaxClipDistances limit value in vertex shader (API Coverage Test). */
472 …shader source code to test gl_MaxClipDistances limit value in vertex shader (API Coverage Test). */
483 …ader source code to test gl_MaxClipDistances limit value in fragment shader (API Coverage Test). */
492 …ader source code to test gl_MaxClipDistances limit value in fragment shader (API Coverage Test). */
503 …lipDistance[] are passed properly to the fragment shader from vertex shader (API Coverage Test). */
519 …lipDistance[] are passed properly to the fragment shader from vertex shader (API Coverage Test). */
531 " if(abs(gl_ClipDistance[i] - float(i + 1) / float(gl_MaxClipDistances)) > 0.0125)\n"
598 m_clip_function_count - in iterate()
638 gl.enable(GL_CLIP_DISTANCE0 + i_clip_count - 1); in iterate()
646 if (!vertex_buffer_object->useAsShaderInput(program, "position", 4)) in iterate()
662 /* Check results */ in iterate()
663 std::vector<glw::GLfloat> results = framebuffer.readPixels(); in iterate() local
665 if (!checkResults(primitive_type, i_clip_function, results)) in iterate()
705 * @param [in] clip_count Set all first # of gl_ClipDistance-s.
798 data.push_back(-1.0); in prepareGeometry()
799 data.push_back(-1.0); in prepareGeometry()
804 data.push_back(-1.0); in prepareGeometry()
805 data.push_back(-1.0); in prepareGeometry()
813 data.push_back(-1.0); in prepareGeometry()
824 /** @brief Check results fetched from framebuffer of functional test.
828 * @param [in] results Array with framebuffer content.
833 std::vector<glw::GLfloat>& results) in checkResults() argument
836 if (results.size() == 0) in checkResults()
845 glw::GLuint(sqrt(glw::GLfloat(results.size()))) + 1 /* line integral */ : in checkResults()
848 glw::GLuint(sqrt(glw::GLfloat(results.size()))) /* line integral */ : in checkResults()
849 results.size() /* surface integral */); in checkResults()
851 for (glw::GLuint i_pixels = 0; i_pixels < results.size(); i_pixels += increment) in checkResults()
853 integral += results[i_pixels]; in checkResults()
858 /* Check with results' lookup table */ in checkResults()
861 …if (fabs(m_expected_integral[i_primitive_type * m_clip_function_count + clip_function] - integral)… in checkResults()
916 " return - 0.25 - 0.75 * (float(i) + 1.0) * (float(gl_VertexID) + 1.0) / (float(CLIP_COUNT) * "
928 1.0, -1.0 - for VERTEX_COUNT == 2 aka GL_LINES
929 1.0, 0.0, -1.0 - for VERTEX_COUNT == 3 aka GL_TRIANGLES
931 1.0, 0.0, -1.0, 0.0 - for VERTEX_COUNT == 4 aka GL_QUADS */
965 /* @brief Expected results of testing integral for functional test. */
1022 /** @brief Clip Distance / Clip Vertex negative test sub-case.
1057 /** @brief Explicit redeclaration negative test sub-case.
1084 /** @brief Implicit redeclaration negative test sub-case.
1367 const glw::GLchar* varying = i->c_str(); in linkShaders()