Lines Matching defs:state
227 StateQueryUtil::StateQueryMemoryWriteGuard<glw::GLfloat[8]> state;
237 gl.glGetFloatv(GL_PRIMITIVE_BOUNDING_BOX_EXT, state);
240 if (!state.verifyValidity(m_testCtx))
245 << "Got " << tcu::formatArray(&state[0], &state[8])
248 if ((state[0] != -1.0f) || (state[1] != -1.0f) || (state[2] != -1.0f) || (state[3] != 1.0f) ||
249 (state[4] != 1.0f) || (state[5] != 1.0f) || (state[6] != 1.0f) || (state[7] != 1.0f))
363 StateQueryUtil::StateQueryMemoryWriteGuard<glw::GLfloat[8]> state;
366 gl.glGetFloatv(GL_PRIMITIVE_BOUNDING_BOX_EXT, state);
369 if (!state.verifyValidity(m_testCtx))
374 << "glGetFloatv returned " << tcu::formatArray(&state[0], &state[8])
378 if (state[ndx] != bbox.getComponentAccess(ndx))
397 StateQueryUtil::StateQueryMemoryWriteGuard<glw::GLint[8]> state;
400 gl.glGetIntegerv(GL_PRIMITIVE_BOUNDING_BOX_EXT, state);
403 if (!state.verifyValidity(m_testCtx))
408 << "glGetIntegerv returned " << tcu::formatArray(&state[0], &state[8])
412 if (state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint>(bbox.getComponentAccess(ndx)) &&
413 state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint>(bbox.getComponentAccess(ndx)))
446 StateQueryUtil::StateQueryMemoryWriteGuard<glw::GLint64[8]> state;
449 gl.glGetInteger64v(GL_PRIMITIVE_BOUNDING_BOX_EXT, state);
452 if (!state.verifyValidity(m_testCtx))
457 << "glGetInteger64v returned " << tcu::formatArray(&state[0], &state[8])
461 if (state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint64>(bbox.getComponentAccess(ndx)) &&
462 state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint64>(bbox.getComponentAccess(ndx)))
495 StateQueryUtil::StateQueryMemoryWriteGuard<glw::GLboolean[8]> state;
498 gl.glGetBooleanv(GL_PRIMITIVE_BOUNDING_BOX_EXT, state);
501 if (!state.verifyValidity(m_testCtx))
507 << glu::getBooleanStr(state[0]) << ", " << glu::getBooleanStr(state[1]) << ", " << glu::getBooleanStr(state[2]) << ", " << glu::getBooleanStr(state[3]) << ", "
508 << glu::getBooleanStr(state[4]) << ", " << glu::getBooleanStr(state[5]) << ", " << glu::getBooleanStr(state[6]) << ", " << glu::getBooleanStr(state[7]) << "]\n"
512 if (state[ndx] != ((bbox.getComponentAccess(ndx) != 0.0f) ? (GL_TRUE) : (GL_FALSE)))
558 FLAG_SET_BBOX_STATE = 1u << 7, //!< set primitive bounding box using global state
686 DE_ASSERT(m_useGlobalState || m_hasTessellationStage); // using non-global state requires tessellation
690 DE_ASSERT(!m_useGlobalState); // per-primitive test requires per-primitive (non-global) state
733 << ((m_useGlobalState) ? ("PRIMITIVE_BOUNDING_BOX_EXT state") : ("gl_BoundingBoxEXT output"))
946 // state is overriden by the tessellation output, set bbox to invisible area to imitiate dirty state left by application
3789 DepthDrawCase (Context& context, const char* name, const char* description, DepthType depthType, BBoxState state, BBoxSize bboxSize);
3830 DepthDrawCase::DepthDrawCase (Context& context, const char* name, const char* description, DepthType depthType, BBoxState state, BBoxSize bboxSize)
3835 , m_state (state)
3840 DE_ASSERT(state < STATE_LAST);
3876 << ((m_state == STATE_GLOBAL) ? ("PRIMITIVE_BOUNDING_BOX_EXT state") : ("gl_BoundingBoxEXT output"))
4341 << ((m_useGlobalState) ? ("PRIMITIVE_BOUNDING_BOX_EXT state") : ("gl_BoundingBoxEXT output"))
4808 << "Testing call order of state setting functions have no effect on the rendering.\n"
4846 // set state
5080 "Set bounding box using PRIMITIVE_BOUNDING_BOX_EXT state",
5333 "Test tight bounding box with global bbox state",
5339 "Test padded bounding box with global bbox state",