Ignore performance messages in KHR_debug tests
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 2 May 2017 11:42:05 +0000 (13:42 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 12 May 2017 15:47:16 +0000 (11:47 -0400)
The KHR-GL45.khr_debug.receiveing_messages checks that only expected
messages are recorded so it should ignore spurious performance
messages that can be injected by drivers and mess up the expected
message counts.

Components: OpenGL
VK-GL-CTS issue: 394

Affects:
KHR-GL45.khr_debug.receiveing_messages

Change-Id: Iee24cb5d6de3d2c6311dc96da312540512dc2173

external/openglcts/modules/gl/gl4cKHRDebugTests.cpp

index 0453fe9..f1108a8 100644 (file)
@@ -1314,6 +1314,12 @@ tcu::TestNode::IterateResult ReceiveingMessagesTest::iterate()
        }
 
        /*
+        * Ignore spurious performance messages
+        */
+       m_gl->debugMessageControl(GL_DONT_CARE /* source */, GL_DEBUG_TYPE_PERFORMANCE /* type */,
+                                                         GL_DONT_CARE /* severity */, 0 /* counts */, 0 /* ids */, GL_FALSE /* enabled */);
+
+       /*
         * - insert a message with DebugMessageInsert;
         * - inspect message log to check if the message is reported;
         * - inspect message log again, there should be no messages;