Lines Matching defs:error

51 /** Verifies last query error and generate proper log message
56 * @param error Generated error code
57 * @param expectedError Expected error code
62 GLint error, GLint expectedError)
64 if (error != expectedError)
66 log << "QueryError [" << funcName << " return wrong error code"
68 << ", returned: " << error << "] - ";
76 /** Verifies last operation error and generate proper log message
80 * @param error Generated error code
81 * @param expectedError Expected error code
85 bool SparseTextureUtils::verifyError(std::stringstream& log, const char* funcName, GLint error, GLint expectedError)
87 if (error != expectedError)
89 log << "Error [" << funcName << " return wrong error code "
90 << ", expectedError: " << expectedError << ", returnedError: " << error << "] - ";
134 GLU_EXPECT_NO_ERROR(gl.getError(), "getInternalformativ error occurred for GL_VIRTUAL_PAGE_SIZE_X_ARB");
137 GLU_EXPECT_NO_ERROR(gl.getError(), "getInternalformativ error occurred for GL_VIRTUAL_PAGE_SIZE_Y_ARB");
140 GLU_EXPECT_NO_ERROR(gl.getError(), "getInternalformativ error occurred for GL_VIRTUAL_PAGE_SIZE_Z_ARB");
425 * @param expectedError Expected error code (default value GL_NO_ERROR)
452 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred.");
455 //If no error verification reset TEXTURE_SPARSE_ARB value
457 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred.");
469 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameterf error occurred.");
473 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred.");
486 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteriv error occurred.");
490 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred.");
503 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameterfv error occurred.");
507 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred.");
520 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameterIiv error occurred.");
524 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred.");
537 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameterIuiv error occurred.");
541 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred.");
555 * @param expectedError Expected error code (default value GL_NO_ERROR)
582 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred");
585 //If no error verification reset TEXTURE_SPARSE_ARB value
587 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred");
599 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameterf error occurred");
603 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred");
616 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteriv error occurred");
620 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred");
633 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameterfv error occurred");
637 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred");
650 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameterIiv error occurred");
654 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred");
667 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameterIuiv error occurred");
671 GLU_EXPECT_NO_ERROR(gl.getError(), "glTexParameteri error occurred");
685 * @param expectedError Expected error code (default value GL_NO_ERROR)
687 * @return Returns true if no error code was generated, throws exception otherwise
746 GLU_EXPECT_NO_ERROR(gl.getError(), "glGetTexParameteriv error occurred");
757 GLU_EXPECT_NO_ERROR(gl.getError(), "glGetTexParameterfv error occurred");
768 GLU_EXPECT_NO_ERROR(gl.getError(), "glGetGexParameterIiv error occurred");
779 GLU_EXPECT_NO_ERROR(gl.getError(), "glGetGexParameterIui error occurred");
885 GLU_EXPECT_NO_ERROR(gl.getError(), "getInternalformativ error occurred for GL_NUM_VIRTUAL_PAGE_SIZES_ARB");
1232 // Test error only if texture is immutable format, otherwise skip
1295 /** Verifies if texStorage* generate proper error for given target and internal format when
1720 //Checking if written data into not committed region generates no error
1803 * @return Returns true if no error occurred, otherwise throws an exception.
1839 * @return Returns true if no error occurred, otherwise throws an exception.
1849 GLU_EXPECT_NO_ERROR(gl.getError(), "texParameteri error occurred for GL_TEXTURE_SPARSE_ARB");
1868 * @return Returns true if no error occurred, otherwise throws an exception.
1896 * @return Returns true if no error occurred, otherwise throws an exception.
1942 * @return Returns true if data is as expected, false if not, throws an exception if error occurred.
2061 * @return Returns true if commitment is done properly, false if commitment is not allowed or throws exception if error occurred.
2148 /** Verifies if gltexPageCommitment generates INVALID_OPERATION error in expected use cases
2155 * @return Returns true if no error occurred, otherwise throws an exception.
2169 GLU_EXPECT_NO_ERROR(gl.getError(), "texParameteri error occurred for GL_TEXTURE_SPARSE_ARB");
2174 GLU_EXPECT_NO_ERROR(gl.getError(), "getTexParameteriv error occurred for GL_TEXTURE_IMMUTABLE_FORMAT");
2269 /** Verifies if texPageCommitment generates INVALID_VALUE error in expected use cases
2276 * @return Returns true if no error occurred, otherwise throws an exception.