Commit f6ade2ec by Geoff Lang

Implement GL_EXT_debug_marker for RendererGL.

Passes dEQP-GLES2.functional.debug_marker.* Change-Id: I37f2b6724f32867d2e428613b1b6d9c8377c6d60 Reviewed-on: https://chromium-review.googlesource.com/302990Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 9bf70365
...@@ -303,19 +303,20 @@ SamplerImpl *RendererGL::createSampler() ...@@ -303,19 +303,20 @@ SamplerImpl *RendererGL::createSampler()
return new SamplerGL(mFunctions, mStateManager); return new SamplerGL(mFunctions, mStateManager);
} }
void RendererGL::insertEventMarker(GLsizei, const char *) void RendererGL::insertEventMarker(GLsizei length, const char *marker)
{ {
UNREACHABLE(); mFunctions->debugMessageInsert(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_MARKER, 0,
GL_DEBUG_SEVERITY_NOTIFICATION, length, marker);
} }
void RendererGL::pushGroupMarker(GLsizei, const char *) void RendererGL::pushGroupMarker(GLsizei length, const char *marker)
{ {
UNREACHABLE(); mFunctions->pushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, length, marker);
} }
void RendererGL::popGroupMarker() void RendererGL::popGroupMarker()
{ {
UNREACHABLE(); mFunctions->popDebugGroup();
} }
void RendererGL::notifyDeviceLost() void RendererGL::notifyDeviceLost()
......
...@@ -544,6 +544,9 @@ void GenerateCaps(const FunctionsGL *functions, gl::Caps *caps, gl::TextureCapsM ...@@ -544,6 +544,9 @@ void GenerateCaps(const FunctionsGL *functions, gl::Caps *caps, gl::TextureCapsM
extensions->packSubimage = functions->standard == STANDARD_GL_DESKTOP || extensions->packSubimage = functions->standard == STANDARD_GL_DESKTOP ||
functions->isAtLeastGLES(gl::Version(3, 0)) || functions->isAtLeastGLES(gl::Version(3, 0)) ||
functions->hasGLESExtension("GL_NV_pack_subimage"); functions->hasGLESExtension("GL_NV_pack_subimage");
extensions->debugMarker =
functions->isAtLeastGL(gl::Version(4, 3)) || functions->hasGLExtension("GL_KHR_debug") ||
functions->isAtLeastGLES(gl::Version(3, 2)) || functions->hasGLESExtension("GL_KHR_debug");
} }
void GenerateWorkarounds(const FunctionsGL *functions, WorkaroundsGL *workarounds) void GenerateWorkarounds(const FunctionsGL *functions, WorkaroundsGL *workarounds)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment