Lines Matching refs:testCtx

59 static void logComment (tcu::TestContext& testCtx, const char* comment)  in logComment()  argument
61 testCtx.getLog() << TestLog::Message << "// " << comment << TestLog::EndMessage; in logComment()
64 static void checkError (tcu::TestContext& testCtx, sglr::Context& ctx, GLenum expect) in checkError() argument
67testCtx.getLog() << TestLog::Message << "// " << (result == expect ? "Pass" : "Fail") << ", expect… in checkError()
70 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Error code mismatch"); in checkError()
73 static void checkEitherError (tcu::TestContext& testCtx, sglr::Context& ctx, GLenum expectA, GLenum… in checkEitherError() argument
78testCtx.getLog() << TestLog::Message << "// " << (isOk ? "Pass" : "Fail") << ", expected " << glu:… in checkEitherError()
81 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Error code mismatch"); in checkEitherError()
129 static void checkFboAttachmentParam (tcu::TestContext& testCtx, sglr::Context& ctx, GLenum attachme… in checkFboAttachmentParam() argument
131 TestLog& log = testCtx.getLog(); in checkFboAttachmentParam()
144 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Invalid result for attachment param query"); in checkFboAttachmentParam()
148 static void notSupportedTest (tcu::TestContext& testCtx, sglr::Context& context) in notSupportedTest() argument
150 DE_UNREF(testCtx); in notSupportedTest()
155 static void textureLevelsTest (tcu::TestContext& testCtx, sglr::Context& context) in textureLevelsTest() argument
171 checkError(testCtx, context, levels[ndx] == 0 ? GL_NO_ERROR : GL_INVALID_VALUE); in textureLevelsTest()
175 static void textureLevelsWithRenderToMipmapTest (tcu::TestContext& testCtx, sglr::Context& context) in textureLevelsWithRenderToMipmapTest() argument
191 checkError(testCtx, context, de::inBounds(levels[ndx], 0, 16) ? GL_NO_ERROR : GL_INVALID_VALUE); in textureLevelsWithRenderToMipmapTest()
195 static void validTex2DAttachmentsTest (tcu::TestContext& testCtx, sglr::Context& context) in validTex2DAttachmentsTest() argument
211 checkError(testCtx, context, GL_NO_ERROR); in validTex2DAttachmentsTest()
215 static void validTexCubeAttachmentsTest (tcu::TestContext& testCtx, sglr::Context& context) in validTexCubeAttachmentsTest() argument
243 checkError(testCtx, context, GL_NO_ERROR); in validTexCubeAttachmentsTest()
248 static void validRboAttachmentsTest (tcu::TestContext& testCtx, sglr::Context& context) in validRboAttachmentsTest() argument
265 checkError(testCtx, context, GL_NO_ERROR); in validRboAttachmentsTest()
269 static void attachToDefaultFramebufferTest (tcu::TestContext& testCtx, sglr::Context& context) in attachToDefaultFramebufferTest() argument
271 logComment(testCtx, "Attaching 2D texture to default framebuffer"); in attachToDefaultFramebufferTest()
276 checkError(testCtx, context, GL_INVALID_OPERATION); in attachToDefaultFramebufferTest()
278 logComment(testCtx, "Attaching renderbuffer to default framebuffer"); in attachToDefaultFramebufferTest()
283 checkError(testCtx, context, GL_INVALID_OPERATION); in attachToDefaultFramebufferTest()
286 static void invalidTex2DAttachmentTest (tcu::TestContext& testCtx, sglr::Context& context) in invalidTex2DAttachmentTest() argument
290 logComment(testCtx, "Attaching 2D texture using GL_TEXTURE_CUBE_MAP_NEGATIVE_X texture target"); in invalidTex2DAttachmentTest()
295 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidTex2DAttachmentTest()
297 logComment(testCtx, "Attaching deleted 2D texture object"); in invalidTex2DAttachmentTest()
300 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidTex2DAttachmentTest()
303 static void invalidTexCubeAttachmentTest (tcu::TestContext& testCtx, sglr::Context& context) in invalidTexCubeAttachmentTest() argument
307 logComment(testCtx, "Attaching cube texture using GL_TEXTURE_2D texture target"); in invalidTexCubeAttachmentTest()
311 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidTexCubeAttachmentTest()
313 logComment(testCtx, "Attaching deleted cube texture object"); in invalidTexCubeAttachmentTest()
316 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidTexCubeAttachmentTest()
319 static void invalidRboAttachmentTest (tcu::TestContext& testCtx, sglr::Context& context) in invalidRboAttachmentTest() argument
323 logComment(testCtx, "Attaching renderbuffer using GL_FRAMEBUFFER renderbuffer target"); in invalidRboAttachmentTest()
327 checkError(testCtx, context, GL_INVALID_ENUM); in invalidRboAttachmentTest()
329 logComment(testCtx, "Attaching deleted renderbuffer object"); in invalidRboAttachmentTest()
332 checkError(testCtx, context, GL_INVALID_OPERATION); in invalidRboAttachmentTest()
335 static void attachNamesTest (tcu::TestContext& testCtx, sglr::Context& context) in attachNamesTest() argument
343 logComment(testCtx, "Attaching allocated texture name to 2D target"); in attachNamesTest()
345 checkError(testCtx, context, GL_INVALID_OPERATION); in attachNamesTest()
347 logComment(testCtx, "Attaching allocated texture name to cube target"); in attachNamesTest()
349 checkError(testCtx, context, GL_INVALID_OPERATION); in attachNamesTest()
354 logComment(testCtx, "Attaching allocated renderbuffer name"); in attachNamesTest()
356 checkError(testCtx, context, GL_INVALID_OPERATION); in attachNamesTest()
359 static void attachmentQueryDefaultFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryDefaultFboTest() argument
364 checkEitherError(testCtx, ctx, GL_INVALID_ENUM, GL_INVALID_OPERATION); in attachmentQueryDefaultFboTest()
366 checkEitherError(testCtx, ctx, GL_INVALID_ENUM, GL_INVALID_OPERATION); in attachmentQueryDefaultFboTest()
368 checkEitherError(testCtx, ctx, GL_INVALID_ENUM, GL_INVALID_OPERATION); in attachmentQueryDefaultFboTest()
370 checkEitherError(testCtx, ctx, GL_INVALID_ENUM, GL_INVALID_OPERATION); in attachmentQueryDefaultFboTest()
373 static void attachmentQueryEmptyFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryEmptyFboTest() argument
385 …checkFboAttachmentParam(testCtx, ctx, attachmentPoints[ndx], GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in attachmentQueryEmptyFboTest()
390 checkError(testCtx, ctx, GL_INVALID_ENUM); in attachmentQueryEmptyFboTest()
392 checkError(testCtx, ctx, GL_INVALID_ENUM); in attachmentQueryEmptyFboTest()
394 checkError(testCtx, ctx, GL_INVALID_ENUM); in attachmentQueryEmptyFboTest()
397 static void es3AttachmentQueryEmptyFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in es3AttachmentQueryEmptyFboTest() argument
412 …checkFboAttachmentParam(testCtx, ctx, attachmentPoints[ndx], GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in es3AttachmentQueryEmptyFboTest()
414 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in es3AttachmentQueryEmptyFboTest()
419 checkError(testCtx, ctx, GL_INVALID_OPERATION); in es3AttachmentQueryEmptyFboTest()
421 checkError(testCtx, ctx, GL_INVALID_OPERATION); in es3AttachmentQueryEmptyFboTest()
424 static void attachmentQueryTex2DTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryTex2DTest() argument
431 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in attachmentQueryTex2DTest()
432 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in attachmentQueryTex2DTest()
433 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVE… in attachmentQueryTex2DTest()
434 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE… in attachmentQueryTex2DTest()
437 static void attachmentQueryTexCubeTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryTexCubeTest() argument
444 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in attachmentQueryTexCubeTest()
445 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, … in attachmentQueryTexCubeTest()
446 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL… in attachmentQueryTexCubeTest()
447 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_… in attachmentQueryTexCubeTest()
450 static void attachmentQueryRboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in attachmentQueryRboTest() argument
457 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in attachmentQueryRboTest()
458 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME… in attachmentQueryRboTest()
462 checkError(testCtx, ctx, GL_INVALID_ENUM); in attachmentQueryRboTest()
464 checkError(testCtx, ctx, GL_INVALID_ENUM); in attachmentQueryRboTest()
467 static void deleteTex2DAttachedToBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteTex2DAttachedToBoundFboTest() argument
475 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in deleteTex2DAttachedToBoundFboTest()
476 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in deleteTex2DAttachedToBoundFboTest()
480 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in deleteTex2DAttachedToBoundFboTest()
483 static void deleteTexCubeAttachedToBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteTexCubeAttachedToBoundFboTest() argument
491 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in deleteTexCubeAttachedToBoundFboTest()
492 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, … in deleteTexCubeAttachedToBoundFboTest()
496 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in deleteTexCubeAttachedToBoundFboTest()
499 static void deleteRboAttachedToBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteRboAttachedToBoundFboTest() argument
507 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in deleteRboAttachedToBoundFboTest()
508 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME… in deleteRboAttachedToBoundFboTest()
512 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in deleteRboAttachedToBoundFboTest()
515 static void deleteTex2DAttachedToNotBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteTex2DAttachedToNotBoundFboTest() argument
523 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in deleteTex2DAttachedToNotBoundFboTest()
524 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in deleteTex2DAttachedToNotBoundFboTest()
532 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,… in deleteTex2DAttachedToNotBoundFboTest()
533 …checkFboAttachmentParam(testCtx, ctx, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,… in deleteTex2DAttachedToNotBoundFboTest()
536 static void deleteTexCubeAttachedToNotBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteTexCubeAttachedToNotBoundFboTest() argument
544 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in deleteTexCubeAttachedToNotBoundFboTest()
545 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, … in deleteTexCubeAttachedToNotBoundFboTest()
553 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, … in deleteTexCubeAttachedToNotBoundFboTest()
554 …checkFboAttachmentParam(testCtx, ctx, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, … in deleteTexCubeAttachedToNotBoundFboTest()
557 static void deleteRboAttachedToNotBoundFboTest (tcu::TestContext& testCtx, sglr::Context& ctx) in deleteRboAttachedToNotBoundFboTest() argument
565 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in deleteRboAttachedToNotBoundFboTest()
566 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME… in deleteRboAttachedToNotBoundFboTest()
574 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE… in deleteRboAttachedToNotBoundFboTest()
575 …checkFboAttachmentParam(testCtx, ctx, GL_STENCIL_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME… in deleteRboAttachedToNotBoundFboTest()
581 typedef void (*TestFunc) (tcu::TestContext& testCtx, sglr::Context& context);