[Piglit] [PATCH 0/4] KHR_debug

Timothy Arceri t_arceri at yahoo.com.au
Thu Aug 29 21:22:38 PDT 2013


The following are tests for the KHR_debug extension

I was going to wait until my first patch was accepted before
sending the others but I have now run out of time to work on them.
I'm happy to fix bugs/make adjustments to get these accepted but
I no longer have time to extend the tests to cover more scenarios. 


Notes:

Patch 1: Is just V7 of my previous patch with the build stuff removed

Patch 3: Is almost an exact copy of the ARB_debug_output api-error.c
test.

The tests in patches 2 and 3 assume that calling glEnable(GL_DEBUG_OUTPUT);
will enable the messageLog and callback functions in the implementation.
This is how it works in the patchset I submitted to the Mesa mailing list,
but is not so with AMD's Catalyst implementation. The spec just say its
up to the implementation what setting GL_DEBUG_OUTPUT allows.

I tried to update the tests to create a context with the 
GLX_CONTEXT_DEBUG_BIT_ARB flag set so that they would work on all 
implementations but I couldn't workout how to easily do this within 
the piglit-framework with the little time I have available I thought
it would be best to submit what I had.


Timothy Arceri (4):
  KHR_debug: test ObjectLabel(), GetObjectLabel(),     
    ObjectPtrLabel() and GetObjectPtrLabel()
  KHR_debug: test PushDebugGroup() and PopDebugGroup()
  KHR_debug: test glDebugMessageCallback() is setup and used correctly
  KHR_debug: add tests list and update build scripts

 tests/all.tests                             |    7 +
 tests/spec/CMakeLists.txt                   |    1 +
 tests/spec/khr_debug/CMakeLists.gl.txt      |   16 +
 tests/spec/khr_debug/CMakeLists.txt         |    1 +
 tests/spec/khr_debug/debug-api-error.c      |  165 ++++++++++
 tests/spec/khr_debug/debug-object-label.c   |  449 +++++++++++++++++++++++++++
 tests/spec/khr_debug/debug-push-pop-group.c |  281 +++++++++++++++++
 7 files changed, 920 insertions(+)
 create mode 100644 tests/spec/khr_debug/CMakeLists.gl.txt
 create mode 100644 tests/spec/khr_debug/CMakeLists.txt
 create mode 100644 tests/spec/khr_debug/debug-api-error.c
 create mode 100644 tests/spec/khr_debug/debug-object-label.c
 create mode 100644 tests/spec/khr_debug/debug-push-pop-group.c

-- 
1.7.9.5



More information about the Piglit mailing list