Lines Matching refs:testCtx
54 static void logComment (tcu::TestContext& testCtx, const char* comment) in logComment() argument
56 testCtx.getLog() << TestLog::Message << "// " << comment << TestLog::EndMessage; in logComment()
59 static void checkError (tcu::TestContext& testCtx, sglr::Context& ctx, GLenum expect) in checkError() argument
62 …testCtx.getLog() << TestLog::Message << "// " << (result == expect ? "Pass" : "Fail") << ", expect… in checkError()
65 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Error code mismatch"); in checkError()
68 static void checkEitherError (tcu::TestContext& testCtx, sglr::Context& ctx, GLenum expectA, GLenum… in checkEitherError() argument
73 …testCtx.getLog() << TestLog::Message << "// " << (isOk ? "Pass" : "Fail") << ", expected " << glu:… in checkEitherError()
76 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Error code mismatch"); in checkEitherError()
124 static void checkFboAttachmentParam (tcu::TestContext& testCtx, sglr::Context& ctx, GLenum attachme… in checkFboAttachmentParam() argument
126 TestLog& log = testCtx.getLog(); in checkFboAttachmentParam()
139 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid result for attachment param query"); in checkFboAttachmentParam()
143 static void textureLevelsTest (tcu::TestContext& testCtx, sglr::Context& context) in textureLevelsTest() argument
153 …testCtx.getLog() << TestLog::Message << "// GL_MAX_TEXTURE_SIZE is " << maxTexSize << ", floor(log… in textureLevelsTest()
166 …checkError(testCtx, context, levels[ndx] >= 0 && levels[ndx] <= log2MaxTexSize ? GL_NO_ERROR : GL_… in textureLevelsTest()
170 static void validTex2DAttachmentsTest (tcu::TestContext& testCtx, sglr::Context& context) in validTex2DAttachmentsTest() argument
186 checkError(testCtx, context, GL_NO_ERROR); in validTex2DAttachmentsTest()
190 static void validTexCubeAttachmentsTest (tcu::TestContext& testCtx, sglr::Context& context) in validTexCubeAttachmentsTest() argument
218 checkError(testCtx, context, GL_NO_ERROR); in validTexCubeAttachmentsTest()
223 static void validRboAttachmentsTest (tcu::TestContext& testCtx, sglr::Context& context) in validRboAttachmentsTest() argument
240 checkError(testCtx, context, GL_NO_ERROR); in validRboAttachmentsTest()
244 static void attachToDefaultFramebufferTest (tcu::TestContext& testCtx, sglr::Context& context) in attachToDefaultFramebufferTest() argument
246 logComment(testCtx, "Attaching 2D texture to default framebuffer"); in attachToDefaultFramebufferTest()
251 checkError(testCtx, context, GL_INVALID_OPERATION); in attachToDefaultFramebufferTest()
253 logComment(testCtx, "Attaching renderbuffer to default framebuffer"); in attachToDefaultFramebufferTest()
258 checkError(testCtx, context, GL_INVALID_OPERATION); in attachToDefaultFramebufferTest()
261 static void invalidTex2DAttachmentTest (tcu::TestContext& testCtx, sglr::Context& context) in invalidTex2DAttachmentTest() argument
265 logComment(testCtx, "Attaching 2D texture using GL_TEXTURE_CUBE_MAP_NEGATIVE_X texture target"); in invalidTex2DAttachmentTest()
270 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidTex2DAttachmentTest()
272 logComment(testCtx, "Attaching deleted 2D texture object"); in invalidTex2DAttachmentTest()
275 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidTex2DAttachmentTest()
278 static void invalidTexCubeAttachmentTest (tcu::TestContext& testCtx, sglr::Context& context) in invalidTexCubeAttachmentTest() argument
282 logComment(testCtx, "Attaching cube texture using GL_TEXTURE_2D texture target"); in invalidTexCubeAttachmentTest()
286 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidTexCubeAttachmentTest()
288 logComment(testCtx, "Attaching deleted cube texture object"); in invalidTexCubeAttachmentTest()
291 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidTexCubeAttachmentTest()
294 static void invalidRboAttachmentTest (tcu::TestContext& testCtx, sglr::Context& context) in invalidRboAttachmentTest() argument
298 logComment(testCtx, "Attaching renderbuffer using GL_FRAMEBUFFER renderbuffer target"); in invalidRboAttachmentTest()
302 checkError(testCtx, context, GL_INVALID_ENUM); in invalidRboAttachmentTest()
304 logComment(testCtx, "Attaching deleted renderbuffer object"); in invalidRboAttachmentTest()
307 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidRboAttachmentTest()
310 static void attachNamesTest (tcu::TestContext& testCtx, sglr::Context& context) in attachNamesTest() argument
318 logComment(testCtx, "Attaching allocated texture name to 2D target"); in attachNamesTest()
320 checkError(testCtx, context, GL_INVALID_OPERATION); in attachNamesTest()
322 logComment(testCtx, "Attaching allocated texture name to cube target"); in attachNamesTest()
324 checkError(testCtx, context, GL_INVALID_OPERATION); in attachNamesTest()
329 logComment(testCtx, "Attaching allocated renderbuffer name"); in attachNamesTest()
331 checkError(testCtx, context, GL_INVALID_OPERATION); in attachNamesTest()
334 static void attachmentQueryDefaultFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryDefaultFboTest() argument
339 checkEitherError(testCtx, ctx, GL_INVALID_ENUM, GL_INVALID_OPERATION); in attachmentQueryDefaultFboTest()
341 checkEitherError(testCtx, ctx, GL_INVALID_ENUM, GL_INVALID_OPERATION); in attachmentQueryDefaultFboTest()
343 checkEitherError(testCtx, ctx, GL_INVALID_ENUM, GL_INVALID_OPERATION); in attachmentQueryDefaultFboTest()
345 checkEitherError(testCtx, ctx, GL_INVALID_ENUM, GL_INVALID_OPERATION); in attachmentQueryDefaultFboTest()
348 static void attachmentQueryEmptyFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryEmptyFboTest() argument
360 …checkFboAttachmentParam(testCtx, ctx, attachmentPoints[ndx], GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in attachmentQueryEmptyFboTest()
362 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in attachmentQueryEmptyFboTest()
367 checkError(testCtx, ctx, GL_INVALID_OPERATION); in attachmentQueryEmptyFboTest()
369 checkError(testCtx, ctx, GL_INVALID_OPERATION); in attachmentQueryEmptyFboTest()
372 static void attachmentQueryTex2DTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryTex2DTest() argument
379 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in attachmentQueryTex2DTest()
380 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in attachmentQueryTex2DTest()
381 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVE… in attachmentQueryTex2DTest()
382 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE… in attachmentQueryTex2DTest()
385 static void attachmentQueryTexCubeTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryTexCubeTest() argument
392 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in attachmentQueryTexCubeTest()
393 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, … in attachmentQueryTexCubeTest()
394 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL… in attachmentQueryTexCubeTest()
395 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_… in attachmentQueryTexCubeTest()
398 static void attachmentQueryRboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryRboTest() argument
405 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in attachmentQueryRboTest()
406 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME… in attachmentQueryRboTest()
410 checkError(testCtx, ctx, GL_INVALID_ENUM); in attachmentQueryRboTest()
412 checkError(testCtx, ctx, GL_INVALID_ENUM); in attachmentQueryRboTest()
415 static void deleteTex2DAttachedToBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteTex2DAttachedToBoundFboTest() argument
423 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in deleteTex2DAttachedToBoundFboTest()
424 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in deleteTex2DAttachedToBoundFboTest()
428 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in deleteTex2DAttachedToBoundFboTest()
431 static void deleteTexCubeAttachedToBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteTexCubeAttachedToBoundFboTest() argument
439 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in deleteTexCubeAttachedToBoundFboTest()
440 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, … in deleteTexCubeAttachedToBoundFboTest()
444 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in deleteTexCubeAttachedToBoundFboTest()
447 static void deleteRboAttachedToBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteRboAttachedToBoundFboTest() argument
455 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in deleteRboAttachedToBoundFboTest()
456 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME… in deleteRboAttachedToBoundFboTest()
460 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in deleteRboAttachedToBoundFboTest()
463 static void deleteTex2DAttachedToNotBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteTex2DAttachedToNotBoundFboTest() argument
471 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in deleteTex2DAttachedToNotBoundFboTest()
472 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in deleteTex2DAttachedToNotBoundFboTest()
480 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in deleteTex2DAttachedToNotBoundFboTest()
481 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in deleteTex2DAttachedToNotBoundFboTest()
484 static void deleteTexCubeAttachedToNotBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteTexCubeAttachedToNotBoundFboTest() argument
492 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in deleteTexCubeAttachedToNotBoundFboTest()
493 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, … in deleteTexCubeAttachedToNotBoundFboTest()
501 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in deleteTexCubeAttachedToNotBoundFboTest()
502 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, … in deleteTexCubeAttachedToNotBoundFboTest()
505 static void deleteRboAttachedToNotBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteRboAttachedToNotBoundFboTest() argument
513 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in deleteRboAttachedToNotBoundFboTest()
514 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME… in deleteRboAttachedToNotBoundFboTest()
522 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in deleteRboAttachedToNotBoundFboTest()
523 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME… in deleteRboAttachedToNotBoundFboTest()
529 typedef void (*TestFunc) (tcu::TestContext& testCtx, sglr::Context& context);