Commit b02fc662 by Geoff Lang Committed by Commit Bot

Lock around all EGL and GL calls with a global mutex.

BUG=angleproject:2464 Change-Id: I0231cc84777272f9cf26298c6a137f1ad3fd51d6 Reviewed-on: https://chromium-review.googlesource.com/1183441Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 86792f44
...@@ -76,6 +76,10 @@ config("internal_config") { ...@@ -76,6 +76,10 @@ config("internal_config") {
} else { } else {
defines += [ "ANGLE_IS_32_BIT_CPU" ] defines += [ "ANGLE_IS_32_BIT_CPU" ]
} }
if (angle_force_thread_safety) {
defines += [ "ANGLE_FORCE_THREAD_SAFETY=1" ]
}
} }
config("extra_warnings") { config("extra_warnings") {
......
...@@ -64,6 +64,7 @@ declare_args() { ...@@ -64,6 +64,7 @@ declare_args() {
angle_enable_null = true angle_enable_null = true
angle_enable_essl = true angle_enable_essl = true
angle_enable_glsl = true angle_enable_glsl = true
angle_force_thread_safety = false
} }
declare_args() { declare_args() {
......
...@@ -181,6 +181,7 @@ template_entry_point_decl = """ANGLE_EXPORT {return_type}GL_APIENTRY {name}{expl ...@@ -181,6 +181,7 @@ template_entry_point_decl = """ANGLE_EXPORT {return_type}GL_APIENTRY {name}{expl
template_entry_point_def = """{return_type}GL_APIENTRY {name}{explicit_context_suffix}({explicit_context_param}{explicit_context_comma}{params}) template_entry_point_def = """{return_type}GL_APIENTRY {name}{explicit_context_suffix}({explicit_context_param}{explicit_context_comma}{params})
{{ {{
ANGLE_SCOPED_GLOBAL_LOCK();
{event_comment}EVENT("({format_params})"{comma_if_needed}{pass_params}); {event_comment}EVENT("({format_params})"{comma_if_needed}{pass_params});
Context *context = {context_getter}; Context *context = {context_getter};
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
"GL entry point:scripts/entry_point_packed_gl_enums.json": "GL entry point:scripts/entry_point_packed_gl_enums.json":
"df2c879ccb62109a31c24d4b1df45354", "df2c879ccb62109a31c24d4b1df45354",
"GL entry point:scripts/generate_entry_points.py": "GL entry point:scripts/generate_entry_points.py":
"bfe4041311e3ae882ed218e306d7b683", "5a110a1e99777cf8c904f30e54af15a1",
"GL entry point:scripts/gl.xml": "GL entry point:scripts/gl.xml":
"b470cb06b06cbbe7adb2c8129ec85708", "b470cb06b06cbbe7adb2c8129ec85708",
"GL format map:src/libANGLE/es3_format_type_combinations.json": "GL format map:src/libANGLE/es3_format_type_combinations.json":
......
...@@ -62,4 +62,9 @@ ...@@ -62,4 +62,9 @@
#endif // defined(ANGLE_PLATFORM_WINDOWS) #endif // defined(ANGLE_PLATFORM_WINDOWS)
#endif // !defined(ANGLE_STD_ASYNC_WORKERS) #endif // !defined(ANGLE_STD_ASYNC_WORKERS)
#endif // LIBANGLE_FEATURES_H_ // Force thread safety in all of ANGLE by locking a global mutex in every ANGLE entry point.
#if !defined(ANGLE_FORCE_THREAD_SAFETY)
#define ANGLE_FORCE_THREAD_SAFETY ANGLE_DISABLED
#endif // !defined(ANGLE_FORCE_THREAD_SAFETY)
#endif // LIBANGLE_FEATURES_H_
...@@ -55,6 +55,7 @@ void ClipConfigs(const std::vector<const Config *> &filteredConfigs, ...@@ -55,6 +55,7 @@ void ClipConfigs(const std::vector<const Config *> &filteredConfigs,
// EGL 1.0 // EGL 1.0
EGLint EGLAPIENTRY GetError(void) EGLint EGLAPIENTRY GetError(void)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -65,6 +66,7 @@ EGLint EGLAPIENTRY GetError(void) ...@@ -65,6 +66,7 @@ EGLint EGLAPIENTRY GetError(void)
EGLDisplay EGLAPIENTRY GetDisplay(EGLNativeDisplayType display_id) EGLDisplay EGLAPIENTRY GetDisplay(EGLNativeDisplayType display_id)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLNativeDisplayType display_id = 0x%0.8p)", display_id); EVENT("(EGLNativeDisplayType display_id = 0x%0.8p)", display_id);
return Display::GetDisplayFromNativeDisplay(display_id, AttributeMap()); return Display::GetDisplayFromNativeDisplay(display_id, AttributeMap());
...@@ -72,6 +74,7 @@ EGLDisplay EGLAPIENTRY GetDisplay(EGLNativeDisplayType display_id) ...@@ -72,6 +74,7 @@ EGLDisplay EGLAPIENTRY GetDisplay(EGLNativeDisplayType display_id)
EGLBoolean EGLAPIENTRY Initialize(EGLDisplay dpy, EGLint *major, EGLint *minor) EGLBoolean EGLAPIENTRY Initialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint *major = 0x%0.8p, EGLint *minor = 0x%0.8p)", dpy, EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint *major = 0x%0.8p, EGLint *minor = 0x%0.8p)", dpy,
major, minor); major, minor);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -94,6 +97,7 @@ EGLBoolean EGLAPIENTRY Initialize(EGLDisplay dpy, EGLint *major, EGLint *minor) ...@@ -94,6 +97,7 @@ EGLBoolean EGLAPIENTRY Initialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
EGLBoolean EGLAPIENTRY Terminate(EGLDisplay dpy) EGLBoolean EGLAPIENTRY Terminate(EGLDisplay dpy)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p)", dpy); EVENT("(EGLDisplay dpy = 0x%0.8p)", dpy);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -115,6 +119,7 @@ EGLBoolean EGLAPIENTRY Terminate(EGLDisplay dpy) ...@@ -115,6 +119,7 @@ EGLBoolean EGLAPIENTRY Terminate(EGLDisplay dpy)
const char *EGLAPIENTRY QueryString(EGLDisplay dpy, EGLint name) const char *EGLAPIENTRY QueryString(EGLDisplay dpy, EGLint name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint name = %d)", dpy, name); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint name = %d)", dpy, name);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -162,6 +167,7 @@ EGLBoolean EGLAPIENTRY GetConfigs(EGLDisplay dpy, ...@@ -162,6 +167,7 @@ EGLBoolean EGLAPIENTRY GetConfigs(EGLDisplay dpy,
EGLint config_size, EGLint config_size,
EGLint *num_config) EGLint *num_config)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig *configs = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLConfig *configs = 0x%0.8p, "
"EGLint config_size = %d, EGLint *num_config = 0x%0.8p)", "EGLint config_size = %d, EGLint *num_config = 0x%0.8p)",
...@@ -185,6 +191,7 @@ EGLBoolean EGLAPIENTRY ChooseConfig(EGLDisplay dpy, ...@@ -185,6 +191,7 @@ EGLBoolean EGLAPIENTRY ChooseConfig(EGLDisplay dpy,
EGLint config_size, EGLint config_size,
EGLint *num_config) EGLint *num_config)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, const EGLint *attrib_list = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, const EGLint *attrib_list = 0x%0.8p, "
"EGLConfig *configs = 0x%0.8p, EGLint config_size = %d, EGLint *num_config = 0x%0.8p)", "EGLConfig *configs = 0x%0.8p, EGLint config_size = %d, EGLint *num_config = 0x%0.8p)",
...@@ -208,6 +215,7 @@ EGLBoolean EGLAPIENTRY GetConfigAttrib(EGLDisplay dpy, ...@@ -208,6 +215,7 @@ EGLBoolean EGLAPIENTRY GetConfigAttrib(EGLDisplay dpy,
EGLint attribute, EGLint attribute,
EGLint *value) EGLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, EGLint attribute = %d, EGLint " "(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, EGLint attribute = %d, EGLint "
"*value = 0x%0.8p)", "*value = 0x%0.8p)",
...@@ -231,6 +239,7 @@ EGLSurface EGLAPIENTRY CreateWindowSurface(EGLDisplay dpy, ...@@ -231,6 +239,7 @@ EGLSurface EGLAPIENTRY CreateWindowSurface(EGLDisplay dpy,
EGLNativeWindowType win, EGLNativeWindowType win,
const EGLint *attrib_list) const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, EGLNativeWindowType win = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, EGLNativeWindowType win = 0x%0.8p, "
"const EGLint *attrib_list = 0x%0.8p)", "const EGLint *attrib_list = 0x%0.8p)",
...@@ -257,6 +266,7 @@ EGLSurface EGLAPIENTRY CreatePbufferSurface(EGLDisplay dpy, ...@@ -257,6 +266,7 @@ EGLSurface EGLAPIENTRY CreatePbufferSurface(EGLDisplay dpy,
EGLConfig config, EGLConfig config,
const EGLint *attrib_list) const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, const EGLint *attrib_list = " "(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, const EGLint *attrib_list = "
"0x%0.8p)", "0x%0.8p)",
...@@ -282,6 +292,7 @@ EGLSurface EGLAPIENTRY CreatePixmapSurface(EGLDisplay dpy, ...@@ -282,6 +292,7 @@ EGLSurface EGLAPIENTRY CreatePixmapSurface(EGLDisplay dpy,
EGLNativePixmapType pixmap, EGLNativePixmapType pixmap,
const EGLint *attrib_list) const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, EGLNativePixmapType pixmap = " "(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, EGLNativePixmapType pixmap = "
"0x%0.8p, " "0x%0.8p, "
...@@ -303,6 +314,7 @@ EGLSurface EGLAPIENTRY CreatePixmapSurface(EGLDisplay dpy, ...@@ -303,6 +314,7 @@ EGLSurface EGLAPIENTRY CreatePixmapSurface(EGLDisplay dpy,
EGLBoolean EGLAPIENTRY DestroySurface(EGLDisplay dpy, EGLSurface surface) EGLBoolean EGLAPIENTRY DestroySurface(EGLDisplay dpy, EGLSurface surface)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p)", dpy, surface); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p)", dpy, surface);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -324,6 +336,7 @@ EGLBoolean EGLAPIENTRY QuerySurface(EGLDisplay dpy, ...@@ -324,6 +336,7 @@ EGLBoolean EGLAPIENTRY QuerySurface(EGLDisplay dpy,
EGLint attribute, EGLint attribute,
EGLint *value) EGLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint attribute = %d, EGLint " "(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint attribute = %d, EGLint "
"*value = 0x%0.8p)", "*value = 0x%0.8p)",
...@@ -347,6 +360,7 @@ EGLContext EGLAPIENTRY CreateContext(EGLDisplay dpy, ...@@ -347,6 +360,7 @@ EGLContext EGLAPIENTRY CreateContext(EGLDisplay dpy,
EGLContext share_context, EGLContext share_context,
const EGLint *attrib_list) const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, EGLContext share_context = " "(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, EGLContext share_context = "
"0x%0.8p, " "0x%0.8p, "
...@@ -374,6 +388,7 @@ EGLContext EGLAPIENTRY CreateContext(EGLDisplay dpy, ...@@ -374,6 +388,7 @@ EGLContext EGLAPIENTRY CreateContext(EGLDisplay dpy,
EGLBoolean EGLAPIENTRY DestroyContext(EGLDisplay dpy, EGLContext ctx) EGLBoolean EGLAPIENTRY DestroyContext(EGLDisplay dpy, EGLContext ctx)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLContext ctx = 0x%0.8p)", dpy, ctx); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLContext ctx = 0x%0.8p)", dpy, ctx);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -399,6 +414,7 @@ EGLBoolean EGLAPIENTRY DestroyContext(EGLDisplay dpy, EGLContext ctx) ...@@ -399,6 +414,7 @@ EGLBoolean EGLAPIENTRY DestroyContext(EGLDisplay dpy, EGLContext ctx)
EGLBoolean EGLAPIENTRY MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx) EGLBoolean EGLAPIENTRY MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSurface draw = 0x%0.8p, EGLSurface read = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLSurface draw = 0x%0.8p, EGLSurface read = 0x%0.8p, "
"EGLContext ctx = 0x%0.8p)", "EGLContext ctx = 0x%0.8p)",
...@@ -440,6 +456,7 @@ EGLBoolean EGLAPIENTRY MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface r ...@@ -440,6 +456,7 @@ EGLBoolean EGLAPIENTRY MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface r
EGLSurface EGLAPIENTRY GetCurrentSurface(EGLint readdraw) EGLSurface EGLAPIENTRY GetCurrentSurface(EGLint readdraw)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLint readdraw = %d)", readdraw); EVENT("(EGLint readdraw = %d)", readdraw);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -462,6 +479,7 @@ EGLSurface EGLAPIENTRY GetCurrentSurface(EGLint readdraw) ...@@ -462,6 +479,7 @@ EGLSurface EGLAPIENTRY GetCurrentSurface(EGLint readdraw)
EGLDisplay EGLAPIENTRY GetCurrentDisplay(void) EGLDisplay EGLAPIENTRY GetCurrentDisplay(void)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -475,6 +493,7 @@ EGLDisplay EGLAPIENTRY GetCurrentDisplay(void) ...@@ -475,6 +493,7 @@ EGLDisplay EGLAPIENTRY GetCurrentDisplay(void)
EGLBoolean EGLAPIENTRY QueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value) EGLBoolean EGLAPIENTRY QueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLContext ctx = 0x%0.8p, EGLint attribute = %d, EGLint *value " "(EGLDisplay dpy = 0x%0.8p, EGLContext ctx = 0x%0.8p, EGLint attribute = %d, EGLint *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -495,6 +514,7 @@ EGLBoolean EGLAPIENTRY QueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attri ...@@ -495,6 +514,7 @@ EGLBoolean EGLAPIENTRY QueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attri
EGLBoolean EGLAPIENTRY WaitGL(void) EGLBoolean EGLAPIENTRY WaitGL(void)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -514,6 +534,7 @@ EGLBoolean EGLAPIENTRY WaitGL(void) ...@@ -514,6 +534,7 @@ EGLBoolean EGLAPIENTRY WaitGL(void)
EGLBoolean EGLAPIENTRY WaitNative(EGLint engine) EGLBoolean EGLAPIENTRY WaitNative(EGLint engine)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLint engine = %d)", engine); EVENT("(EGLint engine = %d)", engine);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -531,6 +552,7 @@ EGLBoolean EGLAPIENTRY WaitNative(EGLint engine) ...@@ -531,6 +552,7 @@ EGLBoolean EGLAPIENTRY WaitNative(EGLint engine)
EGLBoolean EGLAPIENTRY SwapBuffers(EGLDisplay dpy, EGLSurface surface) EGLBoolean EGLAPIENTRY SwapBuffers(EGLDisplay dpy, EGLSurface surface)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p)", dpy, surface); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p)", dpy, surface);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -549,6 +571,7 @@ EGLBoolean EGLAPIENTRY SwapBuffers(EGLDisplay dpy, EGLSurface surface) ...@@ -549,6 +571,7 @@ EGLBoolean EGLAPIENTRY SwapBuffers(EGLDisplay dpy, EGLSurface surface)
EGLBoolean EGLAPIENTRY CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target) EGLBoolean EGLAPIENTRY CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLNativePixmapType target = " "(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLNativePixmapType target = "
"0x%0.8p)", "0x%0.8p)",
...@@ -570,12 +593,13 @@ EGLBoolean EGLAPIENTRY CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNative ...@@ -570,12 +593,13 @@ EGLBoolean EGLAPIENTRY CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNative
// EGL 1.1 // EGL 1.1
EGLBoolean EGLAPIENTRY BindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) EGLBoolean EGLAPIENTRY BindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint buffer = %d)", dpy, EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint buffer = %d)", dpy,
surface, buffer); surface, buffer);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
Display *display = static_cast<Display *>(dpy); Display *display = static_cast<Display *>(dpy);
Surface *eglSurface = static_cast<Surface *>(surface); Surface *eglSurface = static_cast<Surface *>(surface);
gl::Context *context = thread->getContext(); gl::Context *context = thread->getContext();
gl::Texture *textureObject = nullptr; gl::Texture *textureObject = nullptr;
...@@ -598,6 +622,7 @@ EGLBoolean EGLAPIENTRY SurfaceAttrib(EGLDisplay dpy, ...@@ -598,6 +622,7 @@ EGLBoolean EGLAPIENTRY SurfaceAttrib(EGLDisplay dpy,
EGLint attribute, EGLint attribute,
EGLint value) EGLint value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint attribute = %d, EGLint " "(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint attribute = %d, EGLint "
"value = %d)", "value = %d)",
...@@ -618,6 +643,7 @@ EGLBoolean EGLAPIENTRY SurfaceAttrib(EGLDisplay dpy, ...@@ -618,6 +643,7 @@ EGLBoolean EGLAPIENTRY SurfaceAttrib(EGLDisplay dpy,
EGLBoolean EGLAPIENTRY ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) EGLBoolean EGLAPIENTRY ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint buffer = %d)", dpy, EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint buffer = %d)", dpy,
surface, buffer); surface, buffer);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -643,10 +669,11 @@ EGLBoolean EGLAPIENTRY ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLin ...@@ -643,10 +669,11 @@ EGLBoolean EGLAPIENTRY ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLin
EGLBoolean EGLAPIENTRY SwapInterval(EGLDisplay dpy, EGLint interval) EGLBoolean EGLAPIENTRY SwapInterval(EGLDisplay dpy, EGLint interval)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint interval = %d)", dpy, interval); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint interval = %d)", dpy, interval);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
Display *display = static_cast<Display *>(dpy); Display *display = static_cast<Display *>(dpy);
Surface *draw_surface = static_cast<Surface *>(thread->getCurrentDrawSurface()); Surface *draw_surface = static_cast<Surface *>(thread->getCurrentDrawSurface());
ANGLE_EGL_TRY_RETURN(thread, ValidateSwapInterval(display, draw_surface), "eglSwapInterval", ANGLE_EGL_TRY_RETURN(thread, ValidateSwapInterval(display, draw_surface), "eglSwapInterval",
...@@ -665,6 +692,7 @@ EGLBoolean EGLAPIENTRY SwapInterval(EGLDisplay dpy, EGLint interval) ...@@ -665,6 +692,7 @@ EGLBoolean EGLAPIENTRY SwapInterval(EGLDisplay dpy, EGLint interval)
// EGL 1.2 // EGL 1.2
EGLBoolean EGLAPIENTRY BindAPI(EGLenum api) EGLBoolean EGLAPIENTRY BindAPI(EGLenum api)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLenum api = 0x%X)", api); EVENT("(EGLenum api = 0x%X)", api);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -679,6 +707,7 @@ EGLBoolean EGLAPIENTRY BindAPI(EGLenum api) ...@@ -679,6 +707,7 @@ EGLBoolean EGLAPIENTRY BindAPI(EGLenum api)
EGLenum EGLAPIENTRY QueryAPI(void) EGLenum EGLAPIENTRY QueryAPI(void)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -694,6 +723,7 @@ EGLSurface EGLAPIENTRY CreatePbufferFromClientBuffer(EGLDisplay dpy, ...@@ -694,6 +723,7 @@ EGLSurface EGLAPIENTRY CreatePbufferFromClientBuffer(EGLDisplay dpy,
EGLConfig config, EGLConfig config,
const EGLint *attrib_list) const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLenum buftype = 0x%X, EGLClientBuffer buffer = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLenum buftype = 0x%X, EGLClientBuffer buffer = 0x%0.8p, "
"EGLConfig config = 0x%0.8p, const EGLint *attrib_list = 0x%0.8p)", "EGLConfig config = 0x%0.8p, const EGLint *attrib_list = 0x%0.8p)",
...@@ -721,6 +751,8 @@ EGLSurface EGLAPIENTRY CreatePbufferFromClientBuffer(EGLDisplay dpy, ...@@ -721,6 +751,8 @@ EGLSurface EGLAPIENTRY CreatePbufferFromClientBuffer(EGLDisplay dpy,
EGLBoolean EGLAPIENTRY ReleaseThread(void) EGLBoolean EGLAPIENTRY ReleaseThread(void)
{ {
// Explicitly no global mutex lock because eglReleaseThread forwards its implementation to
// eglMakeCurrent
EVENT("()"); EVENT("()");
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -732,6 +764,7 @@ EGLBoolean EGLAPIENTRY ReleaseThread(void) ...@@ -732,6 +764,7 @@ EGLBoolean EGLAPIENTRY ReleaseThread(void)
EGLBoolean EGLAPIENTRY WaitClient(void) EGLBoolean EGLAPIENTRY WaitClient(void)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -751,6 +784,7 @@ EGLBoolean EGLAPIENTRY WaitClient(void) ...@@ -751,6 +784,7 @@ EGLBoolean EGLAPIENTRY WaitClient(void)
// EGL 1.4 // EGL 1.4
EGLContext EGLAPIENTRY GetCurrentContext(void) EGLContext EGLAPIENTRY GetCurrentContext(void)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -763,6 +797,7 @@ EGLContext EGLAPIENTRY GetCurrentContext(void) ...@@ -763,6 +797,7 @@ EGLContext EGLAPIENTRY GetCurrentContext(void)
// EGL 1.5 // EGL 1.5
EGLSync EGLAPIENTRY CreateSync(EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list) EGLSync EGLAPIENTRY CreateSync(EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLenum type = 0x%X, const EGLint* attrib_list = 0x%0.8p)", EVENT("(EGLDisplay dpy = 0x%0.8p, EGLenum type = 0x%X, const EGLint* attrib_list = 0x%0.8p)",
dpy, type, attrib_list); dpy, type, attrib_list);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -777,6 +812,7 @@ EGLSync EGLAPIENTRY CreateSync(EGLDisplay dpy, EGLenum type, const EGLAttrib *at ...@@ -777,6 +812,7 @@ EGLSync EGLAPIENTRY CreateSync(EGLDisplay dpy, EGLenum type, const EGLAttrib *at
EGLBoolean EGLAPIENTRY DestroySync(EGLDisplay dpy, EGLSync sync) EGLBoolean EGLAPIENTRY DestroySync(EGLDisplay dpy, EGLSync sync)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSync sync = 0x%0.8p)", dpy, sync); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSync sync = 0x%0.8p)", dpy, sync);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -789,6 +825,7 @@ EGLBoolean EGLAPIENTRY DestroySync(EGLDisplay dpy, EGLSync sync) ...@@ -789,6 +825,7 @@ EGLBoolean EGLAPIENTRY DestroySync(EGLDisplay dpy, EGLSync sync)
EGLint EGLAPIENTRY ClientWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout) EGLint EGLAPIENTRY ClientWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSync sync = 0x%0.8p, EGLint flags = 0x%X, EGLTime timeout = " "(EGLDisplay dpy = 0x%0.8p, EGLSync sync = 0x%0.8p, EGLint flags = 0x%X, EGLTime timeout = "
"%d)", "%d)",
...@@ -807,6 +844,7 @@ EGLBoolean EGLAPIENTRY GetSyncAttrib(EGLDisplay dpy, ...@@ -807,6 +844,7 @@ EGLBoolean EGLAPIENTRY GetSyncAttrib(EGLDisplay dpy,
EGLint attribute, EGLint attribute,
EGLAttrib *value) EGLAttrib *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSync sync = 0x%0.8p, EGLint attribute = 0x%X, EGLAttrib " "(EGLDisplay dpy = 0x%0.8p, EGLSync sync = 0x%0.8p, EGLint attribute = 0x%X, EGLAttrib "
"*value = 0x%0.8p)", "*value = 0x%0.8p)",
...@@ -826,6 +864,7 @@ EGLImage EGLAPIENTRY CreateImage(EGLDisplay dpy, ...@@ -826,6 +864,7 @@ EGLImage EGLAPIENTRY CreateImage(EGLDisplay dpy,
EGLClientBuffer buffer, EGLClientBuffer buffer,
const EGLAttrib *attrib_list) const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLContext ctx = 0x%0.8p, EGLenum target = 0x%X, " "(EGLDisplay dpy = 0x%0.8p, EGLContext ctx = 0x%0.8p, EGLenum target = 0x%X, "
"EGLClientBuffer buffer = 0x%0.8p, const EGLAttrib *attrib_list = 0x%0.8p)", "EGLClientBuffer buffer = 0x%0.8p, const EGLAttrib *attrib_list = 0x%0.8p)",
...@@ -841,6 +880,7 @@ EGLImage EGLAPIENTRY CreateImage(EGLDisplay dpy, ...@@ -841,6 +880,7 @@ EGLImage EGLAPIENTRY CreateImage(EGLDisplay dpy,
EGLBoolean EGLAPIENTRY DestroyImage(EGLDisplay dpy, EGLImage image) EGLBoolean EGLAPIENTRY DestroyImage(EGLDisplay dpy, EGLImage image)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLImage image = 0x%0.8p)", dpy, image); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLImage image = 0x%0.8p)", dpy, image);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
Display *display = static_cast<Display *>(dpy); Display *display = static_cast<Display *>(dpy);
...@@ -856,6 +896,7 @@ EGLDisplay EGLAPIENTRY GetPlatformDisplay(EGLenum platform, ...@@ -856,6 +896,7 @@ EGLDisplay EGLAPIENTRY GetPlatformDisplay(EGLenum platform,
void *native_display, void *native_display,
const EGLAttrib *attrib_list) const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLenum platform = %d, void* native_display = 0x%0.8p, const EGLint* attrib_list = " "(EGLenum platform = %d, void* native_display = 0x%0.8p, const EGLint* attrib_list = "
"0x%0.8p)", "0x%0.8p)",
...@@ -888,6 +929,7 @@ EGLSurface EGLAPIENTRY CreatePlatformWindowSurface(EGLDisplay dpy, ...@@ -888,6 +929,7 @@ EGLSurface EGLAPIENTRY CreatePlatformWindowSurface(EGLDisplay dpy,
void *native_window, void *native_window,
const EGLAttrib *attrib_list) const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, void* native_window = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, void* native_window = 0x%0.8p, "
"const EGLint* attrib_list = 0x%0.8p)", "const EGLint* attrib_list = 0x%0.8p)",
...@@ -906,6 +948,7 @@ EGLSurface EGLAPIENTRY CreatePlatformPixmapSurface(EGLDisplay dpy, ...@@ -906,6 +948,7 @@ EGLSurface EGLAPIENTRY CreatePlatformPixmapSurface(EGLDisplay dpy,
void *native_pixmap, void *native_pixmap,
const EGLAttrib *attrib_list) const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, void* native_pixmap = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, void* native_pixmap = 0x%0.8p, "
"const EGLint* attrib_list = 0x%0.8p)", "const EGLint* attrib_list = 0x%0.8p)",
...@@ -921,6 +964,7 @@ EGLSurface EGLAPIENTRY CreatePlatformPixmapSurface(EGLDisplay dpy, ...@@ -921,6 +964,7 @@ EGLSurface EGLAPIENTRY CreatePlatformPixmapSurface(EGLDisplay dpy,
EGLBoolean EGLAPIENTRY WaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags) EGLBoolean EGLAPIENTRY WaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSync sync = 0x%0.8p, EGLint flags = 0x%X)", dpy, sync, EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSync sync = 0x%0.8p, EGLint flags = 0x%X)", dpy, sync,
flags); flags);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -934,6 +978,7 @@ EGLBoolean EGLAPIENTRY WaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags) ...@@ -934,6 +978,7 @@ EGLBoolean EGLAPIENTRY WaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags)
__eglMustCastToProperFunctionPointerType EGLAPIENTRY GetProcAddress(const char *procname) __eglMustCastToProperFunctionPointerType EGLAPIENTRY GetProcAddress(const char *procname)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(const char *procname = \"%s\")", procname); EVENT("(const char *procname = \"%s\")", procname);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
......
...@@ -28,6 +28,7 @@ EGLBoolean EGLAPIENTRY QuerySurfacePointerANGLE(EGLDisplay dpy, ...@@ -28,6 +28,7 @@ EGLBoolean EGLAPIENTRY QuerySurfacePointerANGLE(EGLDisplay dpy,
EGLint attribute, EGLint attribute,
void **value) void **value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint attribute = %d, void " "(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint attribute = %d, void "
"**value = 0x%0.8p)", "**value = 0x%0.8p)",
...@@ -99,6 +100,7 @@ EGLBoolean EGLAPIENTRY QuerySurfacePointerANGLE(EGLDisplay dpy, ...@@ -99,6 +100,7 @@ EGLBoolean EGLAPIENTRY QuerySurfacePointerANGLE(EGLDisplay dpy,
EGLBoolean EGLAPIENTRY EGLBoolean EGLAPIENTRY
PostSubBufferNV(EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height) PostSubBufferNV(EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint x = %d, EGLint y = %d, " "(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint x = %d, EGLint y = %d, "
"EGLint width = %d, EGLint height = %d)", "EGLint width = %d, EGLint height = %d)",
...@@ -161,6 +163,7 @@ EGLDisplay EGLAPIENTRY GetPlatformDisplayEXT(EGLenum platform, ...@@ -161,6 +163,7 @@ EGLDisplay EGLAPIENTRY GetPlatformDisplayEXT(EGLenum platform,
void *native_display, void *native_display,
const EGLint *attrib_list) const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLenum platform = %d, void* native_display = 0x%0.8p, const EGLint* attrib_list = " "(EGLenum platform = %d, void* native_display = 0x%0.8p, const EGLint* attrib_list = "
"0x%0.8p)", "0x%0.8p)",
...@@ -197,6 +200,7 @@ EGLSurface EGLAPIENTRY CreatePlatformWindowSurfaceEXT(EGLDisplay dpy, ...@@ -197,6 +200,7 @@ EGLSurface EGLAPIENTRY CreatePlatformWindowSurfaceEXT(EGLDisplay dpy,
void *native_window, void *native_window,
const EGLint *attrib_list) const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, void *native_window = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, void *native_window = 0x%0.8p, "
"const EGLint *attrib_list = 0x%0.8p)", "const EGLint *attrib_list = 0x%0.8p)",
...@@ -222,6 +226,7 @@ EGLSurface EGLAPIENTRY CreatePlatformPixmapSurfaceEXT(EGLDisplay dpy, ...@@ -222,6 +226,7 @@ EGLSurface EGLAPIENTRY CreatePlatformPixmapSurfaceEXT(EGLDisplay dpy,
void *native_pixmap, void *native_pixmap,
const EGLint *attrib_list) const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, void *native_pixmap = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLConfig config = 0x%0.8p, void *native_pixmap = 0x%0.8p, "
"const EGLint *attrib_list = 0x%0.8p)", "const EGLint *attrib_list = 0x%0.8p)",
...@@ -245,6 +250,7 @@ EGLSurface EGLAPIENTRY CreatePlatformPixmapSurfaceEXT(EGLDisplay dpy, ...@@ -245,6 +250,7 @@ EGLSurface EGLAPIENTRY CreatePlatformPixmapSurfaceEXT(EGLDisplay dpy,
// EGL_EXT_device_query // EGL_EXT_device_query
EGLBoolean EGLAPIENTRY QueryDeviceAttribEXT(EGLDeviceEXT device, EGLint attribute, EGLAttrib *value) EGLBoolean EGLAPIENTRY QueryDeviceAttribEXT(EGLDeviceEXT device, EGLint attribute, EGLAttrib *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDeviceEXT device = 0x%0.8p, EGLint attribute = %d, EGLAttrib *value = 0x%0.8p)", EVENT("(EGLDeviceEXT device = 0x%0.8p, EGLint attribute = %d, EGLAttrib *value = 0x%0.8p)",
device, attribute, value); device, attribute, value);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -302,6 +308,7 @@ EGLBoolean EGLAPIENTRY QueryDeviceAttribEXT(EGLDeviceEXT device, EGLint attribut ...@@ -302,6 +308,7 @@ EGLBoolean EGLAPIENTRY QueryDeviceAttribEXT(EGLDeviceEXT device, EGLint attribut
// EGL_EXT_device_query // EGL_EXT_device_query
const char *EGLAPIENTRY QueryDeviceStringEXT(EGLDeviceEXT device, EGLint name) const char *EGLAPIENTRY QueryDeviceStringEXT(EGLDeviceEXT device, EGLint name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDeviceEXT device = 0x%0.8p, EGLint name = %d)", device, name); EVENT("(EGLDeviceEXT device = 0x%0.8p, EGLint name = %d)", device, name);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -333,6 +340,7 @@ const char *EGLAPIENTRY QueryDeviceStringEXT(EGLDeviceEXT device, EGLint name) ...@@ -333,6 +340,7 @@ const char *EGLAPIENTRY QueryDeviceStringEXT(EGLDeviceEXT device, EGLint name)
// EGL_EXT_device_query // EGL_EXT_device_query
EGLBoolean EGLAPIENTRY QueryDisplayAttribEXT(EGLDisplay dpy, EGLint attribute, EGLAttrib *value) EGLBoolean EGLAPIENTRY QueryDisplayAttribEXT(EGLDisplay dpy, EGLint attribute, EGLAttrib *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint attribute = %d, EGLAttrib *value = 0x%0.8p)", dpy, EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint attribute = %d, EGLAttrib *value = 0x%0.8p)", dpy,
attribute, value); attribute, value);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -376,6 +384,7 @@ ANGLE_EXPORT EGLImageKHR EGLAPIENTRY CreateImageKHR(EGLDisplay dpy, ...@@ -376,6 +384,7 @@ ANGLE_EXPORT EGLImageKHR EGLAPIENTRY CreateImageKHR(EGLDisplay dpy,
EGLClientBuffer buffer, EGLClientBuffer buffer,
const EGLint *attrib_list) const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLContext ctx = 0x%0.8p, EGLenum target = 0x%X, " "(EGLDisplay dpy = 0x%0.8p, EGLContext ctx = 0x%0.8p, EGLenum target = 0x%X, "
"EGLClientBuffer buffer = 0x%0.8p, const EGLAttrib *attrib_list = 0x%0.8p)", "EGLClientBuffer buffer = 0x%0.8p, const EGLAttrib *attrib_list = 0x%0.8p)",
...@@ -407,6 +416,7 @@ ANGLE_EXPORT EGLImageKHR EGLAPIENTRY CreateImageKHR(EGLDisplay dpy, ...@@ -407,6 +416,7 @@ ANGLE_EXPORT EGLImageKHR EGLAPIENTRY CreateImageKHR(EGLDisplay dpy,
ANGLE_EXPORT EGLBoolean EGLAPIENTRY DestroyImageKHR(EGLDisplay dpy, EGLImageKHR image) ANGLE_EXPORT EGLBoolean EGLAPIENTRY DestroyImageKHR(EGLDisplay dpy, EGLImageKHR image)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLImage image = 0x%0.8p)", dpy, image); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLImage image = 0x%0.8p)", dpy, image);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -430,6 +440,7 @@ ANGLE_EXPORT EGLDeviceEXT EGLAPIENTRY CreateDeviceANGLE(EGLint device_type, ...@@ -430,6 +440,7 @@ ANGLE_EXPORT EGLDeviceEXT EGLAPIENTRY CreateDeviceANGLE(EGLint device_type,
void *native_device, void *native_device,
const EGLAttrib *attrib_list) const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLint device_type = %d, void* native_device = 0x%0.8p, const EGLAttrib* attrib_list = " "(EGLint device_type = %d, void* native_device = 0x%0.8p, const EGLAttrib* attrib_list = "
"0x%0.8p)", "0x%0.8p)",
...@@ -458,6 +469,7 @@ ANGLE_EXPORT EGLDeviceEXT EGLAPIENTRY CreateDeviceANGLE(EGLint device_type, ...@@ -458,6 +469,7 @@ ANGLE_EXPORT EGLDeviceEXT EGLAPIENTRY CreateDeviceANGLE(EGLint device_type,
ANGLE_EXPORT EGLBoolean EGLAPIENTRY ReleaseDeviceANGLE(EGLDeviceEXT device) ANGLE_EXPORT EGLBoolean EGLAPIENTRY ReleaseDeviceANGLE(EGLDeviceEXT device)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDeviceEXT device = 0x%0.8p)", device); EVENT("(EGLDeviceEXT device = 0x%0.8p)", device);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -479,6 +491,7 @@ ANGLE_EXPORT EGLBoolean EGLAPIENTRY ReleaseDeviceANGLE(EGLDeviceEXT device) ...@@ -479,6 +491,7 @@ ANGLE_EXPORT EGLBoolean EGLAPIENTRY ReleaseDeviceANGLE(EGLDeviceEXT device)
// EGL_KHR_stream // EGL_KHR_stream
EGLStreamKHR EGLAPIENTRY CreateStreamKHR(EGLDisplay dpy, const EGLint *attrib_list) EGLStreamKHR EGLAPIENTRY CreateStreamKHR(EGLDisplay dpy, const EGLint *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, const EGLAttrib* attrib_list = 0x%0.8p)", dpy, attrib_list); EVENT("(EGLDisplay dpy = 0x%0.8p, const EGLAttrib* attrib_list = 0x%0.8p)", dpy, attrib_list);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -506,6 +519,7 @@ EGLStreamKHR EGLAPIENTRY CreateStreamKHR(EGLDisplay dpy, const EGLint *attrib_li ...@@ -506,6 +519,7 @@ EGLStreamKHR EGLAPIENTRY CreateStreamKHR(EGLDisplay dpy, const EGLint *attrib_li
EGLBoolean EGLAPIENTRY DestroyStreamKHR(EGLDisplay dpy, EGLStreamKHR stream) EGLBoolean EGLAPIENTRY DestroyStreamKHR(EGLDisplay dpy, EGLStreamKHR stream)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR = 0x%0.8p)", dpy, stream); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR = 0x%0.8p)", dpy, stream);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -531,6 +545,7 @@ EGLBoolean EGLAPIENTRY StreamAttribKHR(EGLDisplay dpy, ...@@ -531,6 +545,7 @@ EGLBoolean EGLAPIENTRY StreamAttribKHR(EGLDisplay dpy,
EGLenum attribute, EGLenum attribute,
EGLint value) EGLint value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLenum attribute = 0x%X, " "(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLenum attribute = 0x%X, "
"EGLint value = 0x%X)", "EGLint value = 0x%X)",
...@@ -569,6 +584,7 @@ EGLBoolean EGLAPIENTRY QueryStreamKHR(EGLDisplay dpy, ...@@ -569,6 +584,7 @@ EGLBoolean EGLAPIENTRY QueryStreamKHR(EGLDisplay dpy,
EGLenum attribute, EGLenum attribute,
EGLint *value) EGLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLenum attribute = 0x%X, " "(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLenum attribute = 0x%X, "
"EGLint value = 0x%0.8p)", "EGLint value = 0x%0.8p)",
...@@ -610,6 +626,7 @@ EGLBoolean EGLAPIENTRY QueryStreamu64KHR(EGLDisplay dpy, ...@@ -610,6 +626,7 @@ EGLBoolean EGLAPIENTRY QueryStreamu64KHR(EGLDisplay dpy,
EGLenum attribute, EGLenum attribute,
EGLuint64KHR *value) EGLuint64KHR *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLenum attribute = 0x%X, " "(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLenum attribute = 0x%X, "
"EGLuint64KHR value = 0x%0.8p)", "EGLuint64KHR value = 0x%0.8p)",
...@@ -645,6 +662,7 @@ EGLBoolean EGLAPIENTRY QueryStreamu64KHR(EGLDisplay dpy, ...@@ -645,6 +662,7 @@ EGLBoolean EGLAPIENTRY QueryStreamu64KHR(EGLDisplay dpy,
EGLBoolean EGLAPIENTRY StreamConsumerGLTextureExternalKHR(EGLDisplay dpy, EGLStreamKHR stream) EGLBoolean EGLAPIENTRY StreamConsumerGLTextureExternalKHR(EGLDisplay dpy, EGLStreamKHR stream)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR = 0x%0.8p)", dpy, stream); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR = 0x%0.8p)", dpy, stream);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -674,6 +692,7 @@ EGLBoolean EGLAPIENTRY StreamConsumerGLTextureExternalKHR(EGLDisplay dpy, EGLStr ...@@ -674,6 +692,7 @@ EGLBoolean EGLAPIENTRY StreamConsumerGLTextureExternalKHR(EGLDisplay dpy, EGLStr
EGLBoolean EGLAPIENTRY StreamConsumerAcquireKHR(EGLDisplay dpy, EGLStreamKHR stream) EGLBoolean EGLAPIENTRY StreamConsumerAcquireKHR(EGLDisplay dpy, EGLStreamKHR stream)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR = 0x%0.8p)", dpy, stream); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR = 0x%0.8p)", dpy, stream);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -703,6 +722,7 @@ EGLBoolean EGLAPIENTRY StreamConsumerAcquireKHR(EGLDisplay dpy, EGLStreamKHR str ...@@ -703,6 +722,7 @@ EGLBoolean EGLAPIENTRY StreamConsumerAcquireKHR(EGLDisplay dpy, EGLStreamKHR str
EGLBoolean EGLAPIENTRY StreamConsumerReleaseKHR(EGLDisplay dpy, EGLStreamKHR stream) EGLBoolean EGLAPIENTRY StreamConsumerReleaseKHR(EGLDisplay dpy, EGLStreamKHR stream)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR = 0x%0.8p)", dpy, stream); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR = 0x%0.8p)", dpy, stream);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -734,6 +754,7 @@ EGLBoolean EGLAPIENTRY StreamConsumerGLTextureExternalAttribsNV(EGLDisplay dpy, ...@@ -734,6 +754,7 @@ EGLBoolean EGLAPIENTRY StreamConsumerGLTextureExternalAttribsNV(EGLDisplay dpy,
EGLStreamKHR stream, EGLStreamKHR stream,
const EGLAttrib *attrib_list) const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLAttrib attrib_list = 0x%0.8p", "(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLAttrib attrib_list = 0x%0.8p",
dpy, stream, attrib_list); dpy, stream, attrib_list);
...@@ -769,6 +790,7 @@ EGLBoolean EGLAPIENTRY CreateStreamProducerD3DTextureANGLE(EGLDisplay dpy, ...@@ -769,6 +790,7 @@ EGLBoolean EGLAPIENTRY CreateStreamProducerD3DTextureANGLE(EGLDisplay dpy,
EGLStreamKHR stream, EGLStreamKHR stream,
const EGLAttrib *attrib_list) const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLAttrib attrib_list = 0x%0.8p", "(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, EGLAttrib attrib_list = 0x%0.8p",
dpy, stream, attrib_list); dpy, stream, attrib_list);
...@@ -803,6 +825,7 @@ EGLBoolean EGLAPIENTRY StreamPostD3DTextureANGLE(EGLDisplay dpy, ...@@ -803,6 +825,7 @@ EGLBoolean EGLAPIENTRY StreamPostD3DTextureANGLE(EGLDisplay dpy,
void *texture, void *texture,
const EGLAttrib *attrib_list) const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, void* texture = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLStreamKHR stream = 0x%0.8p, void* texture = 0x%0.8p, "
"EGLAttrib attrib_list = 0x%0.8p", "EGLAttrib attrib_list = 0x%0.8p",
...@@ -839,6 +862,7 @@ EGLBoolean EGLAPIENTRY GetSyncValuesCHROMIUM(EGLDisplay dpy, ...@@ -839,6 +862,7 @@ EGLBoolean EGLAPIENTRY GetSyncValuesCHROMIUM(EGLDisplay dpy,
EGLuint64KHR *msc, EGLuint64KHR *msc,
EGLuint64KHR *sbc) EGLuint64KHR *sbc)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLuint64KHR* ust = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLuint64KHR* ust = 0x%0.8p, "
"EGLuint64KHR* msc = 0x%0.8p, EGLuint64KHR* sbc = 0x%0.8p", "EGLuint64KHR* msc = 0x%0.8p, EGLuint64KHR* sbc = 0x%0.8p",
...@@ -873,6 +897,7 @@ EGLBoolean EGLAPIENTRY SwapBuffersWithDamageKHR(EGLDisplay dpy, ...@@ -873,6 +897,7 @@ EGLBoolean EGLAPIENTRY SwapBuffersWithDamageKHR(EGLDisplay dpy,
EGLint *rects, EGLint *rects,
EGLint n_rects) EGLint n_rects)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint *rects = 0x%0.8p, EGLint " "(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLint *rects = 0x%0.8p, EGLint "
"n_rects = %d)", "n_rects = %d)",
...@@ -906,6 +931,7 @@ EGLBoolean EGLAPIENTRY PresentationTimeANDROID(EGLDisplay dpy, ...@@ -906,6 +931,7 @@ EGLBoolean EGLAPIENTRY PresentationTimeANDROID(EGLDisplay dpy,
EGLSurface surface, EGLSurface surface,
EGLnsecsANDROID time) EGLnsecsANDROID time)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLnsecsANDROID time = %d)", EVENT("(EGLDisplay dpy = 0x%0.8p, EGLSurface surface = 0x%0.8p, EGLnsecsANDROID time = %d)",
dpy, surface, time); dpy, surface, time);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -925,6 +951,7 @@ EGLBoolean EGLAPIENTRY PresentationTimeANDROID(EGLDisplay dpy, ...@@ -925,6 +951,7 @@ EGLBoolean EGLAPIENTRY PresentationTimeANDROID(EGLDisplay dpy,
EGLint EGLAPIENTRY ProgramCacheGetAttribANGLE(EGLDisplay dpy, EGLenum attrib) EGLint EGLAPIENTRY ProgramCacheGetAttribANGLE(EGLDisplay dpy, EGLenum attrib)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLenum attrib = 0x%X)", dpy, attrib); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLenum attrib = 0x%X)", dpy, attrib);
Display *display = static_cast<Display *>(dpy); Display *display = static_cast<Display *>(dpy);
...@@ -944,6 +971,7 @@ void EGLAPIENTRY ProgramCacheQueryANGLE(EGLDisplay dpy, ...@@ -944,6 +971,7 @@ void EGLAPIENTRY ProgramCacheQueryANGLE(EGLDisplay dpy,
void *binary, void *binary,
EGLint *binarysize) EGLint *binarysize)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, EGLint index = %d, void *key = 0x%0.8p, EGLint *keysize = " "(EGLDisplay dpy = 0x%0.8p, EGLint index = %d, void *key = 0x%0.8p, EGLint *keysize = "
"0x%0.8p, void *binary = 0x%0.8p, EGLint *size = 0x%0.8p)", "0x%0.8p, void *binary = 0x%0.8p, EGLint *size = 0x%0.8p)",
...@@ -968,6 +996,7 @@ void EGLAPIENTRY ProgramCachePopulateANGLE(EGLDisplay dpy, ...@@ -968,6 +996,7 @@ void EGLAPIENTRY ProgramCachePopulateANGLE(EGLDisplay dpy,
const void *binary, const void *binary,
EGLint binarysize) EGLint binarysize)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8p, void *key = 0x%0.8p, EGLint keysize = %d, void *binary = " "(EGLDisplay dpy = 0x%0.8p, void *key = 0x%0.8p, EGLint keysize = %d, void *binary = "
"0x%0.8p, EGLint *size = 0x%0.8p)", "0x%0.8p, EGLint *size = 0x%0.8p)",
...@@ -988,6 +1017,7 @@ void EGLAPIENTRY ProgramCachePopulateANGLE(EGLDisplay dpy, ...@@ -988,6 +1017,7 @@ void EGLAPIENTRY ProgramCachePopulateANGLE(EGLDisplay dpy,
EGLint EGLAPIENTRY ProgramCacheResizeANGLE(EGLDisplay dpy, EGLint limit, EGLenum mode) EGLint EGLAPIENTRY ProgramCacheResizeANGLE(EGLDisplay dpy, EGLint limit, EGLenum mode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint limit = %d, EGLenum mode = 0x%X)", dpy, limit, mode); EVENT("(EGLDisplay dpy = 0x%0.8p, EGLint limit = %d, EGLenum mode = 0x%X)", dpy, limit, mode);
Display *display = static_cast<Display *>(dpy); Display *display = static_cast<Display *>(dpy);
...@@ -1002,6 +1032,7 @@ EGLint EGLAPIENTRY ProgramCacheResizeANGLE(EGLDisplay dpy, EGLint limit, EGLenum ...@@ -1002,6 +1032,7 @@ EGLint EGLAPIENTRY ProgramCacheResizeANGLE(EGLDisplay dpy, EGLint limit, EGLenum
EGLint EGLAPIENTRY DebugMessageControlKHR(EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list) EGLint EGLAPIENTRY DebugMessageControlKHR(EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLDEBUGPROCKHR callback = 0x%0.8p, EGLAttrib attrib_list = 0x%0.8p)", callback, EVENT("(EGLDEBUGPROCKHR callback = 0x%0.8p, EGLAttrib attrib_list = 0x%0.8p)", callback,
attrib_list); attrib_list);
...@@ -1025,6 +1056,7 @@ EGLint EGLAPIENTRY DebugMessageControlKHR(EGLDEBUGPROCKHR callback, const EGLAtt ...@@ -1025,6 +1056,7 @@ EGLint EGLAPIENTRY DebugMessageControlKHR(EGLDEBUGPROCKHR callback, const EGLAtt
EGLBoolean EGLAPIENTRY QueryDebugKHR(EGLint attribute, EGLAttrib *value) EGLBoolean EGLAPIENTRY QueryDebugKHR(EGLint attribute, EGLAttrib *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(EGLint attribute = 0x%X, EGLAttrib* value = 0x%0.8p)", attribute, value); EVENT("(EGLint attribute = 0x%X, EGLAttrib* value = 0x%0.8p)", attribute, value);
Thread *thread = GetCurrentThread(); Thread *thread = GetCurrentThread();
...@@ -1063,6 +1095,7 @@ EGLint EGLAPIENTRY LabelObjectKHR(EGLDisplay dpy, ...@@ -1063,6 +1095,7 @@ EGLint EGLAPIENTRY LabelObjectKHR(EGLDisplay dpy,
EGLObjectKHR object, EGLObjectKHR object,
EGLLabelKHR label) EGLLabelKHR label)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(EGLDisplay dpy = 0x%0.8pf, EGLenum objectType = 0x%X, EGLObjectKHR object = 0x%0.8p, " "(EGLDisplay dpy = 0x%0.8pf, EGLenum objectType = 0x%X, EGLObjectKHR object = 0x%0.8p, "
"EGLLabelKHR label = 0x%0.8p)", "EGLLabelKHR label = 0x%0.8p)",
......
...@@ -18,6 +18,7 @@ namespace gl ...@@ -18,6 +18,7 @@ namespace gl
{ {
void GL_APIENTRY AlphaFunc(GLenum func, GLfloat ref) void GL_APIENTRY AlphaFunc(GLenum func, GLfloat ref)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum func = 0x%X, GLfloat ref = %f)", func, ref); EVENT("(GLenum func = 0x%X, GLfloat ref = %f)", func, ref);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -35,6 +36,7 @@ void GL_APIENTRY AlphaFunc(GLenum func, GLfloat ref) ...@@ -35,6 +36,7 @@ void GL_APIENTRY AlphaFunc(GLenum func, GLfloat ref)
void GL_APIENTRY AlphaFuncx(GLenum func, GLfixed ref) void GL_APIENTRY AlphaFuncx(GLenum func, GLfixed ref)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum func = 0x%X, GLfixed ref = 0x%X)", func, ref); EVENT("(GLenum func = 0x%X, GLfixed ref = 0x%X)", func, ref);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -52,6 +54,7 @@ void GL_APIENTRY AlphaFuncx(GLenum func, GLfixed ref) ...@@ -52,6 +54,7 @@ void GL_APIENTRY AlphaFuncx(GLenum func, GLfixed ref)
void GL_APIENTRY ClearColorx(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) void GL_APIENTRY ClearColorx(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed red = 0x%X, GLfixed green = 0x%X, GLfixed blue = 0x%X, GLfixed alpha = 0x%X)", EVENT("(GLfixed red = 0x%X, GLfixed green = 0x%X, GLfixed blue = 0x%X, GLfixed alpha = 0x%X)",
red, green, blue, alpha); red, green, blue, alpha);
...@@ -69,6 +72,7 @@ void GL_APIENTRY ClearColorx(GLfixed red, GLfixed green, GLfixed blue, GLfixed a ...@@ -69,6 +72,7 @@ void GL_APIENTRY ClearColorx(GLfixed red, GLfixed green, GLfixed blue, GLfixed a
void GL_APIENTRY ClearDepthx(GLfixed depth) void GL_APIENTRY ClearDepthx(GLfixed depth)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed depth = 0x%X)", depth); EVENT("(GLfixed depth = 0x%X)", depth);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -85,6 +89,7 @@ void GL_APIENTRY ClearDepthx(GLfixed depth) ...@@ -85,6 +89,7 @@ void GL_APIENTRY ClearDepthx(GLfixed depth)
void GL_APIENTRY ClientActiveTexture(GLenum texture) void GL_APIENTRY ClientActiveTexture(GLenum texture)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum texture = 0x%X)", texture); EVENT("(GLenum texture = 0x%X)", texture);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -101,6 +106,7 @@ void GL_APIENTRY ClientActiveTexture(GLenum texture) ...@@ -101,6 +106,7 @@ void GL_APIENTRY ClientActiveTexture(GLenum texture)
void GL_APIENTRY ClipPlanef(GLenum p, const GLfloat *eqn) void GL_APIENTRY ClipPlanef(GLenum p, const GLfloat *eqn)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum p = 0x%X, const GLfloat *eqn = 0x%0.8p)", p, eqn); EVENT("(GLenum p = 0x%X, const GLfloat *eqn = 0x%0.8p)", p, eqn);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -117,6 +123,7 @@ void GL_APIENTRY ClipPlanef(GLenum p, const GLfloat *eqn) ...@@ -117,6 +123,7 @@ void GL_APIENTRY ClipPlanef(GLenum p, const GLfloat *eqn)
void GL_APIENTRY ClipPlanex(GLenum plane, const GLfixed *equation) void GL_APIENTRY ClipPlanex(GLenum plane, const GLfixed *equation)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum plane = 0x%X, const GLfixed *equation = 0x%0.8p)", plane, equation); EVENT("(GLenum plane = 0x%X, const GLfixed *equation = 0x%0.8p)", plane, equation);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -133,6 +140,7 @@ void GL_APIENTRY ClipPlanex(GLenum plane, const GLfixed *equation) ...@@ -133,6 +140,7 @@ void GL_APIENTRY ClipPlanex(GLenum plane, const GLfixed *equation)
void GL_APIENTRY Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) void GL_APIENTRY Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat red = %f, GLfloat green = %f, GLfloat blue = %f, GLfloat alpha = %f)", red, EVENT("(GLfloat red = %f, GLfloat green = %f, GLfloat blue = %f, GLfloat alpha = %f)", red,
green, blue, alpha); green, blue, alpha);
...@@ -150,6 +158,7 @@ void GL_APIENTRY Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ...@@ -150,6 +158,7 @@ void GL_APIENTRY Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha
void GL_APIENTRY Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) void GL_APIENTRY Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLubyte red = %d, GLubyte green = %d, GLubyte blue = %d, GLubyte alpha = %d)", red, EVENT("(GLubyte red = %d, GLubyte green = %d, GLubyte blue = %d, GLubyte alpha = %d)", red,
green, blue, alpha); green, blue, alpha);
...@@ -167,6 +176,7 @@ void GL_APIENTRY Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alph ...@@ -167,6 +176,7 @@ void GL_APIENTRY Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alph
void GL_APIENTRY Color4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) void GL_APIENTRY Color4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed red = 0x%X, GLfixed green = 0x%X, GLfixed blue = 0x%X, GLfixed alpha = 0x%X)", EVENT("(GLfixed red = 0x%X, GLfixed green = 0x%X, GLfixed blue = 0x%X, GLfixed alpha = 0x%X)",
red, green, blue, alpha); red, green, blue, alpha);
...@@ -184,6 +194,7 @@ void GL_APIENTRY Color4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha ...@@ -184,6 +194,7 @@ void GL_APIENTRY Color4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha
void GL_APIENTRY ColorPointer(GLint size, GLenum type, GLsizei stride, const void *pointer) void GL_APIENTRY ColorPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void *pointer = 0x%0.8p)", "(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void *pointer = 0x%0.8p)",
size, type, stride, pointer); size, type, stride, pointer);
...@@ -202,6 +213,7 @@ void GL_APIENTRY ColorPointer(GLint size, GLenum type, GLsizei stride, const voi ...@@ -202,6 +213,7 @@ void GL_APIENTRY ColorPointer(GLint size, GLenum type, GLsizei stride, const voi
void GL_APIENTRY DepthRangex(GLfixed n, GLfixed f) void GL_APIENTRY DepthRangex(GLfixed n, GLfixed f)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed n = 0x%X, GLfixed f = 0x%X)", n, f); EVENT("(GLfixed n = 0x%X, GLfixed f = 0x%X)", n, f);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -218,6 +230,7 @@ void GL_APIENTRY DepthRangex(GLfixed n, GLfixed f) ...@@ -218,6 +230,7 @@ void GL_APIENTRY DepthRangex(GLfixed n, GLfixed f)
void GL_APIENTRY DisableClientState(GLenum array) void GL_APIENTRY DisableClientState(GLenum array)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum array = 0x%X)", array); EVENT("(GLenum array = 0x%X)", array);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -235,6 +248,7 @@ void GL_APIENTRY DisableClientState(GLenum array) ...@@ -235,6 +248,7 @@ void GL_APIENTRY DisableClientState(GLenum array)
void GL_APIENTRY EnableClientState(GLenum array) void GL_APIENTRY EnableClientState(GLenum array)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum array = 0x%X)", array); EVENT("(GLenum array = 0x%X)", array);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -252,6 +266,7 @@ void GL_APIENTRY EnableClientState(GLenum array) ...@@ -252,6 +266,7 @@ void GL_APIENTRY EnableClientState(GLenum array)
void GL_APIENTRY Fogf(GLenum pname, GLfloat param) void GL_APIENTRY Fogf(GLenum pname, GLfloat param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLfloat param = %f)", pname, param); EVENT("(GLenum pname = 0x%X, GLfloat param = %f)", pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -268,6 +283,7 @@ void GL_APIENTRY Fogf(GLenum pname, GLfloat param) ...@@ -268,6 +283,7 @@ void GL_APIENTRY Fogf(GLenum pname, GLfloat param)
void GL_APIENTRY Fogfv(GLenum pname, const GLfloat *params) void GL_APIENTRY Fogfv(GLenum pname, const GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", pname, params); EVENT("(GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", pname, params);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -284,6 +300,7 @@ void GL_APIENTRY Fogfv(GLenum pname, const GLfloat *params) ...@@ -284,6 +300,7 @@ void GL_APIENTRY Fogfv(GLenum pname, const GLfloat *params)
void GL_APIENTRY Fogx(GLenum pname, GLfixed param) void GL_APIENTRY Fogx(GLenum pname, GLfixed param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLfixed param = 0x%X)", pname, param); EVENT("(GLenum pname = 0x%X, GLfixed param = 0x%X)", pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -300,6 +317,7 @@ void GL_APIENTRY Fogx(GLenum pname, GLfixed param) ...@@ -300,6 +317,7 @@ void GL_APIENTRY Fogx(GLenum pname, GLfixed param)
void GL_APIENTRY Fogxv(GLenum pname, const GLfixed *param) void GL_APIENTRY Fogxv(GLenum pname, const GLfixed *param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, const GLfixed *param = 0x%0.8p)", pname, param); EVENT("(GLenum pname = 0x%X, const GLfixed *param = 0x%0.8p)", pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -316,6 +334,7 @@ void GL_APIENTRY Fogxv(GLenum pname, const GLfixed *param) ...@@ -316,6 +334,7 @@ void GL_APIENTRY Fogxv(GLenum pname, const GLfixed *param)
void GL_APIENTRY Frustumf(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f) void GL_APIENTRY Frustumf(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLfloat l = %f, GLfloat r = %f, GLfloat b = %f, GLfloat t = %f, GLfloat n = %f, GLfloat " "(GLfloat l = %f, GLfloat r = %f, GLfloat b = %f, GLfloat t = %f, GLfloat n = %f, GLfloat "
"f = %f)", "f = %f)",
...@@ -335,6 +354,7 @@ void GL_APIENTRY Frustumf(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, ...@@ -335,6 +354,7 @@ void GL_APIENTRY Frustumf(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n,
void GL_APIENTRY Frustumx(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f) void GL_APIENTRY Frustumx(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLfixed l = 0x%X, GLfixed r = 0x%X, GLfixed b = 0x%X, GLfixed t = 0x%X, GLfixed n = " "(GLfixed l = 0x%X, GLfixed r = 0x%X, GLfixed b = 0x%X, GLfixed t = 0x%X, GLfixed n = "
"0x%X, GLfixed f = 0x%X)", "0x%X, GLfixed f = 0x%X)",
...@@ -354,6 +374,7 @@ void GL_APIENTRY Frustumx(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, ...@@ -354,6 +374,7 @@ void GL_APIENTRY Frustumx(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n,
void GL_APIENTRY GetClipPlanef(GLenum plane, GLfloat *equation) void GL_APIENTRY GetClipPlanef(GLenum plane, GLfloat *equation)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum plane = 0x%X, GLfloat *equation = 0x%0.8p)", plane, equation); EVENT("(GLenum plane = 0x%X, GLfloat *equation = 0x%0.8p)", plane, equation);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -370,6 +391,7 @@ void GL_APIENTRY GetClipPlanef(GLenum plane, GLfloat *equation) ...@@ -370,6 +391,7 @@ void GL_APIENTRY GetClipPlanef(GLenum plane, GLfloat *equation)
void GL_APIENTRY GetClipPlanex(GLenum plane, GLfixed *equation) void GL_APIENTRY GetClipPlanex(GLenum plane, GLfixed *equation)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum plane = 0x%X, GLfixed *equation = 0x%0.8p)", plane, equation); EVENT("(GLenum plane = 0x%X, GLfixed *equation = 0x%0.8p)", plane, equation);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -386,6 +408,7 @@ void GL_APIENTRY GetClipPlanex(GLenum plane, GLfixed *equation) ...@@ -386,6 +408,7 @@ void GL_APIENTRY GetClipPlanex(GLenum plane, GLfixed *equation)
void GL_APIENTRY GetFixedv(GLenum pname, GLfixed *params) void GL_APIENTRY GetFixedv(GLenum pname, GLfixed *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", pname, params); EVENT("(GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", pname, params);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -402,6 +425,7 @@ void GL_APIENTRY GetFixedv(GLenum pname, GLfixed *params) ...@@ -402,6 +425,7 @@ void GL_APIENTRY GetFixedv(GLenum pname, GLfixed *params)
void GL_APIENTRY GetLightfv(GLenum light, GLenum pname, GLfloat *params) void GL_APIENTRY GetLightfv(GLenum light, GLenum pname, GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", light, pname, EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", light, pname,
params); params);
...@@ -420,6 +444,7 @@ void GL_APIENTRY GetLightfv(GLenum light, GLenum pname, GLfloat *params) ...@@ -420,6 +444,7 @@ void GL_APIENTRY GetLightfv(GLenum light, GLenum pname, GLfloat *params)
void GL_APIENTRY GetLightxv(GLenum light, GLenum pname, GLfixed *params) void GL_APIENTRY GetLightxv(GLenum light, GLenum pname, GLfixed *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", light, pname, EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", light, pname,
params); params);
...@@ -438,6 +463,7 @@ void GL_APIENTRY GetLightxv(GLenum light, GLenum pname, GLfixed *params) ...@@ -438,6 +463,7 @@ void GL_APIENTRY GetLightxv(GLenum light, GLenum pname, GLfixed *params)
void GL_APIENTRY GetMaterialfv(GLenum face, GLenum pname, GLfloat *params) void GL_APIENTRY GetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", face, pname, EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", face, pname,
params); params);
...@@ -456,6 +482,7 @@ void GL_APIENTRY GetMaterialfv(GLenum face, GLenum pname, GLfloat *params) ...@@ -456,6 +482,7 @@ void GL_APIENTRY GetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
void GL_APIENTRY GetMaterialxv(GLenum face, GLenum pname, GLfixed *params) void GL_APIENTRY GetMaterialxv(GLenum face, GLenum pname, GLfixed *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", face, pname, EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", face, pname,
params); params);
...@@ -474,6 +501,7 @@ void GL_APIENTRY GetMaterialxv(GLenum face, GLenum pname, GLfixed *params) ...@@ -474,6 +501,7 @@ void GL_APIENTRY GetMaterialxv(GLenum face, GLenum pname, GLfixed *params)
void GL_APIENTRY GetPointerv(GLenum pname, void **params) void GL_APIENTRY GetPointerv(GLenum pname, void **params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, void **params = 0x%0.8p)", pname, params); EVENT("(GLenum pname = 0x%X, void **params = 0x%0.8p)", pname, params);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -490,6 +518,7 @@ void GL_APIENTRY GetPointerv(GLenum pname, void **params) ...@@ -490,6 +518,7 @@ void GL_APIENTRY GetPointerv(GLenum pname, void **params)
void GL_APIENTRY GetTexEnvfv(GLenum target, GLenum pname, GLfloat *params) void GL_APIENTRY GetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", target, pname,
params); params);
...@@ -510,6 +539,7 @@ void GL_APIENTRY GetTexEnvfv(GLenum target, GLenum pname, GLfloat *params) ...@@ -510,6 +539,7 @@ void GL_APIENTRY GetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
void GL_APIENTRY GetTexEnviv(GLenum target, GLenum pname, GLint *params) void GL_APIENTRY GetTexEnviv(GLenum target, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname,
params); params);
...@@ -530,6 +560,7 @@ void GL_APIENTRY GetTexEnviv(GLenum target, GLenum pname, GLint *params) ...@@ -530,6 +560,7 @@ void GL_APIENTRY GetTexEnviv(GLenum target, GLenum pname, GLint *params)
void GL_APIENTRY GetTexEnvxv(GLenum target, GLenum pname, GLfixed *params) void GL_APIENTRY GetTexEnvxv(GLenum target, GLenum pname, GLfixed *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", target, pname,
params); params);
...@@ -550,6 +581,7 @@ void GL_APIENTRY GetTexEnvxv(GLenum target, GLenum pname, GLfixed *params) ...@@ -550,6 +581,7 @@ void GL_APIENTRY GetTexEnvxv(GLenum target, GLenum pname, GLfixed *params)
void GL_APIENTRY GetTexParameterxv(GLenum target, GLenum pname, GLfixed *params) void GL_APIENTRY GetTexParameterxv(GLenum target, GLenum pname, GLfixed *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfixed *params = 0x%0.8p)", target, pname,
params); params);
...@@ -569,6 +601,7 @@ void GL_APIENTRY GetTexParameterxv(GLenum target, GLenum pname, GLfixed *params) ...@@ -569,6 +601,7 @@ void GL_APIENTRY GetTexParameterxv(GLenum target, GLenum pname, GLfixed *params)
void GL_APIENTRY LightModelf(GLenum pname, GLfloat param) void GL_APIENTRY LightModelf(GLenum pname, GLfloat param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLfloat param = %f)", pname, param); EVENT("(GLenum pname = 0x%X, GLfloat param = %f)", pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -585,6 +618,7 @@ void GL_APIENTRY LightModelf(GLenum pname, GLfloat param) ...@@ -585,6 +618,7 @@ void GL_APIENTRY LightModelf(GLenum pname, GLfloat param)
void GL_APIENTRY LightModelfv(GLenum pname, const GLfloat *params) void GL_APIENTRY LightModelfv(GLenum pname, const GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", pname, params); EVENT("(GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", pname, params);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -601,6 +635,7 @@ void GL_APIENTRY LightModelfv(GLenum pname, const GLfloat *params) ...@@ -601,6 +635,7 @@ void GL_APIENTRY LightModelfv(GLenum pname, const GLfloat *params)
void GL_APIENTRY LightModelx(GLenum pname, GLfixed param) void GL_APIENTRY LightModelx(GLenum pname, GLfixed param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLfixed param = 0x%X)", pname, param); EVENT("(GLenum pname = 0x%X, GLfixed param = 0x%X)", pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -617,6 +652,7 @@ void GL_APIENTRY LightModelx(GLenum pname, GLfixed param) ...@@ -617,6 +652,7 @@ void GL_APIENTRY LightModelx(GLenum pname, GLfixed param)
void GL_APIENTRY LightModelxv(GLenum pname, const GLfixed *param) void GL_APIENTRY LightModelxv(GLenum pname, const GLfixed *param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, const GLfixed *param = 0x%0.8p)", pname, param); EVENT("(GLenum pname = 0x%X, const GLfixed *param = 0x%0.8p)", pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -633,6 +669,7 @@ void GL_APIENTRY LightModelxv(GLenum pname, const GLfixed *param) ...@@ -633,6 +669,7 @@ void GL_APIENTRY LightModelxv(GLenum pname, const GLfixed *param)
void GL_APIENTRY Lightf(GLenum light, GLenum pname, GLfloat param) void GL_APIENTRY Lightf(GLenum light, GLenum pname, GLfloat param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, GLfloat param = %f)", light, pname, param); EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, GLfloat param = %f)", light, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -650,6 +687,7 @@ void GL_APIENTRY Lightf(GLenum light, GLenum pname, GLfloat param) ...@@ -650,6 +687,7 @@ void GL_APIENTRY Lightf(GLenum light, GLenum pname, GLfloat param)
void GL_APIENTRY Lightfv(GLenum light, GLenum pname, const GLfloat *params) void GL_APIENTRY Lightfv(GLenum light, GLenum pname, const GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", light, EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", light,
pname, params); pname, params);
...@@ -668,6 +706,7 @@ void GL_APIENTRY Lightfv(GLenum light, GLenum pname, const GLfloat *params) ...@@ -668,6 +706,7 @@ void GL_APIENTRY Lightfv(GLenum light, GLenum pname, const GLfloat *params)
void GL_APIENTRY Lightx(GLenum light, GLenum pname, GLfixed param) void GL_APIENTRY Lightx(GLenum light, GLenum pname, GLfixed param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, GLfixed param = 0x%X)", light, pname, param); EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, GLfixed param = 0x%X)", light, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -685,6 +724,7 @@ void GL_APIENTRY Lightx(GLenum light, GLenum pname, GLfixed param) ...@@ -685,6 +724,7 @@ void GL_APIENTRY Lightx(GLenum light, GLenum pname, GLfixed param)
void GL_APIENTRY Lightxv(GLenum light, GLenum pname, const GLfixed *params) void GL_APIENTRY Lightxv(GLenum light, GLenum pname, const GLfixed *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, const GLfixed *params = 0x%0.8p)", light, EVENT("(GLenum light = 0x%X, GLenum pname = 0x%X, const GLfixed *params = 0x%0.8p)", light,
pname, params); pname, params);
...@@ -703,6 +743,7 @@ void GL_APIENTRY Lightxv(GLenum light, GLenum pname, const GLfixed *params) ...@@ -703,6 +743,7 @@ void GL_APIENTRY Lightxv(GLenum light, GLenum pname, const GLfixed *params)
void GL_APIENTRY LineWidthx(GLfixed width) void GL_APIENTRY LineWidthx(GLfixed width)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed width = 0x%X)", width); EVENT("(GLfixed width = 0x%X)", width);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -719,6 +760,7 @@ void GL_APIENTRY LineWidthx(GLfixed width) ...@@ -719,6 +760,7 @@ void GL_APIENTRY LineWidthx(GLfixed width)
void GL_APIENTRY LoadIdentity() void GL_APIENTRY LoadIdentity()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -735,6 +777,7 @@ void GL_APIENTRY LoadIdentity() ...@@ -735,6 +777,7 @@ void GL_APIENTRY LoadIdentity()
void GL_APIENTRY LoadMatrixf(const GLfloat *m) void GL_APIENTRY LoadMatrixf(const GLfloat *m)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(const GLfloat *m = 0x%0.8p)", m); EVENT("(const GLfloat *m = 0x%0.8p)", m);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -751,6 +794,7 @@ void GL_APIENTRY LoadMatrixf(const GLfloat *m) ...@@ -751,6 +794,7 @@ void GL_APIENTRY LoadMatrixf(const GLfloat *m)
void GL_APIENTRY LoadMatrixx(const GLfixed *m) void GL_APIENTRY LoadMatrixx(const GLfixed *m)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(const GLfixed *m = 0x%0.8p)", m); EVENT("(const GLfixed *m = 0x%0.8p)", m);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -767,6 +811,7 @@ void GL_APIENTRY LoadMatrixx(const GLfixed *m) ...@@ -767,6 +811,7 @@ void GL_APIENTRY LoadMatrixx(const GLfixed *m)
void GL_APIENTRY LogicOp(GLenum opcode) void GL_APIENTRY LogicOp(GLenum opcode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum opcode = 0x%X)", opcode); EVENT("(GLenum opcode = 0x%X)", opcode);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -784,6 +829,7 @@ void GL_APIENTRY LogicOp(GLenum opcode) ...@@ -784,6 +829,7 @@ void GL_APIENTRY LogicOp(GLenum opcode)
void GL_APIENTRY Materialf(GLenum face, GLenum pname, GLfloat param) void GL_APIENTRY Materialf(GLenum face, GLenum pname, GLfloat param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, GLfloat param = %f)", face, pname, param); EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, GLfloat param = %f)", face, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -801,6 +847,7 @@ void GL_APIENTRY Materialf(GLenum face, GLenum pname, GLfloat param) ...@@ -801,6 +847,7 @@ void GL_APIENTRY Materialf(GLenum face, GLenum pname, GLfloat param)
void GL_APIENTRY Materialfv(GLenum face, GLenum pname, const GLfloat *params) void GL_APIENTRY Materialfv(GLenum face, GLenum pname, const GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", face, pname, EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", face, pname,
params); params);
...@@ -819,6 +866,7 @@ void GL_APIENTRY Materialfv(GLenum face, GLenum pname, const GLfloat *params) ...@@ -819,6 +866,7 @@ void GL_APIENTRY Materialfv(GLenum face, GLenum pname, const GLfloat *params)
void GL_APIENTRY Materialx(GLenum face, GLenum pname, GLfixed param) void GL_APIENTRY Materialx(GLenum face, GLenum pname, GLfixed param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, GLfixed param = 0x%X)", face, pname, param); EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, GLfixed param = 0x%X)", face, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -836,6 +884,7 @@ void GL_APIENTRY Materialx(GLenum face, GLenum pname, GLfixed param) ...@@ -836,6 +884,7 @@ void GL_APIENTRY Materialx(GLenum face, GLenum pname, GLfixed param)
void GL_APIENTRY Materialxv(GLenum face, GLenum pname, const GLfixed *param) void GL_APIENTRY Materialxv(GLenum face, GLenum pname, const GLfixed *param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, const GLfixed *param = 0x%0.8p)", face, pname, EVENT("(GLenum face = 0x%X, GLenum pname = 0x%X, const GLfixed *param = 0x%0.8p)", face, pname,
param); param);
...@@ -854,6 +903,7 @@ void GL_APIENTRY Materialxv(GLenum face, GLenum pname, const GLfixed *param) ...@@ -854,6 +903,7 @@ void GL_APIENTRY Materialxv(GLenum face, GLenum pname, const GLfixed *param)
void GL_APIENTRY MatrixMode(GLenum mode) void GL_APIENTRY MatrixMode(GLenum mode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum mode = 0x%X)", mode); EVENT("(GLenum mode = 0x%X)", mode);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -871,6 +921,7 @@ void GL_APIENTRY MatrixMode(GLenum mode) ...@@ -871,6 +921,7 @@ void GL_APIENTRY MatrixMode(GLenum mode)
void GL_APIENTRY MultMatrixf(const GLfloat *m) void GL_APIENTRY MultMatrixf(const GLfloat *m)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(const GLfloat *m = 0x%0.8p)", m); EVENT("(const GLfloat *m = 0x%0.8p)", m);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -887,6 +938,7 @@ void GL_APIENTRY MultMatrixf(const GLfloat *m) ...@@ -887,6 +938,7 @@ void GL_APIENTRY MultMatrixf(const GLfloat *m)
void GL_APIENTRY MultMatrixx(const GLfixed *m) void GL_APIENTRY MultMatrixx(const GLfixed *m)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(const GLfixed *m = 0x%0.8p)", m); EVENT("(const GLfixed *m = 0x%0.8p)", m);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -903,6 +955,7 @@ void GL_APIENTRY MultMatrixx(const GLfixed *m) ...@@ -903,6 +955,7 @@ void GL_APIENTRY MultMatrixx(const GLfixed *m)
void GL_APIENTRY MultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) void GL_APIENTRY MultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLfloat s = %f, GLfloat t = %f, GLfloat r = %f, GLfloat q = %f)", EVENT("(GLenum target = 0x%X, GLfloat s = %f, GLfloat t = %f, GLfloat r = %f, GLfloat q = %f)",
target, s, t, r, q); target, s, t, r, q);
...@@ -920,6 +973,7 @@ void GL_APIENTRY MultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, ...@@ -920,6 +973,7 @@ void GL_APIENTRY MultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r,
void GL_APIENTRY MultiTexCoord4x(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q) void GL_APIENTRY MultiTexCoord4x(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum texture = 0x%X, GLfixed s = 0x%X, GLfixed t = 0x%X, GLfixed r = 0x%X, GLfixed q = " "(GLenum texture = 0x%X, GLfixed s = 0x%X, GLfixed t = 0x%X, GLfixed r = 0x%X, GLfixed q = "
"0x%X)", "0x%X)",
...@@ -939,6 +993,7 @@ void GL_APIENTRY MultiTexCoord4x(GLenum texture, GLfixed s, GLfixed t, GLfixed r ...@@ -939,6 +993,7 @@ void GL_APIENTRY MultiTexCoord4x(GLenum texture, GLfixed s, GLfixed t, GLfixed r
void GL_APIENTRY Normal3f(GLfloat nx, GLfloat ny, GLfloat nz) void GL_APIENTRY Normal3f(GLfloat nx, GLfloat ny, GLfloat nz)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat nx = %f, GLfloat ny = %f, GLfloat nz = %f)", nx, ny, nz); EVENT("(GLfloat nx = %f, GLfloat ny = %f, GLfloat nz = %f)", nx, ny, nz);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -955,6 +1010,7 @@ void GL_APIENTRY Normal3f(GLfloat nx, GLfloat ny, GLfloat nz) ...@@ -955,6 +1010,7 @@ void GL_APIENTRY Normal3f(GLfloat nx, GLfloat ny, GLfloat nz)
void GL_APIENTRY Normal3x(GLfixed nx, GLfixed ny, GLfixed nz) void GL_APIENTRY Normal3x(GLfixed nx, GLfixed ny, GLfixed nz)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed nx = 0x%X, GLfixed ny = 0x%X, GLfixed nz = 0x%X)", nx, ny, nz); EVENT("(GLfixed nx = 0x%X, GLfixed ny = 0x%X, GLfixed nz = 0x%X)", nx, ny, nz);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -971,6 +1027,7 @@ void GL_APIENTRY Normal3x(GLfixed nx, GLfixed ny, GLfixed nz) ...@@ -971,6 +1027,7 @@ void GL_APIENTRY Normal3x(GLfixed nx, GLfixed ny, GLfixed nz)
void GL_APIENTRY NormalPointer(GLenum type, GLsizei stride, const void *pointer) void GL_APIENTRY NormalPointer(GLenum type, GLsizei stride, const void *pointer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum type = 0x%X, GLsizei stride = %d, const void *pointer = 0x%0.8p)", type, stride, EVENT("(GLenum type = 0x%X, GLsizei stride = %d, const void *pointer = 0x%0.8p)", type, stride,
pointer); pointer);
...@@ -988,6 +1045,7 @@ void GL_APIENTRY NormalPointer(GLenum type, GLsizei stride, const void *pointer) ...@@ -988,6 +1045,7 @@ void GL_APIENTRY NormalPointer(GLenum type, GLsizei stride, const void *pointer)
void GL_APIENTRY Orthof(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f) void GL_APIENTRY Orthof(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLfloat l = %f, GLfloat r = %f, GLfloat b = %f, GLfloat t = %f, GLfloat n = %f, GLfloat " "(GLfloat l = %f, GLfloat r = %f, GLfloat b = %f, GLfloat t = %f, GLfloat n = %f, GLfloat "
"f = %f)", "f = %f)",
...@@ -1007,6 +1065,7 @@ void GL_APIENTRY Orthof(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, G ...@@ -1007,6 +1065,7 @@ void GL_APIENTRY Orthof(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, G
void GL_APIENTRY Orthox(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f) void GL_APIENTRY Orthox(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLfixed l = 0x%X, GLfixed r = 0x%X, GLfixed b = 0x%X, GLfixed t = 0x%X, GLfixed n = " "(GLfixed l = 0x%X, GLfixed r = 0x%X, GLfixed b = 0x%X, GLfixed t = 0x%X, GLfixed n = "
"0x%X, GLfixed f = 0x%X)", "0x%X, GLfixed f = 0x%X)",
...@@ -1026,6 +1085,7 @@ void GL_APIENTRY Orthox(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, G ...@@ -1026,6 +1085,7 @@ void GL_APIENTRY Orthox(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, G
void GL_APIENTRY PointParameterf(GLenum pname, GLfloat param) void GL_APIENTRY PointParameterf(GLenum pname, GLfloat param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLfloat param = %f)", pname, param); EVENT("(GLenum pname = 0x%X, GLfloat param = %f)", pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1043,6 +1103,7 @@ void GL_APIENTRY PointParameterf(GLenum pname, GLfloat param) ...@@ -1043,6 +1103,7 @@ void GL_APIENTRY PointParameterf(GLenum pname, GLfloat param)
void GL_APIENTRY PointParameterfv(GLenum pname, const GLfloat *params) void GL_APIENTRY PointParameterfv(GLenum pname, const GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", pname, params); EVENT("(GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", pname, params);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1060,6 +1121,7 @@ void GL_APIENTRY PointParameterfv(GLenum pname, const GLfloat *params) ...@@ -1060,6 +1121,7 @@ void GL_APIENTRY PointParameterfv(GLenum pname, const GLfloat *params)
void GL_APIENTRY PointParameterx(GLenum pname, GLfixed param) void GL_APIENTRY PointParameterx(GLenum pname, GLfixed param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLfixed param = 0x%X)", pname, param); EVENT("(GLenum pname = 0x%X, GLfixed param = 0x%X)", pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1077,6 +1139,7 @@ void GL_APIENTRY PointParameterx(GLenum pname, GLfixed param) ...@@ -1077,6 +1139,7 @@ void GL_APIENTRY PointParameterx(GLenum pname, GLfixed param)
void GL_APIENTRY PointParameterxv(GLenum pname, const GLfixed *params) void GL_APIENTRY PointParameterxv(GLenum pname, const GLfixed *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, const GLfixed *params = 0x%0.8p)", pname, params); EVENT("(GLenum pname = 0x%X, const GLfixed *params = 0x%0.8p)", pname, params);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1094,6 +1157,7 @@ void GL_APIENTRY PointParameterxv(GLenum pname, const GLfixed *params) ...@@ -1094,6 +1157,7 @@ void GL_APIENTRY PointParameterxv(GLenum pname, const GLfixed *params)
void GL_APIENTRY PointSize(GLfloat size) void GL_APIENTRY PointSize(GLfloat size)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat size = %f)", size); EVENT("(GLfloat size = %f)", size);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1110,6 +1174,7 @@ void GL_APIENTRY PointSize(GLfloat size) ...@@ -1110,6 +1174,7 @@ void GL_APIENTRY PointSize(GLfloat size)
void GL_APIENTRY PointSizex(GLfixed size) void GL_APIENTRY PointSizex(GLfixed size)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed size = 0x%X)", size); EVENT("(GLfixed size = 0x%X)", size);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1126,6 +1191,7 @@ void GL_APIENTRY PointSizex(GLfixed size) ...@@ -1126,6 +1191,7 @@ void GL_APIENTRY PointSizex(GLfixed size)
void GL_APIENTRY PolygonOffsetx(GLfixed factor, GLfixed units) void GL_APIENTRY PolygonOffsetx(GLfixed factor, GLfixed units)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed factor = 0x%X, GLfixed units = 0x%X)", factor, units); EVENT("(GLfixed factor = 0x%X, GLfixed units = 0x%X)", factor, units);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1142,6 +1208,7 @@ void GL_APIENTRY PolygonOffsetx(GLfixed factor, GLfixed units) ...@@ -1142,6 +1208,7 @@ void GL_APIENTRY PolygonOffsetx(GLfixed factor, GLfixed units)
void GL_APIENTRY PopMatrix() void GL_APIENTRY PopMatrix()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1158,6 +1225,7 @@ void GL_APIENTRY PopMatrix() ...@@ -1158,6 +1225,7 @@ void GL_APIENTRY PopMatrix()
void GL_APIENTRY PushMatrix() void GL_APIENTRY PushMatrix()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1174,6 +1242,7 @@ void GL_APIENTRY PushMatrix() ...@@ -1174,6 +1242,7 @@ void GL_APIENTRY PushMatrix()
void GL_APIENTRY Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) void GL_APIENTRY Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat angle = %f, GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", angle, x, y, z); EVENT("(GLfloat angle = %f, GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", angle, x, y, z);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1190,6 +1259,7 @@ void GL_APIENTRY Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) ...@@ -1190,6 +1259,7 @@ void GL_APIENTRY Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
void GL_APIENTRY Rotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z) void GL_APIENTRY Rotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed angle = 0x%X, GLfixed x = 0x%X, GLfixed y = 0x%X, GLfixed z = 0x%X)", angle, x, EVENT("(GLfixed angle = 0x%X, GLfixed x = 0x%X, GLfixed y = 0x%X, GLfixed z = 0x%X)", angle, x,
y, z); y, z);
...@@ -1207,6 +1277,7 @@ void GL_APIENTRY Rotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z) ...@@ -1207,6 +1277,7 @@ void GL_APIENTRY Rotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
void GL_APIENTRY SampleCoveragex(GLclampx value, GLboolean invert) void GL_APIENTRY SampleCoveragex(GLclampx value, GLboolean invert)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLclampx value = 0x%X, GLboolean invert = %u)", value, invert); EVENT("(GLclampx value = 0x%X, GLboolean invert = %u)", value, invert);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1223,6 +1294,7 @@ void GL_APIENTRY SampleCoveragex(GLclampx value, GLboolean invert) ...@@ -1223,6 +1294,7 @@ void GL_APIENTRY SampleCoveragex(GLclampx value, GLboolean invert)
void GL_APIENTRY Scalef(GLfloat x, GLfloat y, GLfloat z) void GL_APIENTRY Scalef(GLfloat x, GLfloat y, GLfloat z)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", x, y, z); EVENT("(GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", x, y, z);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1239,6 +1311,7 @@ void GL_APIENTRY Scalef(GLfloat x, GLfloat y, GLfloat z) ...@@ -1239,6 +1311,7 @@ void GL_APIENTRY Scalef(GLfloat x, GLfloat y, GLfloat z)
void GL_APIENTRY Scalex(GLfixed x, GLfixed y, GLfixed z) void GL_APIENTRY Scalex(GLfixed x, GLfixed y, GLfixed z)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed x = 0x%X, GLfixed y = 0x%X, GLfixed z = 0x%X)", x, y, z); EVENT("(GLfixed x = 0x%X, GLfixed y = 0x%X, GLfixed z = 0x%X)", x, y, z);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1255,6 +1328,7 @@ void GL_APIENTRY Scalex(GLfixed x, GLfixed y, GLfixed z) ...@@ -1255,6 +1328,7 @@ void GL_APIENTRY Scalex(GLfixed x, GLfixed y, GLfixed z)
void GL_APIENTRY ShadeModel(GLenum mode) void GL_APIENTRY ShadeModel(GLenum mode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum mode = 0x%X)", mode); EVENT("(GLenum mode = 0x%X)", mode);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1272,6 +1346,7 @@ void GL_APIENTRY ShadeModel(GLenum mode) ...@@ -1272,6 +1346,7 @@ void GL_APIENTRY ShadeModel(GLenum mode)
void GL_APIENTRY TexCoordPointer(GLint size, GLenum type, GLsizei stride, const void *pointer) void GL_APIENTRY TexCoordPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void *pointer = 0x%0.8p)", "(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void *pointer = 0x%0.8p)",
size, type, stride, pointer); size, type, stride, pointer);
...@@ -1291,6 +1366,7 @@ void GL_APIENTRY TexCoordPointer(GLint size, GLenum type, GLsizei stride, const ...@@ -1291,6 +1366,7 @@ void GL_APIENTRY TexCoordPointer(GLint size, GLenum type, GLsizei stride, const
void GL_APIENTRY TexEnvf(GLenum target, GLenum pname, GLfloat param) void GL_APIENTRY TexEnvf(GLenum target, GLenum pname, GLfloat param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat param = %f)", target, pname, param); EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat param = %f)", target, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1309,6 +1385,7 @@ void GL_APIENTRY TexEnvf(GLenum target, GLenum pname, GLfloat param) ...@@ -1309,6 +1385,7 @@ void GL_APIENTRY TexEnvf(GLenum target, GLenum pname, GLfloat param)
void GL_APIENTRY TexEnvfv(GLenum target, GLenum pname, const GLfloat *params) void GL_APIENTRY TexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", target, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", target,
pname, params); pname, params);
...@@ -1329,6 +1406,7 @@ void GL_APIENTRY TexEnvfv(GLenum target, GLenum pname, const GLfloat *params) ...@@ -1329,6 +1406,7 @@ void GL_APIENTRY TexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
void GL_APIENTRY TexEnvi(GLenum target, GLenum pname, GLint param) void GL_APIENTRY TexEnvi(GLenum target, GLenum pname, GLint param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint param = %d)", target, pname, param); EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint param = %d)", target, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1347,6 +1425,7 @@ void GL_APIENTRY TexEnvi(GLenum target, GLenum pname, GLint param) ...@@ -1347,6 +1425,7 @@ void GL_APIENTRY TexEnvi(GLenum target, GLenum pname, GLint param)
void GL_APIENTRY TexEnviv(GLenum target, GLenum pname, const GLint *params) void GL_APIENTRY TexEnviv(GLenum target, GLenum pname, const GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLint *params = 0x%0.8p)", target, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLint *params = 0x%0.8p)", target,
pname, params); pname, params);
...@@ -1367,6 +1446,7 @@ void GL_APIENTRY TexEnviv(GLenum target, GLenum pname, const GLint *params) ...@@ -1367,6 +1446,7 @@ void GL_APIENTRY TexEnviv(GLenum target, GLenum pname, const GLint *params)
void GL_APIENTRY TexEnvx(GLenum target, GLenum pname, GLfixed param) void GL_APIENTRY TexEnvx(GLenum target, GLenum pname, GLfixed param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfixed param = 0x%X)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfixed param = 0x%X)", target, pname,
param); param);
...@@ -1386,6 +1466,7 @@ void GL_APIENTRY TexEnvx(GLenum target, GLenum pname, GLfixed param) ...@@ -1386,6 +1466,7 @@ void GL_APIENTRY TexEnvx(GLenum target, GLenum pname, GLfixed param)
void GL_APIENTRY TexEnvxv(GLenum target, GLenum pname, const GLfixed *params) void GL_APIENTRY TexEnvxv(GLenum target, GLenum pname, const GLfixed *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLfixed *params = 0x%0.8p)", target, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLfixed *params = 0x%0.8p)", target,
pname, params); pname, params);
...@@ -1406,6 +1487,7 @@ void GL_APIENTRY TexEnvxv(GLenum target, GLenum pname, const GLfixed *params) ...@@ -1406,6 +1487,7 @@ void GL_APIENTRY TexEnvxv(GLenum target, GLenum pname, const GLfixed *params)
void GL_APIENTRY TexParameterx(GLenum target, GLenum pname, GLfixed param) void GL_APIENTRY TexParameterx(GLenum target, GLenum pname, GLfixed param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfixed param = 0x%X)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfixed param = 0x%X)", target, pname,
param); param);
...@@ -1424,6 +1506,7 @@ void GL_APIENTRY TexParameterx(GLenum target, GLenum pname, GLfixed param) ...@@ -1424,6 +1506,7 @@ void GL_APIENTRY TexParameterx(GLenum target, GLenum pname, GLfixed param)
void GL_APIENTRY TexParameterxv(GLenum target, GLenum pname, const GLfixed *params) void GL_APIENTRY TexParameterxv(GLenum target, GLenum pname, const GLfixed *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLfixed *params = 0x%0.8p)", target, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLfixed *params = 0x%0.8p)", target,
pname, params); pname, params);
...@@ -1443,6 +1526,7 @@ void GL_APIENTRY TexParameterxv(GLenum target, GLenum pname, const GLfixed *para ...@@ -1443,6 +1526,7 @@ void GL_APIENTRY TexParameterxv(GLenum target, GLenum pname, const GLfixed *para
void GL_APIENTRY Translatef(GLfloat x, GLfloat y, GLfloat z) void GL_APIENTRY Translatef(GLfloat x, GLfloat y, GLfloat z)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", x, y, z); EVENT("(GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", x, y, z);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1459,6 +1543,7 @@ void GL_APIENTRY Translatef(GLfloat x, GLfloat y, GLfloat z) ...@@ -1459,6 +1543,7 @@ void GL_APIENTRY Translatef(GLfloat x, GLfloat y, GLfloat z)
void GL_APIENTRY Translatex(GLfixed x, GLfixed y, GLfixed z) void GL_APIENTRY Translatex(GLfixed x, GLfixed y, GLfixed z)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfixed x = 0x%X, GLfixed y = 0x%X, GLfixed z = 0x%X)", x, y, z); EVENT("(GLfixed x = 0x%X, GLfixed y = 0x%X, GLfixed z = 0x%X)", x, y, z);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1475,6 +1560,7 @@ void GL_APIENTRY Translatex(GLfixed x, GLfixed y, GLfixed z) ...@@ -1475,6 +1560,7 @@ void GL_APIENTRY Translatex(GLfixed x, GLfixed y, GLfixed z)
void GL_APIENTRY VertexPointer(GLint size, GLenum type, GLsizei stride, const void *pointer) void GL_APIENTRY VertexPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void *pointer = 0x%0.8p)", "(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void *pointer = 0x%0.8p)",
size, type, stride, pointer); size, type, stride, pointer);
......
...@@ -18,6 +18,7 @@ namespace gl ...@@ -18,6 +18,7 @@ namespace gl
{ {
void GL_APIENTRY ActiveTexture(GLenum texture) void GL_APIENTRY ActiveTexture(GLenum texture)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum texture = 0x%X)", texture); EVENT("(GLenum texture = 0x%X)", texture);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -34,6 +35,7 @@ void GL_APIENTRY ActiveTexture(GLenum texture) ...@@ -34,6 +35,7 @@ void GL_APIENTRY ActiveTexture(GLenum texture)
void GL_APIENTRY AttachShader(GLuint program, GLuint shader) void GL_APIENTRY AttachShader(GLuint program, GLuint shader)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLuint shader = %u)", program, shader); EVENT("(GLuint program = %u, GLuint shader = %u)", program, shader);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -50,6 +52,7 @@ void GL_APIENTRY AttachShader(GLuint program, GLuint shader) ...@@ -50,6 +52,7 @@ void GL_APIENTRY AttachShader(GLuint program, GLuint shader)
void GL_APIENTRY BindAttribLocation(GLuint program, GLuint index, const GLchar *name) void GL_APIENTRY BindAttribLocation(GLuint program, GLuint index, const GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLuint index = %u, const GLchar *name = 0x%0.8p)", program, index, EVENT("(GLuint program = %u, GLuint index = %u, const GLchar *name = 0x%0.8p)", program, index,
name); name);
...@@ -67,6 +70,7 @@ void GL_APIENTRY BindAttribLocation(GLuint program, GLuint index, const GLchar * ...@@ -67,6 +70,7 @@ void GL_APIENTRY BindAttribLocation(GLuint program, GLuint index, const GLchar *
void GL_APIENTRY BindBuffer(GLenum target, GLuint buffer) void GL_APIENTRY BindBuffer(GLenum target, GLuint buffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint buffer = %u)", target, buffer); EVENT("(GLenum target = 0x%X, GLuint buffer = %u)", target, buffer);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -84,6 +88,7 @@ void GL_APIENTRY BindBuffer(GLenum target, GLuint buffer) ...@@ -84,6 +88,7 @@ void GL_APIENTRY BindBuffer(GLenum target, GLuint buffer)
void GL_APIENTRY BindFramebuffer(GLenum target, GLuint framebuffer) void GL_APIENTRY BindFramebuffer(GLenum target, GLuint framebuffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint framebuffer = %u)", target, framebuffer); EVENT("(GLenum target = 0x%X, GLuint framebuffer = %u)", target, framebuffer);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -100,6 +105,7 @@ void GL_APIENTRY BindFramebuffer(GLenum target, GLuint framebuffer) ...@@ -100,6 +105,7 @@ void GL_APIENTRY BindFramebuffer(GLenum target, GLuint framebuffer)
void GL_APIENTRY BindRenderbuffer(GLenum target, GLuint renderbuffer) void GL_APIENTRY BindRenderbuffer(GLenum target, GLuint renderbuffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint renderbuffer = %u)", target, renderbuffer); EVENT("(GLenum target = 0x%X, GLuint renderbuffer = %u)", target, renderbuffer);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -116,6 +122,7 @@ void GL_APIENTRY BindRenderbuffer(GLenum target, GLuint renderbuffer) ...@@ -116,6 +122,7 @@ void GL_APIENTRY BindRenderbuffer(GLenum target, GLuint renderbuffer)
void GL_APIENTRY BindTexture(GLenum target, GLuint texture) void GL_APIENTRY BindTexture(GLenum target, GLuint texture)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint texture = %u)", target, texture); EVENT("(GLenum target = 0x%X, GLuint texture = %u)", target, texture);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -133,6 +140,7 @@ void GL_APIENTRY BindTexture(GLenum target, GLuint texture) ...@@ -133,6 +140,7 @@ void GL_APIENTRY BindTexture(GLenum target, GLuint texture)
void GL_APIENTRY BlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) void GL_APIENTRY BlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat red = %f, GLfloat green = %f, GLfloat blue = %f, GLfloat alpha = %f)", red, EVENT("(GLfloat red = %f, GLfloat green = %f, GLfloat blue = %f, GLfloat alpha = %f)", red,
green, blue, alpha); green, blue, alpha);
...@@ -150,6 +158,7 @@ void GL_APIENTRY BlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat al ...@@ -150,6 +158,7 @@ void GL_APIENTRY BlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat al
void GL_APIENTRY BlendEquation(GLenum mode) void GL_APIENTRY BlendEquation(GLenum mode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum mode = 0x%X)", mode); EVENT("(GLenum mode = 0x%X)", mode);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -166,6 +175,7 @@ void GL_APIENTRY BlendEquation(GLenum mode) ...@@ -166,6 +175,7 @@ void GL_APIENTRY BlendEquation(GLenum mode)
void GL_APIENTRY BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) void GL_APIENTRY BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum modeRGB = 0x%X, GLenum modeAlpha = 0x%X)", modeRGB, modeAlpha); EVENT("(GLenum modeRGB = 0x%X, GLenum modeAlpha = 0x%X)", modeRGB, modeAlpha);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -182,6 +192,7 @@ void GL_APIENTRY BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) ...@@ -182,6 +192,7 @@ void GL_APIENTRY BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
void GL_APIENTRY BlendFunc(GLenum sfactor, GLenum dfactor) void GL_APIENTRY BlendFunc(GLenum sfactor, GLenum dfactor)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum sfactor = 0x%X, GLenum dfactor = 0x%X)", sfactor, dfactor); EVENT("(GLenum sfactor = 0x%X, GLenum dfactor = 0x%X)", sfactor, dfactor);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -201,6 +212,7 @@ void GL_APIENTRY BlendFuncSeparate(GLenum sfactorRGB, ...@@ -201,6 +212,7 @@ void GL_APIENTRY BlendFuncSeparate(GLenum sfactorRGB,
GLenum sfactorAlpha, GLenum sfactorAlpha,
GLenum dfactorAlpha) GLenum dfactorAlpha)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum sfactorRGB = 0x%X, GLenum dfactorRGB = 0x%X, GLenum sfactorAlpha = 0x%X, GLenum " "(GLenum sfactorRGB = 0x%X, GLenum dfactorRGB = 0x%X, GLenum sfactorAlpha = 0x%X, GLenum "
"dfactorAlpha = 0x%X)", "dfactorAlpha = 0x%X)",
...@@ -222,6 +234,7 @@ void GL_APIENTRY BlendFuncSeparate(GLenum sfactorRGB, ...@@ -222,6 +234,7 @@ void GL_APIENTRY BlendFuncSeparate(GLenum sfactorRGB,
void GL_APIENTRY BufferData(GLenum target, GLsizeiptr size, const void *data, GLenum usage) void GL_APIENTRY BufferData(GLenum target, GLsizeiptr size, const void *data, GLenum usage)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLsizeiptr size = %d, const void *data = 0x%0.8p, GLenum usage = " "(GLenum target = 0x%X, GLsizeiptr size = %d, const void *data = 0x%0.8p, GLenum usage = "
"0x%X)", "0x%X)",
...@@ -244,6 +257,7 @@ void GL_APIENTRY BufferData(GLenum target, GLsizeiptr size, const void *data, GL ...@@ -244,6 +257,7 @@ void GL_APIENTRY BufferData(GLenum target, GLsizeiptr size, const void *data, GL
void GL_APIENTRY BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void *data) void GL_APIENTRY BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr size = %d, const void *data = " "(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr size = %d, const void *data = "
"0x%0.8p)", "0x%0.8p)",
...@@ -265,6 +279,7 @@ void GL_APIENTRY BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, ...@@ -265,6 +279,7 @@ void GL_APIENTRY BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size,
GLenum GL_APIENTRY CheckFramebufferStatus(GLenum target) GLenum GL_APIENTRY CheckFramebufferStatus(GLenum target)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X)", target); EVENT("(GLenum target = 0x%X)", target);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -283,6 +298,7 @@ GLenum GL_APIENTRY CheckFramebufferStatus(GLenum target) ...@@ -283,6 +298,7 @@ GLenum GL_APIENTRY CheckFramebufferStatus(GLenum target)
void GL_APIENTRY Clear(GLbitfield mask) void GL_APIENTRY Clear(GLbitfield mask)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLbitfield mask = 0x%X)", mask); EVENT("(GLbitfield mask = 0x%X)", mask);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -299,6 +315,7 @@ void GL_APIENTRY Clear(GLbitfield mask) ...@@ -299,6 +315,7 @@ void GL_APIENTRY Clear(GLbitfield mask)
void GL_APIENTRY ClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) void GL_APIENTRY ClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat red = %f, GLfloat green = %f, GLfloat blue = %f, GLfloat alpha = %f)", red, EVENT("(GLfloat red = %f, GLfloat green = %f, GLfloat blue = %f, GLfloat alpha = %f)", red,
green, blue, alpha); green, blue, alpha);
...@@ -316,6 +333,7 @@ void GL_APIENTRY ClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat al ...@@ -316,6 +333,7 @@ void GL_APIENTRY ClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat al
void GL_APIENTRY ClearDepthf(GLfloat d) void GL_APIENTRY ClearDepthf(GLfloat d)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat d = %f)", d); EVENT("(GLfloat d = %f)", d);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -332,6 +350,7 @@ void GL_APIENTRY ClearDepthf(GLfloat d) ...@@ -332,6 +350,7 @@ void GL_APIENTRY ClearDepthf(GLfloat d)
void GL_APIENTRY ClearStencil(GLint s) void GL_APIENTRY ClearStencil(GLint s)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint s = %d)", s); EVENT("(GLint s = %d)", s);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -348,6 +367,7 @@ void GL_APIENTRY ClearStencil(GLint s) ...@@ -348,6 +367,7 @@ void GL_APIENTRY ClearStencil(GLint s)
void GL_APIENTRY ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) void GL_APIENTRY ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLboolean red = %u, GLboolean green = %u, GLboolean blue = %u, GLboolean alpha = %u)", EVENT("(GLboolean red = %u, GLboolean green = %u, GLboolean blue = %u, GLboolean alpha = %u)",
red, green, blue, alpha); red, green, blue, alpha);
...@@ -365,6 +385,7 @@ void GL_APIENTRY ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboo ...@@ -365,6 +385,7 @@ void GL_APIENTRY ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboo
void GL_APIENTRY CompileShader(GLuint shader) void GL_APIENTRY CompileShader(GLuint shader)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint shader = %u)", shader); EVENT("(GLuint shader = %u)", shader);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -388,6 +409,7 @@ void GL_APIENTRY CompressedTexImage2D(GLenum target, ...@@ -388,6 +409,7 @@ void GL_APIENTRY CompressedTexImage2D(GLenum target,
GLsizei imageSize, GLsizei imageSize,
const void *data) const void *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLenum internalformat = 0x%X, GLsizei width = " "(GLenum target = 0x%X, GLint level = %d, GLenum internalformat = 0x%X, GLsizei width = "
"%d, GLsizei height = %d, GLint border = %d, GLsizei imageSize = %d, const void *data = " "%d, GLsizei height = %d, GLint border = %d, GLsizei imageSize = %d, const void *data = "
...@@ -421,6 +443,7 @@ void GL_APIENTRY CompressedTexSubImage2D(GLenum target, ...@@ -421,6 +443,7 @@ void GL_APIENTRY CompressedTexSubImage2D(GLenum target,
GLsizei imageSize, GLsizei imageSize,
const void *data) const void *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLsizei " "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLsizei "
"width = %d, GLsizei height = %d, GLenum format = 0x%X, GLsizei imageSize = %d, const void " "width = %d, GLsizei height = %d, GLenum format = 0x%X, GLsizei imageSize = %d, const void "
...@@ -453,6 +476,7 @@ void GL_APIENTRY CopyTexImage2D(GLenum target, ...@@ -453,6 +476,7 @@ void GL_APIENTRY CopyTexImage2D(GLenum target,
GLsizei height, GLsizei height,
GLint border) GLint border)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLenum internalformat = 0x%X, GLint x = %d, " "(GLenum target = 0x%X, GLint level = %d, GLenum internalformat = 0x%X, GLint x = %d, "
"GLint y = %d, GLsizei width = %d, GLsizei height = %d, GLint border = %d)", "GLint y = %d, GLsizei width = %d, GLsizei height = %d, GLint border = %d)",
...@@ -484,6 +508,7 @@ void GL_APIENTRY CopyTexSubImage2D(GLenum target, ...@@ -484,6 +508,7 @@ void GL_APIENTRY CopyTexSubImage2D(GLenum target,
GLsizei width, GLsizei width,
GLsizei height) GLsizei height)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint x " "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint x "
"= %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", "= %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)",
...@@ -507,6 +532,7 @@ void GL_APIENTRY CopyTexSubImage2D(GLenum target, ...@@ -507,6 +532,7 @@ void GL_APIENTRY CopyTexSubImage2D(GLenum target,
GLuint GL_APIENTRY CreateProgram() GLuint GL_APIENTRY CreateProgram()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -525,6 +551,7 @@ GLuint GL_APIENTRY CreateProgram() ...@@ -525,6 +551,7 @@ GLuint GL_APIENTRY CreateProgram()
GLuint GL_APIENTRY CreateShader(GLenum type) GLuint GL_APIENTRY CreateShader(GLenum type)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum type = 0x%X)", type); EVENT("(GLenum type = 0x%X)", type);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -544,6 +571,7 @@ GLuint GL_APIENTRY CreateShader(GLenum type) ...@@ -544,6 +571,7 @@ GLuint GL_APIENTRY CreateShader(GLenum type)
void GL_APIENTRY CullFace(GLenum mode) void GL_APIENTRY CullFace(GLenum mode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum mode = 0x%X)", mode); EVENT("(GLenum mode = 0x%X)", mode);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -561,6 +589,7 @@ void GL_APIENTRY CullFace(GLenum mode) ...@@ -561,6 +589,7 @@ void GL_APIENTRY CullFace(GLenum mode)
void GL_APIENTRY DeleteBuffers(GLsizei n, const GLuint *buffers) void GL_APIENTRY DeleteBuffers(GLsizei n, const GLuint *buffers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, const GLuint *buffers = 0x%0.8p)", n, buffers); EVENT("(GLsizei n = %d, const GLuint *buffers = 0x%0.8p)", n, buffers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -577,6 +606,7 @@ void GL_APIENTRY DeleteBuffers(GLsizei n, const GLuint *buffers) ...@@ -577,6 +606,7 @@ void GL_APIENTRY DeleteBuffers(GLsizei n, const GLuint *buffers)
void GL_APIENTRY DeleteFramebuffers(GLsizei n, const GLuint *framebuffers) void GL_APIENTRY DeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, const GLuint *framebuffers = 0x%0.8p)", n, framebuffers); EVENT("(GLsizei n = %d, const GLuint *framebuffers = 0x%0.8p)", n, framebuffers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -593,6 +623,7 @@ void GL_APIENTRY DeleteFramebuffers(GLsizei n, const GLuint *framebuffers) ...@@ -593,6 +623,7 @@ void GL_APIENTRY DeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
void GL_APIENTRY DeleteProgram(GLuint program) void GL_APIENTRY DeleteProgram(GLuint program)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u)", program); EVENT("(GLuint program = %u)", program);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -609,6 +640,7 @@ void GL_APIENTRY DeleteProgram(GLuint program) ...@@ -609,6 +640,7 @@ void GL_APIENTRY DeleteProgram(GLuint program)
void GL_APIENTRY DeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers) void GL_APIENTRY DeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, const GLuint *renderbuffers = 0x%0.8p)", n, renderbuffers); EVENT("(GLsizei n = %d, const GLuint *renderbuffers = 0x%0.8p)", n, renderbuffers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -625,6 +657,7 @@ void GL_APIENTRY DeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers) ...@@ -625,6 +657,7 @@ void GL_APIENTRY DeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
void GL_APIENTRY DeleteShader(GLuint shader) void GL_APIENTRY DeleteShader(GLuint shader)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint shader = %u)", shader); EVENT("(GLuint shader = %u)", shader);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -641,6 +674,7 @@ void GL_APIENTRY DeleteShader(GLuint shader) ...@@ -641,6 +674,7 @@ void GL_APIENTRY DeleteShader(GLuint shader)
void GL_APIENTRY DeleteTextures(GLsizei n, const GLuint *textures) void GL_APIENTRY DeleteTextures(GLsizei n, const GLuint *textures)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, const GLuint *textures = 0x%0.8p)", n, textures); EVENT("(GLsizei n = %d, const GLuint *textures = 0x%0.8p)", n, textures);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -657,6 +691,7 @@ void GL_APIENTRY DeleteTextures(GLsizei n, const GLuint *textures) ...@@ -657,6 +691,7 @@ void GL_APIENTRY DeleteTextures(GLsizei n, const GLuint *textures)
void GL_APIENTRY DepthFunc(GLenum func) void GL_APIENTRY DepthFunc(GLenum func)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum func = 0x%X)", func); EVENT("(GLenum func = 0x%X)", func);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -673,6 +708,7 @@ void GL_APIENTRY DepthFunc(GLenum func) ...@@ -673,6 +708,7 @@ void GL_APIENTRY DepthFunc(GLenum func)
void GL_APIENTRY DepthMask(GLboolean flag) void GL_APIENTRY DepthMask(GLboolean flag)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLboolean flag = %u)", flag); EVENT("(GLboolean flag = %u)", flag);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -689,6 +725,7 @@ void GL_APIENTRY DepthMask(GLboolean flag) ...@@ -689,6 +725,7 @@ void GL_APIENTRY DepthMask(GLboolean flag)
void GL_APIENTRY DepthRangef(GLfloat n, GLfloat f) void GL_APIENTRY DepthRangef(GLfloat n, GLfloat f)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat n = %f, GLfloat f = %f)", n, f); EVENT("(GLfloat n = %f, GLfloat f = %f)", n, f);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -705,6 +742,7 @@ void GL_APIENTRY DepthRangef(GLfloat n, GLfloat f) ...@@ -705,6 +742,7 @@ void GL_APIENTRY DepthRangef(GLfloat n, GLfloat f)
void GL_APIENTRY DetachShader(GLuint program, GLuint shader) void GL_APIENTRY DetachShader(GLuint program, GLuint shader)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLuint shader = %u)", program, shader); EVENT("(GLuint program = %u, GLuint shader = %u)", program, shader);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -721,6 +759,7 @@ void GL_APIENTRY DetachShader(GLuint program, GLuint shader) ...@@ -721,6 +759,7 @@ void GL_APIENTRY DetachShader(GLuint program, GLuint shader)
void GL_APIENTRY Disable(GLenum cap) void GL_APIENTRY Disable(GLenum cap)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum cap = 0x%X)", cap); EVENT("(GLenum cap = 0x%X)", cap);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -737,6 +776,7 @@ void GL_APIENTRY Disable(GLenum cap) ...@@ -737,6 +776,7 @@ void GL_APIENTRY Disable(GLenum cap)
void GL_APIENTRY DisableVertexAttribArray(GLuint index) void GL_APIENTRY DisableVertexAttribArray(GLuint index)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u)", index); EVENT("(GLuint index = %u)", index);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -753,6 +793,7 @@ void GL_APIENTRY DisableVertexAttribArray(GLuint index) ...@@ -753,6 +793,7 @@ void GL_APIENTRY DisableVertexAttribArray(GLuint index)
void GL_APIENTRY DrawArrays(GLenum mode, GLint first, GLsizei count) void GL_APIENTRY DrawArrays(GLenum mode, GLint first, GLsizei count)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum mode = 0x%X, GLint first = %d, GLsizei count = %d)", mode, first, count); EVENT("(GLenum mode = 0x%X, GLint first = %d, GLsizei count = %d)", mode, first, count);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -770,6 +811,7 @@ void GL_APIENTRY DrawArrays(GLenum mode, GLint first, GLsizei count) ...@@ -770,6 +811,7 @@ void GL_APIENTRY DrawArrays(GLenum mode, GLint first, GLsizei count)
void GL_APIENTRY DrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices) void GL_APIENTRY DrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum mode = 0x%X, GLsizei count = %d, GLenum type = 0x%X, const void *indices = " "(GLenum mode = 0x%X, GLsizei count = %d, GLenum type = 0x%X, const void *indices = "
"0x%0.8p)", "0x%0.8p)",
...@@ -791,6 +833,7 @@ void GL_APIENTRY DrawElements(GLenum mode, GLsizei count, GLenum type, const voi ...@@ -791,6 +833,7 @@ void GL_APIENTRY DrawElements(GLenum mode, GLsizei count, GLenum type, const voi
void GL_APIENTRY Enable(GLenum cap) void GL_APIENTRY Enable(GLenum cap)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum cap = 0x%X)", cap); EVENT("(GLenum cap = 0x%X)", cap);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -807,6 +850,7 @@ void GL_APIENTRY Enable(GLenum cap) ...@@ -807,6 +850,7 @@ void GL_APIENTRY Enable(GLenum cap)
void GL_APIENTRY EnableVertexAttribArray(GLuint index) void GL_APIENTRY EnableVertexAttribArray(GLuint index)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u)", index); EVENT("(GLuint index = %u)", index);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -823,6 +867,7 @@ void GL_APIENTRY EnableVertexAttribArray(GLuint index) ...@@ -823,6 +867,7 @@ void GL_APIENTRY EnableVertexAttribArray(GLuint index)
void GL_APIENTRY Finish() void GL_APIENTRY Finish()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -839,6 +884,7 @@ void GL_APIENTRY Finish() ...@@ -839,6 +884,7 @@ void GL_APIENTRY Finish()
void GL_APIENTRY Flush() void GL_APIENTRY Flush()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -858,6 +904,7 @@ void GL_APIENTRY FramebufferRenderbuffer(GLenum target, ...@@ -858,6 +904,7 @@ void GL_APIENTRY FramebufferRenderbuffer(GLenum target,
GLenum renderbuffertarget, GLenum renderbuffertarget,
GLuint renderbuffer) GLuint renderbuffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum renderbuffertarget = 0x%X, GLuint " "(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum renderbuffertarget = 0x%X, GLuint "
"renderbuffer = %u)", "renderbuffer = %u)",
...@@ -884,6 +931,7 @@ void GL_APIENTRY FramebufferTexture2D(GLenum target, ...@@ -884,6 +931,7 @@ void GL_APIENTRY FramebufferTexture2D(GLenum target,
GLuint texture, GLuint texture,
GLint level) GLint level)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum textarget = 0x%X, GLuint texture " "(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum textarget = 0x%X, GLuint texture "
"= %u, GLint level = %d)", "= %u, GLint level = %d)",
...@@ -907,6 +955,7 @@ void GL_APIENTRY FramebufferTexture2D(GLenum target, ...@@ -907,6 +955,7 @@ void GL_APIENTRY FramebufferTexture2D(GLenum target,
void GL_APIENTRY FrontFace(GLenum mode) void GL_APIENTRY FrontFace(GLenum mode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum mode = 0x%X)", mode); EVENT("(GLenum mode = 0x%X)", mode);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -923,6 +972,7 @@ void GL_APIENTRY FrontFace(GLenum mode) ...@@ -923,6 +972,7 @@ void GL_APIENTRY FrontFace(GLenum mode)
void GL_APIENTRY GenBuffers(GLsizei n, GLuint *buffers) void GL_APIENTRY GenBuffers(GLsizei n, GLuint *buffers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, GLuint *buffers = 0x%0.8p)", n, buffers); EVENT("(GLsizei n = %d, GLuint *buffers = 0x%0.8p)", n, buffers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -939,6 +989,7 @@ void GL_APIENTRY GenBuffers(GLsizei n, GLuint *buffers) ...@@ -939,6 +989,7 @@ void GL_APIENTRY GenBuffers(GLsizei n, GLuint *buffers)
void GL_APIENTRY GenFramebuffers(GLsizei n, GLuint *framebuffers) void GL_APIENTRY GenFramebuffers(GLsizei n, GLuint *framebuffers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, GLuint *framebuffers = 0x%0.8p)", n, framebuffers); EVENT("(GLsizei n = %d, GLuint *framebuffers = 0x%0.8p)", n, framebuffers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -955,6 +1006,7 @@ void GL_APIENTRY GenFramebuffers(GLsizei n, GLuint *framebuffers) ...@@ -955,6 +1006,7 @@ void GL_APIENTRY GenFramebuffers(GLsizei n, GLuint *framebuffers)
void GL_APIENTRY GenRenderbuffers(GLsizei n, GLuint *renderbuffers) void GL_APIENTRY GenRenderbuffers(GLsizei n, GLuint *renderbuffers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, GLuint *renderbuffers = 0x%0.8p)", n, renderbuffers); EVENT("(GLsizei n = %d, GLuint *renderbuffers = 0x%0.8p)", n, renderbuffers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -971,6 +1023,7 @@ void GL_APIENTRY GenRenderbuffers(GLsizei n, GLuint *renderbuffers) ...@@ -971,6 +1023,7 @@ void GL_APIENTRY GenRenderbuffers(GLsizei n, GLuint *renderbuffers)
void GL_APIENTRY GenTextures(GLsizei n, GLuint *textures) void GL_APIENTRY GenTextures(GLsizei n, GLuint *textures)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, GLuint *textures = 0x%0.8p)", n, textures); EVENT("(GLsizei n = %d, GLuint *textures = 0x%0.8p)", n, textures);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -987,6 +1040,7 @@ void GL_APIENTRY GenTextures(GLsizei n, GLuint *textures) ...@@ -987,6 +1040,7 @@ void GL_APIENTRY GenTextures(GLsizei n, GLuint *textures)
void GL_APIENTRY GenerateMipmap(GLenum target) void GL_APIENTRY GenerateMipmap(GLenum target)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X)", target); EVENT("(GLenum target = 0x%X)", target);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1010,6 +1064,7 @@ void GL_APIENTRY GetActiveAttrib(GLuint program, ...@@ -1010,6 +1064,7 @@ void GL_APIENTRY GetActiveAttrib(GLuint program,
GLenum *type, GLenum *type,
GLchar *name) GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLuint index = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, " "(GLuint program = %u, GLuint index = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, "
"GLint *size = 0x%0.8p, GLenum *type = 0x%0.8p, GLchar *name = 0x%0.8p)", "GLint *size = 0x%0.8p, GLenum *type = 0x%0.8p, GLchar *name = 0x%0.8p)",
...@@ -1037,6 +1092,7 @@ void GL_APIENTRY GetActiveUniform(GLuint program, ...@@ -1037,6 +1092,7 @@ void GL_APIENTRY GetActiveUniform(GLuint program,
GLenum *type, GLenum *type,
GLchar *name) GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLuint index = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, " "(GLuint program = %u, GLuint index = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, "
"GLint *size = 0x%0.8p, GLenum *type = 0x%0.8p, GLchar *name = 0x%0.8p)", "GLint *size = 0x%0.8p, GLenum *type = 0x%0.8p, GLchar *name = 0x%0.8p)",
...@@ -1061,6 +1117,7 @@ void GL_APIENTRY GetAttachedShaders(GLuint program, ...@@ -1061,6 +1117,7 @@ void GL_APIENTRY GetAttachedShaders(GLuint program,
GLsizei *count, GLsizei *count,
GLuint *shaders) GLuint *shaders)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLsizei maxCount = %d, GLsizei *count = 0x%0.8p, GLuint *shaders = " "(GLuint program = %u, GLsizei maxCount = %d, GLsizei *count = 0x%0.8p, GLuint *shaders = "
"0x%0.8p)", "0x%0.8p)",
...@@ -1081,6 +1138,7 @@ void GL_APIENTRY GetAttachedShaders(GLuint program, ...@@ -1081,6 +1138,7 @@ void GL_APIENTRY GetAttachedShaders(GLuint program,
GLint GL_APIENTRY GetAttribLocation(GLuint program, const GLchar *name) GLint GL_APIENTRY GetAttribLocation(GLuint program, const GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name); EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1099,6 +1157,7 @@ GLint GL_APIENTRY GetAttribLocation(GLuint program, const GLchar *name) ...@@ -1099,6 +1157,7 @@ GLint GL_APIENTRY GetAttribLocation(GLuint program, const GLchar *name)
void GL_APIENTRY GetBooleanv(GLenum pname, GLboolean *data) void GL_APIENTRY GetBooleanv(GLenum pname, GLboolean *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLboolean *data = 0x%0.8p)", pname, data); EVENT("(GLenum pname = 0x%X, GLboolean *data = 0x%0.8p)", pname, data);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1115,6 +1174,7 @@ void GL_APIENTRY GetBooleanv(GLenum pname, GLboolean *data) ...@@ -1115,6 +1174,7 @@ void GL_APIENTRY GetBooleanv(GLenum pname, GLboolean *data)
void GL_APIENTRY GetBufferParameteriv(GLenum target, GLenum pname, GLint *params) void GL_APIENTRY GetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname,
params); params);
...@@ -1134,6 +1194,7 @@ void GL_APIENTRY GetBufferParameteriv(GLenum target, GLenum pname, GLint *params ...@@ -1134,6 +1194,7 @@ void GL_APIENTRY GetBufferParameteriv(GLenum target, GLenum pname, GLint *params
GLenum GL_APIENTRY GetError() GLenum GL_APIENTRY GetError()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetGlobalContext(); Context *context = GetGlobalContext();
...@@ -1152,6 +1213,7 @@ GLenum GL_APIENTRY GetError() ...@@ -1152,6 +1213,7 @@ GLenum GL_APIENTRY GetError()
void GL_APIENTRY GetFloatv(GLenum pname, GLfloat *data) void GL_APIENTRY GetFloatv(GLenum pname, GLfloat *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLfloat *data = 0x%0.8p)", pname, data); EVENT("(GLenum pname = 0x%X, GLfloat *data = 0x%0.8p)", pname, data);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1171,6 +1233,7 @@ void GL_APIENTRY GetFramebufferAttachmentParameteriv(GLenum target, ...@@ -1171,6 +1233,7 @@ void GL_APIENTRY GetFramebufferAttachmentParameteriv(GLenum target,
GLenum pname, GLenum pname,
GLint *params) GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum pname = 0x%X, GLint *params = " "(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum pname = 0x%X, GLint *params = "
"0x%0.8p)", "0x%0.8p)",
...@@ -1192,6 +1255,7 @@ void GL_APIENTRY GetFramebufferAttachmentParameteriv(GLenum target, ...@@ -1192,6 +1255,7 @@ void GL_APIENTRY GetFramebufferAttachmentParameteriv(GLenum target,
void GL_APIENTRY GetIntegerv(GLenum pname, GLint *data) void GL_APIENTRY GetIntegerv(GLenum pname, GLint *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLint *data = 0x%0.8p)", pname, data); EVENT("(GLenum pname = 0x%X, GLint *data = 0x%0.8p)", pname, data);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1211,6 +1275,7 @@ void GL_APIENTRY GetProgramInfoLog(GLuint program, ...@@ -1211,6 +1275,7 @@ void GL_APIENTRY GetProgramInfoLog(GLuint program,
GLsizei *length, GLsizei *length,
GLchar *infoLog) GLchar *infoLog)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *infoLog = " "(GLuint program = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *infoLog = "
"0x%0.8p)", "0x%0.8p)",
...@@ -1231,6 +1296,7 @@ void GL_APIENTRY GetProgramInfoLog(GLuint program, ...@@ -1231,6 +1296,7 @@ void GL_APIENTRY GetProgramInfoLog(GLuint program,
void GL_APIENTRY GetProgramiv(GLuint program, GLenum pname, GLint *params) void GL_APIENTRY GetProgramiv(GLuint program, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", program, pname, EVENT("(GLuint program = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", program, pname,
params); params);
...@@ -1248,6 +1314,7 @@ void GL_APIENTRY GetProgramiv(GLuint program, GLenum pname, GLint *params) ...@@ -1248,6 +1314,7 @@ void GL_APIENTRY GetProgramiv(GLuint program, GLenum pname, GLint *params)
void GL_APIENTRY GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params) void GL_APIENTRY GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname,
params); params);
...@@ -1266,6 +1333,7 @@ void GL_APIENTRY GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint * ...@@ -1266,6 +1333,7 @@ void GL_APIENTRY GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *
void GL_APIENTRY GetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) void GL_APIENTRY GetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint shader = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *infoLog = " "(GLuint shader = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *infoLog = "
"0x%0.8p)", "0x%0.8p)",
...@@ -1289,6 +1357,7 @@ void GL_APIENTRY GetShaderPrecisionFormat(GLenum shadertype, ...@@ -1289,6 +1357,7 @@ void GL_APIENTRY GetShaderPrecisionFormat(GLenum shadertype,
GLint *range, GLint *range,
GLint *precision) GLint *precision)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum shadertype = 0x%X, GLenum precisiontype = 0x%X, GLint *range = 0x%0.8p, GLint " "(GLenum shadertype = 0x%X, GLenum precisiontype = 0x%X, GLint *range = 0x%0.8p, GLint "
"*precision = 0x%0.8p)", "*precision = 0x%0.8p)",
...@@ -1310,6 +1379,7 @@ void GL_APIENTRY GetShaderPrecisionFormat(GLenum shadertype, ...@@ -1310,6 +1379,7 @@ void GL_APIENTRY GetShaderPrecisionFormat(GLenum shadertype,
void GL_APIENTRY GetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source) void GL_APIENTRY GetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint shader = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *source = " "(GLuint shader = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *source = "
"0x%0.8p)", "0x%0.8p)",
...@@ -1330,6 +1400,7 @@ void GL_APIENTRY GetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length ...@@ -1330,6 +1400,7 @@ void GL_APIENTRY GetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length
void GL_APIENTRY GetShaderiv(GLuint shader, GLenum pname, GLint *params) void GL_APIENTRY GetShaderiv(GLuint shader, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint shader = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", shader, pname, EVENT("(GLuint shader = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", shader, pname,
params); params);
...@@ -1347,6 +1418,7 @@ void GL_APIENTRY GetShaderiv(GLuint shader, GLenum pname, GLint *params) ...@@ -1347,6 +1418,7 @@ void GL_APIENTRY GetShaderiv(GLuint shader, GLenum pname, GLint *params)
const GLubyte *GL_APIENTRY GetString(GLenum name) const GLubyte *GL_APIENTRY GetString(GLenum name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum name = 0x%X)", name); EVENT("(GLenum name = 0x%X)", name);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1365,6 +1437,7 @@ const GLubyte *GL_APIENTRY GetString(GLenum name) ...@@ -1365,6 +1437,7 @@ const GLubyte *GL_APIENTRY GetString(GLenum name)
void GL_APIENTRY GetTexParameterfv(GLenum target, GLenum pname, GLfloat *params) void GL_APIENTRY GetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", target, pname,
params); params);
...@@ -1384,6 +1457,7 @@ void GL_APIENTRY GetTexParameterfv(GLenum target, GLenum pname, GLfloat *params) ...@@ -1384,6 +1457,7 @@ void GL_APIENTRY GetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
void GL_APIENTRY GetTexParameteriv(GLenum target, GLenum pname, GLint *params) void GL_APIENTRY GetTexParameteriv(GLenum target, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname,
params); params);
...@@ -1403,6 +1477,7 @@ void GL_APIENTRY GetTexParameteriv(GLenum target, GLenum pname, GLint *params) ...@@ -1403,6 +1477,7 @@ void GL_APIENTRY GetTexParameteriv(GLenum target, GLenum pname, GLint *params)
GLint GL_APIENTRY GetUniformLocation(GLuint program, const GLchar *name) GLint GL_APIENTRY GetUniformLocation(GLuint program, const GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name); EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1421,6 +1496,7 @@ GLint GL_APIENTRY GetUniformLocation(GLuint program, const GLchar *name) ...@@ -1421,6 +1496,7 @@ GLint GL_APIENTRY GetUniformLocation(GLuint program, const GLchar *name)
void GL_APIENTRY GetUniformfv(GLuint program, GLint location, GLfloat *params) void GL_APIENTRY GetUniformfv(GLuint program, GLint location, GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLfloat *params = 0x%0.8p)", program, EVENT("(GLuint program = %u, GLint location = %d, GLfloat *params = 0x%0.8p)", program,
location, params); location, params);
...@@ -1438,6 +1514,7 @@ void GL_APIENTRY GetUniformfv(GLuint program, GLint location, GLfloat *params) ...@@ -1438,6 +1514,7 @@ void GL_APIENTRY GetUniformfv(GLuint program, GLint location, GLfloat *params)
void GL_APIENTRY GetUniformiv(GLuint program, GLint location, GLint *params) void GL_APIENTRY GetUniformiv(GLuint program, GLint location, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLint *params = 0x%0.8p)", program, location, EVENT("(GLuint program = %u, GLint location = %d, GLint *params = 0x%0.8p)", program, location,
params); params);
...@@ -1455,6 +1532,7 @@ void GL_APIENTRY GetUniformiv(GLuint program, GLint location, GLint *params) ...@@ -1455,6 +1532,7 @@ void GL_APIENTRY GetUniformiv(GLuint program, GLint location, GLint *params)
void GL_APIENTRY GetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer) void GL_APIENTRY GetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLenum pname = 0x%X, void **pointer = 0x%0.8p)", index, pname, EVENT("(GLuint index = %u, GLenum pname = 0x%X, void **pointer = 0x%0.8p)", index, pname,
pointer); pointer);
...@@ -1473,6 +1551,7 @@ void GL_APIENTRY GetVertexAttribPointerv(GLuint index, GLenum pname, void **poin ...@@ -1473,6 +1551,7 @@ void GL_APIENTRY GetVertexAttribPointerv(GLuint index, GLenum pname, void **poin
void GL_APIENTRY GetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params) void GL_APIENTRY GetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", index, pname, EVENT("(GLuint index = %u, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", index, pname,
params); params);
...@@ -1490,6 +1569,7 @@ void GL_APIENTRY GetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params) ...@@ -1490,6 +1569,7 @@ void GL_APIENTRY GetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
void GL_APIENTRY GetVertexAttribiv(GLuint index, GLenum pname, GLint *params) void GL_APIENTRY GetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", index, pname, EVENT("(GLuint index = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", index, pname,
params); params);
...@@ -1507,6 +1587,7 @@ void GL_APIENTRY GetVertexAttribiv(GLuint index, GLenum pname, GLint *params) ...@@ -1507,6 +1587,7 @@ void GL_APIENTRY GetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
void GL_APIENTRY Hint(GLenum target, GLenum mode) void GL_APIENTRY Hint(GLenum target, GLenum mode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum mode = 0x%X)", target, mode); EVENT("(GLenum target = 0x%X, GLenum mode = 0x%X)", target, mode);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1523,6 +1604,7 @@ void GL_APIENTRY Hint(GLenum target, GLenum mode) ...@@ -1523,6 +1604,7 @@ void GL_APIENTRY Hint(GLenum target, GLenum mode)
GLboolean GL_APIENTRY IsBuffer(GLuint buffer) GLboolean GL_APIENTRY IsBuffer(GLuint buffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint buffer = %u)", buffer); EVENT("(GLuint buffer = %u)", buffer);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1541,6 +1623,7 @@ GLboolean GL_APIENTRY IsBuffer(GLuint buffer) ...@@ -1541,6 +1623,7 @@ GLboolean GL_APIENTRY IsBuffer(GLuint buffer)
GLboolean GL_APIENTRY IsEnabled(GLenum cap) GLboolean GL_APIENTRY IsEnabled(GLenum cap)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum cap = 0x%X)", cap); EVENT("(GLenum cap = 0x%X)", cap);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1559,6 +1642,7 @@ GLboolean GL_APIENTRY IsEnabled(GLenum cap) ...@@ -1559,6 +1642,7 @@ GLboolean GL_APIENTRY IsEnabled(GLenum cap)
GLboolean GL_APIENTRY IsFramebuffer(GLuint framebuffer) GLboolean GL_APIENTRY IsFramebuffer(GLuint framebuffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint framebuffer = %u)", framebuffer); EVENT("(GLuint framebuffer = %u)", framebuffer);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1577,6 +1661,7 @@ GLboolean GL_APIENTRY IsFramebuffer(GLuint framebuffer) ...@@ -1577,6 +1661,7 @@ GLboolean GL_APIENTRY IsFramebuffer(GLuint framebuffer)
GLboolean GL_APIENTRY IsProgram(GLuint program) GLboolean GL_APIENTRY IsProgram(GLuint program)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u)", program); EVENT("(GLuint program = %u)", program);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1595,6 +1680,7 @@ GLboolean GL_APIENTRY IsProgram(GLuint program) ...@@ -1595,6 +1680,7 @@ GLboolean GL_APIENTRY IsProgram(GLuint program)
GLboolean GL_APIENTRY IsRenderbuffer(GLuint renderbuffer) GLboolean GL_APIENTRY IsRenderbuffer(GLuint renderbuffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint renderbuffer = %u)", renderbuffer); EVENT("(GLuint renderbuffer = %u)", renderbuffer);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1613,6 +1699,7 @@ GLboolean GL_APIENTRY IsRenderbuffer(GLuint renderbuffer) ...@@ -1613,6 +1699,7 @@ GLboolean GL_APIENTRY IsRenderbuffer(GLuint renderbuffer)
GLboolean GL_APIENTRY IsShader(GLuint shader) GLboolean GL_APIENTRY IsShader(GLuint shader)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint shader = %u)", shader); EVENT("(GLuint shader = %u)", shader);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1631,6 +1718,7 @@ GLboolean GL_APIENTRY IsShader(GLuint shader) ...@@ -1631,6 +1718,7 @@ GLboolean GL_APIENTRY IsShader(GLuint shader)
GLboolean GL_APIENTRY IsTexture(GLuint texture) GLboolean GL_APIENTRY IsTexture(GLuint texture)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint texture = %u)", texture); EVENT("(GLuint texture = %u)", texture);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1649,6 +1737,7 @@ GLboolean GL_APIENTRY IsTexture(GLuint texture) ...@@ -1649,6 +1737,7 @@ GLboolean GL_APIENTRY IsTexture(GLuint texture)
void GL_APIENTRY LineWidth(GLfloat width) void GL_APIENTRY LineWidth(GLfloat width)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat width = %f)", width); EVENT("(GLfloat width = %f)", width);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1665,6 +1754,7 @@ void GL_APIENTRY LineWidth(GLfloat width) ...@@ -1665,6 +1754,7 @@ void GL_APIENTRY LineWidth(GLfloat width)
void GL_APIENTRY LinkProgram(GLuint program) void GL_APIENTRY LinkProgram(GLuint program)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u)", program); EVENT("(GLuint program = %u)", program);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1681,6 +1771,7 @@ void GL_APIENTRY LinkProgram(GLuint program) ...@@ -1681,6 +1771,7 @@ void GL_APIENTRY LinkProgram(GLuint program)
void GL_APIENTRY PixelStorei(GLenum pname, GLint param) void GL_APIENTRY PixelStorei(GLenum pname, GLint param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLint param = %d)", pname, param); EVENT("(GLenum pname = 0x%X, GLint param = %d)", pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1697,6 +1788,7 @@ void GL_APIENTRY PixelStorei(GLenum pname, GLint param) ...@@ -1697,6 +1788,7 @@ void GL_APIENTRY PixelStorei(GLenum pname, GLint param)
void GL_APIENTRY PolygonOffset(GLfloat factor, GLfloat units) void GL_APIENTRY PolygonOffset(GLfloat factor, GLfloat units)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat factor = %f, GLfloat units = %f)", factor, units); EVENT("(GLfloat factor = %f, GLfloat units = %f)", factor, units);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1719,6 +1811,7 @@ void GL_APIENTRY ReadPixels(GLint x, ...@@ -1719,6 +1811,7 @@ void GL_APIENTRY ReadPixels(GLint x,
GLenum type, GLenum type,
void *pixels) void *pixels)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d, GLenum format = " "(GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d, GLenum format = "
"0x%X, GLenum type = 0x%X, void *pixels = 0x%0.8p)", "0x%X, GLenum type = 0x%X, void *pixels = 0x%0.8p)",
...@@ -1739,6 +1832,7 @@ void GL_APIENTRY ReadPixels(GLint x, ...@@ -1739,6 +1832,7 @@ void GL_APIENTRY ReadPixels(GLint x,
void GL_APIENTRY ReleaseShaderCompiler() void GL_APIENTRY ReleaseShaderCompiler()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1758,6 +1852,7 @@ void GL_APIENTRY RenderbufferStorage(GLenum target, ...@@ -1758,6 +1852,7 @@ void GL_APIENTRY RenderbufferStorage(GLenum target,
GLsizei width, GLsizei width,
GLsizei height) GLsizei height)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLenum internalformat = 0x%X, GLsizei width = %d, GLsizei height = " "(GLenum target = 0x%X, GLenum internalformat = 0x%X, GLsizei width = %d, GLsizei height = "
"%d)", "%d)",
...@@ -1779,6 +1874,7 @@ void GL_APIENTRY RenderbufferStorage(GLenum target, ...@@ -1779,6 +1874,7 @@ void GL_APIENTRY RenderbufferStorage(GLenum target,
void GL_APIENTRY SampleCoverage(GLfloat value, GLboolean invert) void GL_APIENTRY SampleCoverage(GLfloat value, GLboolean invert)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLfloat value = %f, GLboolean invert = %u)", value, invert); EVENT("(GLfloat value = %f, GLboolean invert = %u)", value, invert);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1795,6 +1891,7 @@ void GL_APIENTRY SampleCoverage(GLfloat value, GLboolean invert) ...@@ -1795,6 +1891,7 @@ void GL_APIENTRY SampleCoverage(GLfloat value, GLboolean invert)
void GL_APIENTRY Scissor(GLint x, GLint y, GLsizei width, GLsizei height) void GL_APIENTRY Scissor(GLint x, GLint y, GLsizei width, GLsizei height)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", x, y, width, EVENT("(GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", x, y, width,
height); height);
...@@ -1816,6 +1913,7 @@ void GL_APIENTRY ShaderBinary(GLsizei count, ...@@ -1816,6 +1913,7 @@ void GL_APIENTRY ShaderBinary(GLsizei count,
const void *binary, const void *binary,
GLsizei length) GLsizei length)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLsizei count = %d, const GLuint *shaders = 0x%0.8p, GLenum binaryformat = 0x%X, const " "(GLsizei count = %d, const GLuint *shaders = 0x%0.8p, GLenum binaryformat = 0x%X, const "
"void *binary = 0x%0.8p, GLsizei length = %d)", "void *binary = 0x%0.8p, GLsizei length = %d)",
...@@ -1840,6 +1938,7 @@ void GL_APIENTRY ShaderSource(GLuint shader, ...@@ -1840,6 +1938,7 @@ void GL_APIENTRY ShaderSource(GLuint shader,
const GLchar *const *string, const GLchar *const *string,
const GLint *length) const GLint *length)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint shader = %u, GLsizei count = %d, const GLchar *const*string = 0x%0.8p, const " "(GLuint shader = %u, GLsizei count = %d, const GLchar *const*string = 0x%0.8p, const "
"GLint *length = 0x%0.8p)", "GLint *length = 0x%0.8p)",
...@@ -1860,6 +1959,7 @@ void GL_APIENTRY ShaderSource(GLuint shader, ...@@ -1860,6 +1959,7 @@ void GL_APIENTRY ShaderSource(GLuint shader,
void GL_APIENTRY StencilFunc(GLenum func, GLint ref, GLuint mask) void GL_APIENTRY StencilFunc(GLenum func, GLint ref, GLuint mask)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum func = 0x%X, GLint ref = %d, GLuint mask = %u)", func, ref, mask); EVENT("(GLenum func = 0x%X, GLint ref = %d, GLuint mask = %u)", func, ref, mask);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1876,6 +1976,7 @@ void GL_APIENTRY StencilFunc(GLenum func, GLint ref, GLuint mask) ...@@ -1876,6 +1976,7 @@ void GL_APIENTRY StencilFunc(GLenum func, GLint ref, GLuint mask)
void GL_APIENTRY StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) void GL_APIENTRY StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum face = 0x%X, GLenum func = 0x%X, GLint ref = %d, GLuint mask = %u)", face, func, EVENT("(GLenum face = 0x%X, GLenum func = 0x%X, GLint ref = %d, GLuint mask = %u)", face, func,
ref, mask); ref, mask);
...@@ -1894,6 +1995,7 @@ void GL_APIENTRY StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint ...@@ -1894,6 +1995,7 @@ void GL_APIENTRY StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint
void GL_APIENTRY StencilMask(GLuint mask) void GL_APIENTRY StencilMask(GLuint mask)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint mask = %u)", mask); EVENT("(GLuint mask = %u)", mask);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1910,6 +2012,7 @@ void GL_APIENTRY StencilMask(GLuint mask) ...@@ -1910,6 +2012,7 @@ void GL_APIENTRY StencilMask(GLuint mask)
void GL_APIENTRY StencilMaskSeparate(GLenum face, GLuint mask) void GL_APIENTRY StencilMaskSeparate(GLenum face, GLuint mask)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum face = 0x%X, GLuint mask = %u)", face, mask); EVENT("(GLenum face = 0x%X, GLuint mask = %u)", face, mask);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1926,6 +2029,7 @@ void GL_APIENTRY StencilMaskSeparate(GLenum face, GLuint mask) ...@@ -1926,6 +2029,7 @@ void GL_APIENTRY StencilMaskSeparate(GLenum face, GLuint mask)
void GL_APIENTRY StencilOp(GLenum fail, GLenum zfail, GLenum zpass) void GL_APIENTRY StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum fail = 0x%X, GLenum zfail = 0x%X, GLenum zpass = 0x%X)", fail, zfail, zpass); EVENT("(GLenum fail = 0x%X, GLenum zfail = 0x%X, GLenum zpass = 0x%X)", fail, zfail, zpass);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1942,6 +2046,7 @@ void GL_APIENTRY StencilOp(GLenum fail, GLenum zfail, GLenum zpass) ...@@ -1942,6 +2046,7 @@ void GL_APIENTRY StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
void GL_APIENTRY StencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) void GL_APIENTRY StencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum face = 0x%X, GLenum sfail = 0x%X, GLenum dpfail = 0x%X, GLenum dppass = 0x%X)", EVENT("(GLenum face = 0x%X, GLenum sfail = 0x%X, GLenum dpfail = 0x%X, GLenum dppass = 0x%X)",
face, sfail, dpfail, dppass); face, sfail, dpfail, dppass);
...@@ -1968,6 +2073,7 @@ void GL_APIENTRY TexImage2D(GLenum target, ...@@ -1968,6 +2073,7 @@ void GL_APIENTRY TexImage2D(GLenum target,
GLenum type, GLenum type,
const void *pixels) const void *pixels)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLint internalformat = %d, GLsizei width = %d, " "(GLenum target = 0x%X, GLint level = %d, GLint internalformat = %d, GLsizei width = %d, "
"GLsizei height = %d, GLint border = %d, GLenum format = 0x%X, GLenum type = 0x%X, const " "GLsizei height = %d, GLint border = %d, GLenum format = 0x%X, GLenum type = 0x%X, const "
...@@ -1993,6 +2099,7 @@ void GL_APIENTRY TexImage2D(GLenum target, ...@@ -1993,6 +2099,7 @@ void GL_APIENTRY TexImage2D(GLenum target,
void GL_APIENTRY TexParameterf(GLenum target, GLenum pname, GLfloat param) void GL_APIENTRY TexParameterf(GLenum target, GLenum pname, GLfloat param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat param = %f)", target, pname, param); EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat param = %f)", target, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2010,6 +2117,7 @@ void GL_APIENTRY TexParameterf(GLenum target, GLenum pname, GLfloat param) ...@@ -2010,6 +2117,7 @@ void GL_APIENTRY TexParameterf(GLenum target, GLenum pname, GLfloat param)
void GL_APIENTRY TexParameterfv(GLenum target, GLenum pname, const GLfloat *params) void GL_APIENTRY TexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", target, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLfloat *params = 0x%0.8p)", target,
pname, params); pname, params);
...@@ -2029,6 +2137,7 @@ void GL_APIENTRY TexParameterfv(GLenum target, GLenum pname, const GLfloat *para ...@@ -2029,6 +2137,7 @@ void GL_APIENTRY TexParameterfv(GLenum target, GLenum pname, const GLfloat *para
void GL_APIENTRY TexParameteri(GLenum target, GLenum pname, GLint param) void GL_APIENTRY TexParameteri(GLenum target, GLenum pname, GLint param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint param = %d)", target, pname, param); EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint param = %d)", target, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2046,6 +2155,7 @@ void GL_APIENTRY TexParameteri(GLenum target, GLenum pname, GLint param) ...@@ -2046,6 +2155,7 @@ void GL_APIENTRY TexParameteri(GLenum target, GLenum pname, GLint param)
void GL_APIENTRY TexParameteriv(GLenum target, GLenum pname, const GLint *params) void GL_APIENTRY TexParameteriv(GLenum target, GLenum pname, const GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLint *params = 0x%0.8p)", target, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, const GLint *params = 0x%0.8p)", target,
pname, params); pname, params);
...@@ -2073,6 +2183,7 @@ void GL_APIENTRY TexSubImage2D(GLenum target, ...@@ -2073,6 +2183,7 @@ void GL_APIENTRY TexSubImage2D(GLenum target,
GLenum type, GLenum type,
const void *pixels) const void *pixels)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLsizei " "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLsizei "
"width = %d, GLsizei height = %d, GLenum format = 0x%X, GLenum type = 0x%X, const void " "width = %d, GLsizei height = %d, GLenum format = 0x%X, GLenum type = 0x%X, const void "
...@@ -2098,6 +2209,7 @@ void GL_APIENTRY TexSubImage2D(GLenum target, ...@@ -2098,6 +2209,7 @@ void GL_APIENTRY TexSubImage2D(GLenum target,
void GL_APIENTRY Uniform1f(GLint location, GLfloat v0) void GL_APIENTRY Uniform1f(GLint location, GLfloat v0)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLfloat v0 = %f)", location, v0); EVENT("(GLint location = %d, GLfloat v0 = %f)", location, v0);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2114,6 +2226,7 @@ void GL_APIENTRY Uniform1f(GLint location, GLfloat v0) ...@@ -2114,6 +2226,7 @@ void GL_APIENTRY Uniform1f(GLint location, GLfloat v0)
void GL_APIENTRY Uniform1fv(GLint location, GLsizei count, const GLfloat *value) void GL_APIENTRY Uniform1fv(GLint location, GLsizei count, const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLfloat *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLfloat *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -2131,6 +2244,7 @@ void GL_APIENTRY Uniform1fv(GLint location, GLsizei count, const GLfloat *value) ...@@ -2131,6 +2244,7 @@ void GL_APIENTRY Uniform1fv(GLint location, GLsizei count, const GLfloat *value)
void GL_APIENTRY Uniform1i(GLint location, GLint v0) void GL_APIENTRY Uniform1i(GLint location, GLint v0)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLint v0 = %d)", location, v0); EVENT("(GLint location = %d, GLint v0 = %d)", location, v0);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2147,6 +2261,7 @@ void GL_APIENTRY Uniform1i(GLint location, GLint v0) ...@@ -2147,6 +2261,7 @@ void GL_APIENTRY Uniform1i(GLint location, GLint v0)
void GL_APIENTRY Uniform1iv(GLint location, GLsizei count, const GLint *value) void GL_APIENTRY Uniform1iv(GLint location, GLsizei count, const GLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLint *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLint *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -2164,6 +2279,7 @@ void GL_APIENTRY Uniform1iv(GLint location, GLsizei count, const GLint *value) ...@@ -2164,6 +2279,7 @@ void GL_APIENTRY Uniform1iv(GLint location, GLsizei count, const GLint *value)
void GL_APIENTRY Uniform2f(GLint location, GLfloat v0, GLfloat v1) void GL_APIENTRY Uniform2f(GLint location, GLfloat v0, GLfloat v1)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f)", location, v0, v1); EVENT("(GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f)", location, v0, v1);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2180,6 +2296,7 @@ void GL_APIENTRY Uniform2f(GLint location, GLfloat v0, GLfloat v1) ...@@ -2180,6 +2296,7 @@ void GL_APIENTRY Uniform2f(GLint location, GLfloat v0, GLfloat v1)
void GL_APIENTRY Uniform2fv(GLint location, GLsizei count, const GLfloat *value) void GL_APIENTRY Uniform2fv(GLint location, GLsizei count, const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLfloat *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLfloat *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -2197,6 +2314,7 @@ void GL_APIENTRY Uniform2fv(GLint location, GLsizei count, const GLfloat *value) ...@@ -2197,6 +2314,7 @@ void GL_APIENTRY Uniform2fv(GLint location, GLsizei count, const GLfloat *value)
void GL_APIENTRY Uniform2i(GLint location, GLint v0, GLint v1) void GL_APIENTRY Uniform2i(GLint location, GLint v0, GLint v1)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLint v0 = %d, GLint v1 = %d)", location, v0, v1); EVENT("(GLint location = %d, GLint v0 = %d, GLint v1 = %d)", location, v0, v1);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2213,6 +2331,7 @@ void GL_APIENTRY Uniform2i(GLint location, GLint v0, GLint v1) ...@@ -2213,6 +2331,7 @@ void GL_APIENTRY Uniform2i(GLint location, GLint v0, GLint v1)
void GL_APIENTRY Uniform2iv(GLint location, GLsizei count, const GLint *value) void GL_APIENTRY Uniform2iv(GLint location, GLsizei count, const GLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLint *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLint *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -2230,6 +2349,7 @@ void GL_APIENTRY Uniform2iv(GLint location, GLsizei count, const GLint *value) ...@@ -2230,6 +2349,7 @@ void GL_APIENTRY Uniform2iv(GLint location, GLsizei count, const GLint *value)
void GL_APIENTRY Uniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) void GL_APIENTRY Uniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = %f)", location, v0, EVENT("(GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = %f)", location, v0,
v1, v2); v1, v2);
...@@ -2247,6 +2367,7 @@ void GL_APIENTRY Uniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) ...@@ -2247,6 +2367,7 @@ void GL_APIENTRY Uniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
void GL_APIENTRY Uniform3fv(GLint location, GLsizei count, const GLfloat *value) void GL_APIENTRY Uniform3fv(GLint location, GLsizei count, const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLfloat *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLfloat *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -2264,6 +2385,7 @@ void GL_APIENTRY Uniform3fv(GLint location, GLsizei count, const GLfloat *value) ...@@ -2264,6 +2385,7 @@ void GL_APIENTRY Uniform3fv(GLint location, GLsizei count, const GLfloat *value)
void GL_APIENTRY Uniform3i(GLint location, GLint v0, GLint v1, GLint v2) void GL_APIENTRY Uniform3i(GLint location, GLint v0, GLint v1, GLint v2)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d)", location, v0, v1, EVENT("(GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d)", location, v0, v1,
v2); v2);
...@@ -2281,6 +2403,7 @@ void GL_APIENTRY Uniform3i(GLint location, GLint v0, GLint v1, GLint v2) ...@@ -2281,6 +2403,7 @@ void GL_APIENTRY Uniform3i(GLint location, GLint v0, GLint v1, GLint v2)
void GL_APIENTRY Uniform3iv(GLint location, GLsizei count, const GLint *value) void GL_APIENTRY Uniform3iv(GLint location, GLsizei count, const GLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLint *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLint *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -2298,6 +2421,7 @@ void GL_APIENTRY Uniform3iv(GLint location, GLsizei count, const GLint *value) ...@@ -2298,6 +2421,7 @@ void GL_APIENTRY Uniform3iv(GLint location, GLsizei count, const GLint *value)
void GL_APIENTRY Uniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) void GL_APIENTRY Uniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = %f, GLfloat v3 = %f)", "(GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = %f, GLfloat v3 = %f)",
location, v0, v1, v2, v3); location, v0, v1, v2, v3);
...@@ -2316,6 +2440,7 @@ void GL_APIENTRY Uniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, G ...@@ -2316,6 +2440,7 @@ void GL_APIENTRY Uniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, G
void GL_APIENTRY Uniform4fv(GLint location, GLsizei count, const GLfloat *value) void GL_APIENTRY Uniform4fv(GLint location, GLsizei count, const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLfloat *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLfloat *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -2333,6 +2458,7 @@ void GL_APIENTRY Uniform4fv(GLint location, GLsizei count, const GLfloat *value) ...@@ -2333,6 +2458,7 @@ void GL_APIENTRY Uniform4fv(GLint location, GLsizei count, const GLfloat *value)
void GL_APIENTRY Uniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) void GL_APIENTRY Uniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d, GLint v3 = %d)", EVENT("(GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d, GLint v3 = %d)",
location, v0, v1, v2, v3); location, v0, v1, v2, v3);
...@@ -2350,6 +2476,7 @@ void GL_APIENTRY Uniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v ...@@ -2350,6 +2476,7 @@ void GL_APIENTRY Uniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v
void GL_APIENTRY Uniform4iv(GLint location, GLsizei count, const GLint *value) void GL_APIENTRY Uniform4iv(GLint location, GLsizei count, const GLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLint *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLint *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -2370,6 +2497,7 @@ void GL_APIENTRY UniformMatrix2fv(GLint location, ...@@ -2370,6 +2497,7 @@ void GL_APIENTRY UniformMatrix2fv(GLint location,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -2393,6 +2521,7 @@ void GL_APIENTRY UniformMatrix3fv(GLint location, ...@@ -2393,6 +2521,7 @@ void GL_APIENTRY UniformMatrix3fv(GLint location,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -2416,6 +2545,7 @@ void GL_APIENTRY UniformMatrix4fv(GLint location, ...@@ -2416,6 +2545,7 @@ void GL_APIENTRY UniformMatrix4fv(GLint location,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -2436,6 +2566,7 @@ void GL_APIENTRY UniformMatrix4fv(GLint location, ...@@ -2436,6 +2566,7 @@ void GL_APIENTRY UniformMatrix4fv(GLint location,
void GL_APIENTRY UseProgram(GLuint program) void GL_APIENTRY UseProgram(GLuint program)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u)", program); EVENT("(GLuint program = %u)", program);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2452,6 +2583,7 @@ void GL_APIENTRY UseProgram(GLuint program) ...@@ -2452,6 +2583,7 @@ void GL_APIENTRY UseProgram(GLuint program)
void GL_APIENTRY ValidateProgram(GLuint program) void GL_APIENTRY ValidateProgram(GLuint program)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u)", program); EVENT("(GLuint program = %u)", program);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2468,6 +2600,7 @@ void GL_APIENTRY ValidateProgram(GLuint program) ...@@ -2468,6 +2600,7 @@ void GL_APIENTRY ValidateProgram(GLuint program)
void GL_APIENTRY VertexAttrib1f(GLuint index, GLfloat x) void GL_APIENTRY VertexAttrib1f(GLuint index, GLfloat x)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLfloat x = %f)", index, x); EVENT("(GLuint index = %u, GLfloat x = %f)", index, x);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2484,6 +2617,7 @@ void GL_APIENTRY VertexAttrib1f(GLuint index, GLfloat x) ...@@ -2484,6 +2617,7 @@ void GL_APIENTRY VertexAttrib1f(GLuint index, GLfloat x)
void GL_APIENTRY VertexAttrib1fv(GLuint index, const GLfloat *v) void GL_APIENTRY VertexAttrib1fv(GLuint index, const GLfloat *v)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, const GLfloat *v = 0x%0.8p)", index, v); EVENT("(GLuint index = %u, const GLfloat *v = 0x%0.8p)", index, v);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2500,6 +2634,7 @@ void GL_APIENTRY VertexAttrib1fv(GLuint index, const GLfloat *v) ...@@ -2500,6 +2634,7 @@ void GL_APIENTRY VertexAttrib1fv(GLuint index, const GLfloat *v)
void GL_APIENTRY VertexAttrib2f(GLuint index, GLfloat x, GLfloat y) void GL_APIENTRY VertexAttrib2f(GLuint index, GLfloat x, GLfloat y)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLfloat x = %f, GLfloat y = %f)", index, x, y); EVENT("(GLuint index = %u, GLfloat x = %f, GLfloat y = %f)", index, x, y);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2516,6 +2651,7 @@ void GL_APIENTRY VertexAttrib2f(GLuint index, GLfloat x, GLfloat y) ...@@ -2516,6 +2651,7 @@ void GL_APIENTRY VertexAttrib2f(GLuint index, GLfloat x, GLfloat y)
void GL_APIENTRY VertexAttrib2fv(GLuint index, const GLfloat *v) void GL_APIENTRY VertexAttrib2fv(GLuint index, const GLfloat *v)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, const GLfloat *v = 0x%0.8p)", index, v); EVENT("(GLuint index = %u, const GLfloat *v = 0x%0.8p)", index, v);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2532,6 +2668,7 @@ void GL_APIENTRY VertexAttrib2fv(GLuint index, const GLfloat *v) ...@@ -2532,6 +2668,7 @@ void GL_APIENTRY VertexAttrib2fv(GLuint index, const GLfloat *v)
void GL_APIENTRY VertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z) void GL_APIENTRY VertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", index, x, y, z); EVENT("(GLuint index = %u, GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", index, x, y, z);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2548,6 +2685,7 @@ void GL_APIENTRY VertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z) ...@@ -2548,6 +2685,7 @@ void GL_APIENTRY VertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z)
void GL_APIENTRY VertexAttrib3fv(GLuint index, const GLfloat *v) void GL_APIENTRY VertexAttrib3fv(GLuint index, const GLfloat *v)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, const GLfloat *v = 0x%0.8p)", index, v); EVENT("(GLuint index = %u, const GLfloat *v = 0x%0.8p)", index, v);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2564,6 +2702,7 @@ void GL_APIENTRY VertexAttrib3fv(GLuint index, const GLfloat *v) ...@@ -2564,6 +2702,7 @@ void GL_APIENTRY VertexAttrib3fv(GLuint index, const GLfloat *v)
void GL_APIENTRY VertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) void GL_APIENTRY VertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLfloat x = %f, GLfloat y = %f, GLfloat z = %f, GLfloat w = %f)", EVENT("(GLuint index = %u, GLfloat x = %f, GLfloat y = %f, GLfloat z = %f, GLfloat w = %f)",
index, x, y, z, w); index, x, y, z, w);
...@@ -2581,6 +2720,7 @@ void GL_APIENTRY VertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, G ...@@ -2581,6 +2720,7 @@ void GL_APIENTRY VertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, G
void GL_APIENTRY VertexAttrib4fv(GLuint index, const GLfloat *v) void GL_APIENTRY VertexAttrib4fv(GLuint index, const GLfloat *v)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, const GLfloat *v = 0x%0.8p)", index, v); EVENT("(GLuint index = %u, const GLfloat *v = 0x%0.8p)", index, v);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2602,6 +2742,7 @@ void GL_APIENTRY VertexAttribPointer(GLuint index, ...@@ -2602,6 +2742,7 @@ void GL_APIENTRY VertexAttribPointer(GLuint index,
GLsizei stride, GLsizei stride,
const void *pointer) const void *pointer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint index = %u, GLint size = %d, GLenum type = 0x%X, GLboolean normalized = %u, " "(GLuint index = %u, GLint size = %d, GLenum type = 0x%X, GLboolean normalized = %u, "
"GLsizei stride = %d, const void *pointer = 0x%0.8p)", "GLsizei stride = %d, const void *pointer = 0x%0.8p)",
...@@ -2623,6 +2764,7 @@ void GL_APIENTRY VertexAttribPointer(GLuint index, ...@@ -2623,6 +2764,7 @@ void GL_APIENTRY VertexAttribPointer(GLuint index,
void GL_APIENTRY Viewport(GLint x, GLint y, GLsizei width, GLsizei height) void GL_APIENTRY Viewport(GLint x, GLint y, GLsizei width, GLsizei height)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", x, y, width, EVENT("(GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", x, y, width,
height); height);
......
...@@ -18,6 +18,7 @@ namespace gl ...@@ -18,6 +18,7 @@ namespace gl
{ {
void GL_APIENTRY BeginQuery(GLenum target, GLuint id) void GL_APIENTRY BeginQuery(GLenum target, GLuint id)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint id = %u)", target, id); EVENT("(GLenum target = 0x%X, GLuint id = %u)", target, id);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -35,6 +36,7 @@ void GL_APIENTRY BeginQuery(GLenum target, GLuint id) ...@@ -35,6 +36,7 @@ void GL_APIENTRY BeginQuery(GLenum target, GLuint id)
void GL_APIENTRY BeginTransformFeedback(GLenum primitiveMode) void GL_APIENTRY BeginTransformFeedback(GLenum primitiveMode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum primitiveMode = 0x%X)", primitiveMode); EVENT("(GLenum primitiveMode = 0x%X)", primitiveMode);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -53,6 +55,7 @@ void GL_APIENTRY BeginTransformFeedback(GLenum primitiveMode) ...@@ -53,6 +55,7 @@ void GL_APIENTRY BeginTransformFeedback(GLenum primitiveMode)
void GL_APIENTRY BindBufferBase(GLenum target, GLuint index, GLuint buffer) void GL_APIENTRY BindBufferBase(GLenum target, GLuint index, GLuint buffer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint index = %u, GLuint buffer = %u)", target, index, buffer); EVENT("(GLenum target = 0x%X, GLuint index = %u, GLuint buffer = %u)", target, index, buffer);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -72,6 +75,7 @@ void GL_APIENTRY BindBufferBase(GLenum target, GLuint index, GLuint buffer) ...@@ -72,6 +75,7 @@ void GL_APIENTRY BindBufferBase(GLenum target, GLuint index, GLuint buffer)
void GL_APIENTRY void GL_APIENTRY
BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLuint index = %u, GLuint buffer = %u, GLintptr offset = %d, " "(GLenum target = 0x%X, GLuint index = %u, GLuint buffer = %u, GLintptr offset = %d, "
"GLsizeiptr size = %d)", "GLsizeiptr size = %d)",
...@@ -94,6 +98,7 @@ BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLs ...@@ -94,6 +98,7 @@ BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLs
void GL_APIENTRY BindSampler(GLuint unit, GLuint sampler) void GL_APIENTRY BindSampler(GLuint unit, GLuint sampler)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint unit = %u, GLuint sampler = %u)", unit, sampler); EVENT("(GLuint unit = %u, GLuint sampler = %u)", unit, sampler);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -110,6 +115,7 @@ void GL_APIENTRY BindSampler(GLuint unit, GLuint sampler) ...@@ -110,6 +115,7 @@ void GL_APIENTRY BindSampler(GLuint unit, GLuint sampler)
void GL_APIENTRY BindTransformFeedback(GLenum target, GLuint id) void GL_APIENTRY BindTransformFeedback(GLenum target, GLuint id)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint id = %u)", target, id); EVENT("(GLenum target = 0x%X, GLuint id = %u)", target, id);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -126,6 +132,7 @@ void GL_APIENTRY BindTransformFeedback(GLenum target, GLuint id) ...@@ -126,6 +132,7 @@ void GL_APIENTRY BindTransformFeedback(GLenum target, GLuint id)
void GL_APIENTRY BindVertexArray(GLuint array) void GL_APIENTRY BindVertexArray(GLuint array)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint array = %u)", array); EVENT("(GLuint array = %u)", array);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -151,6 +158,7 @@ void GL_APIENTRY BlitFramebuffer(GLint srcX0, ...@@ -151,6 +158,7 @@ void GL_APIENTRY BlitFramebuffer(GLint srcX0,
GLbitfield mask, GLbitfield mask,
GLenum filter) GLenum filter)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint srcX0 = %d, GLint srcY0 = %d, GLint srcX1 = %d, GLint srcY1 = %d, GLint dstX0 = " "(GLint srcX0 = %d, GLint srcY0 = %d, GLint srcX1 = %d, GLint srcY1 = %d, GLint dstX0 = "
"%d, GLint dstY0 = %d, GLint dstX1 = %d, GLint dstY1 = %d, GLbitfield mask = 0x%X, GLenum " "%d, GLint dstY0 = %d, GLint dstX1 = %d, GLint dstY1 = %d, GLbitfield mask = 0x%X, GLenum "
...@@ -175,6 +183,7 @@ void GL_APIENTRY BlitFramebuffer(GLint srcX0, ...@@ -175,6 +183,7 @@ void GL_APIENTRY BlitFramebuffer(GLint srcX0,
void GL_APIENTRY ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) void GL_APIENTRY ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, GLfloat depth = %f, GLint stencil = %d)", EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, GLfloat depth = %f, GLint stencil = %d)",
buffer, drawbuffer, depth, stencil); buffer, drawbuffer, depth, stencil);
...@@ -193,6 +202,7 @@ void GL_APIENTRY ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, G ...@@ -193,6 +202,7 @@ void GL_APIENTRY ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, G
void GL_APIENTRY ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value) void GL_APIENTRY ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLfloat *value = 0x%0.8p)", buffer, EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLfloat *value = 0x%0.8p)", buffer,
drawbuffer, value); drawbuffer, value);
...@@ -210,6 +220,7 @@ void GL_APIENTRY ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *v ...@@ -210,6 +220,7 @@ void GL_APIENTRY ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *v
void GL_APIENTRY ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value) void GL_APIENTRY ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLint *value = 0x%0.8p)", buffer, EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLint *value = 0x%0.8p)", buffer,
drawbuffer, value); drawbuffer, value);
...@@ -227,6 +238,7 @@ void GL_APIENTRY ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *val ...@@ -227,6 +238,7 @@ void GL_APIENTRY ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *val
void GL_APIENTRY ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value) void GL_APIENTRY ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLuint *value = 0x%0.8p)", buffer, EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLuint *value = 0x%0.8p)", buffer,
drawbuffer, value); drawbuffer, value);
...@@ -244,6 +256,7 @@ void GL_APIENTRY ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *v ...@@ -244,6 +256,7 @@ void GL_APIENTRY ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *v
GLenum GL_APIENTRY ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) GLenum GL_APIENTRY ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsync sync = 0x%0.8p, GLbitfield flags = 0x%X, GLuint64 timeout = %llu)", sync, flags, EVENT("(GLsync sync = 0x%0.8p, GLbitfield flags = 0x%X, GLuint64 timeout = %llu)", sync, flags,
timeout); timeout);
...@@ -271,6 +284,7 @@ void GL_APIENTRY CompressedTexImage3D(GLenum target, ...@@ -271,6 +284,7 @@ void GL_APIENTRY CompressedTexImage3D(GLenum target,
GLsizei imageSize, GLsizei imageSize,
const void *data) const void *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLenum internalformat = 0x%X, GLsizei width = " "(GLenum target = 0x%X, GLint level = %d, GLenum internalformat = 0x%X, GLsizei width = "
"%d, GLsizei height = %d, GLsizei depth = %d, GLint border = %d, GLsizei imageSize = %d, " "%d, GLsizei height = %d, GLsizei depth = %d, GLint border = %d, GLsizei imageSize = %d, "
...@@ -306,6 +320,7 @@ void GL_APIENTRY CompressedTexSubImage3D(GLenum target, ...@@ -306,6 +320,7 @@ void GL_APIENTRY CompressedTexSubImage3D(GLenum target,
GLsizei imageSize, GLsizei imageSize,
const void *data) const void *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint " "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint "
"zoffset = %d, GLsizei width = %d, GLsizei height = %d, GLsizei depth = %d, GLenum format " "zoffset = %d, GLsizei width = %d, GLsizei height = %d, GLsizei depth = %d, GLenum format "
...@@ -336,6 +351,7 @@ void GL_APIENTRY CopyBufferSubData(GLenum readTarget, ...@@ -336,6 +351,7 @@ void GL_APIENTRY CopyBufferSubData(GLenum readTarget,
GLintptr writeOffset, GLintptr writeOffset,
GLsizeiptr size) GLsizeiptr size)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum readTarget = 0x%X, GLenum writeTarget = 0x%X, GLintptr readOffset = %d, GLintptr " "(GLenum readTarget = 0x%X, GLenum writeTarget = 0x%X, GLintptr readOffset = %d, GLintptr "
"writeOffset = %d, GLsizeiptr size = %d)", "writeOffset = %d, GLsizeiptr size = %d)",
...@@ -369,6 +385,7 @@ void GL_APIENTRY CopyTexSubImage3D(GLenum target, ...@@ -369,6 +385,7 @@ void GL_APIENTRY CopyTexSubImage3D(GLenum target,
GLsizei width, GLsizei width,
GLsizei height) GLsizei height)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint " "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint "
"zoffset = %d, GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", "zoffset = %d, GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)",
...@@ -393,6 +410,7 @@ void GL_APIENTRY CopyTexSubImage3D(GLenum target, ...@@ -393,6 +410,7 @@ void GL_APIENTRY CopyTexSubImage3D(GLenum target,
void GL_APIENTRY DeleteQueries(GLsizei n, const GLuint *ids) void GL_APIENTRY DeleteQueries(GLsizei n, const GLuint *ids)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, const GLuint *ids = 0x%0.8p)", n, ids); EVENT("(GLsizei n = %d, const GLuint *ids = 0x%0.8p)", n, ids);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -409,6 +427,7 @@ void GL_APIENTRY DeleteQueries(GLsizei n, const GLuint *ids) ...@@ -409,6 +427,7 @@ void GL_APIENTRY DeleteQueries(GLsizei n, const GLuint *ids)
void GL_APIENTRY DeleteSamplers(GLsizei count, const GLuint *samplers) void GL_APIENTRY DeleteSamplers(GLsizei count, const GLuint *samplers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei count = %d, const GLuint *samplers = 0x%0.8p)", count, samplers); EVENT("(GLsizei count = %d, const GLuint *samplers = 0x%0.8p)", count, samplers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -425,6 +444,7 @@ void GL_APIENTRY DeleteSamplers(GLsizei count, const GLuint *samplers) ...@@ -425,6 +444,7 @@ void GL_APIENTRY DeleteSamplers(GLsizei count, const GLuint *samplers)
void GL_APIENTRY DeleteSync(GLsync sync) void GL_APIENTRY DeleteSync(GLsync sync)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsync sync = 0x%0.8p)", sync); EVENT("(GLsync sync = 0x%0.8p)", sync);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -441,6 +461,7 @@ void GL_APIENTRY DeleteSync(GLsync sync) ...@@ -441,6 +461,7 @@ void GL_APIENTRY DeleteSync(GLsync sync)
void GL_APIENTRY DeleteTransformFeedbacks(GLsizei n, const GLuint *ids) void GL_APIENTRY DeleteTransformFeedbacks(GLsizei n, const GLuint *ids)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, const GLuint *ids = 0x%0.8p)", n, ids); EVENT("(GLsizei n = %d, const GLuint *ids = 0x%0.8p)", n, ids);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -457,6 +478,7 @@ void GL_APIENTRY DeleteTransformFeedbacks(GLsizei n, const GLuint *ids) ...@@ -457,6 +478,7 @@ void GL_APIENTRY DeleteTransformFeedbacks(GLsizei n, const GLuint *ids)
void GL_APIENTRY DeleteVertexArrays(GLsizei n, const GLuint *arrays) void GL_APIENTRY DeleteVertexArrays(GLsizei n, const GLuint *arrays)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, const GLuint *arrays = 0x%0.8p)", n, arrays); EVENT("(GLsizei n = %d, const GLuint *arrays = 0x%0.8p)", n, arrays);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -473,6 +495,7 @@ void GL_APIENTRY DeleteVertexArrays(GLsizei n, const GLuint *arrays) ...@@ -473,6 +495,7 @@ void GL_APIENTRY DeleteVertexArrays(GLsizei n, const GLuint *arrays)
void GL_APIENTRY DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount) void GL_APIENTRY DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum mode = 0x%X, GLint first = %d, GLsizei count = %d, GLsizei instancecount = %d)", EVENT("(GLenum mode = 0x%X, GLint first = %d, GLsizei count = %d, GLsizei instancecount = %d)",
mode, first, count, instancecount); mode, first, count, instancecount);
...@@ -493,6 +516,7 @@ void GL_APIENTRY DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GL ...@@ -493,6 +516,7 @@ void GL_APIENTRY DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GL
void GL_APIENTRY DrawBuffers(GLsizei n, const GLenum *bufs) void GL_APIENTRY DrawBuffers(GLsizei n, const GLenum *bufs)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, const GLenum *bufs = 0x%0.8p)", n, bufs); EVENT("(GLsizei n = %d, const GLenum *bufs = 0x%0.8p)", n, bufs);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -513,6 +537,7 @@ void GL_APIENTRY DrawElementsInstanced(GLenum mode, ...@@ -513,6 +537,7 @@ void GL_APIENTRY DrawElementsInstanced(GLenum mode,
const void *indices, const void *indices,
GLsizei instancecount) GLsizei instancecount)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum mode = 0x%X, GLsizei count = %d, GLenum type = 0x%X, const void *indices = " "(GLenum mode = 0x%X, GLsizei count = %d, GLenum type = 0x%X, const void *indices = "
"0x%0.8p, GLsizei instancecount = %d)", "0x%0.8p, GLsizei instancecount = %d)",
...@@ -540,6 +565,7 @@ void GL_APIENTRY DrawRangeElements(GLenum mode, ...@@ -540,6 +565,7 @@ void GL_APIENTRY DrawRangeElements(GLenum mode,
GLenum type, GLenum type,
const void *indices) const void *indices)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum mode = 0x%X, GLuint start = %u, GLuint end = %u, GLsizei count = %d, GLenum type " "(GLenum mode = 0x%X, GLuint start = %u, GLuint end = %u, GLsizei count = %d, GLenum type "
"= 0x%X, const void *indices = 0x%0.8p)", "= 0x%X, const void *indices = 0x%0.8p)",
...@@ -562,6 +588,7 @@ void GL_APIENTRY DrawRangeElements(GLenum mode, ...@@ -562,6 +588,7 @@ void GL_APIENTRY DrawRangeElements(GLenum mode,
void GL_APIENTRY EndQuery(GLenum target) void GL_APIENTRY EndQuery(GLenum target)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X)", target); EVENT("(GLenum target = 0x%X)", target);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -579,6 +606,7 @@ void GL_APIENTRY EndQuery(GLenum target) ...@@ -579,6 +606,7 @@ void GL_APIENTRY EndQuery(GLenum target)
void GL_APIENTRY EndTransformFeedback() void GL_APIENTRY EndTransformFeedback()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -595,6 +623,7 @@ void GL_APIENTRY EndTransformFeedback() ...@@ -595,6 +623,7 @@ void GL_APIENTRY EndTransformFeedback()
GLsync GL_APIENTRY FenceSync(GLenum condition, GLbitfield flags) GLsync GL_APIENTRY FenceSync(GLenum condition, GLbitfield flags)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum condition = 0x%X, GLbitfield flags = 0x%X)", condition, flags); EVENT("(GLenum condition = 0x%X, GLbitfield flags = 0x%X)", condition, flags);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -613,6 +642,7 @@ GLsync GL_APIENTRY FenceSync(GLenum condition, GLbitfield flags) ...@@ -613,6 +642,7 @@ GLsync GL_APIENTRY FenceSync(GLenum condition, GLbitfield flags)
void GL_APIENTRY FlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length) void GL_APIENTRY FlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr length = %d)", target, offset, EVENT("(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr length = %d)", target, offset,
length); length);
...@@ -633,6 +663,7 @@ void GL_APIENTRY FlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeip ...@@ -633,6 +663,7 @@ void GL_APIENTRY FlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeip
void GL_APIENTRY void GL_APIENTRY
FramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) FramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLenum attachment = 0x%X, GLuint texture = %u, GLint level = %d, " "(GLenum target = 0x%X, GLenum attachment = 0x%X, GLuint texture = %u, GLint level = %d, "
"GLint layer = %d)", "GLint layer = %d)",
...@@ -654,6 +685,7 @@ FramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint ...@@ -654,6 +685,7 @@ FramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint
void GL_APIENTRY GenQueries(GLsizei n, GLuint *ids) void GL_APIENTRY GenQueries(GLsizei n, GLuint *ids)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, GLuint *ids = 0x%0.8p)", n, ids); EVENT("(GLsizei n = %d, GLuint *ids = 0x%0.8p)", n, ids);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -670,6 +702,7 @@ void GL_APIENTRY GenQueries(GLsizei n, GLuint *ids) ...@@ -670,6 +702,7 @@ void GL_APIENTRY GenQueries(GLsizei n, GLuint *ids)
void GL_APIENTRY GenSamplers(GLsizei count, GLuint *samplers) void GL_APIENTRY GenSamplers(GLsizei count, GLuint *samplers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei count = %d, GLuint *samplers = 0x%0.8p)", count, samplers); EVENT("(GLsizei count = %d, GLuint *samplers = 0x%0.8p)", count, samplers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -686,6 +719,7 @@ void GL_APIENTRY GenSamplers(GLsizei count, GLuint *samplers) ...@@ -686,6 +719,7 @@ void GL_APIENTRY GenSamplers(GLsizei count, GLuint *samplers)
void GL_APIENTRY GenTransformFeedbacks(GLsizei n, GLuint *ids) void GL_APIENTRY GenTransformFeedbacks(GLsizei n, GLuint *ids)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, GLuint *ids = 0x%0.8p)", n, ids); EVENT("(GLsizei n = %d, GLuint *ids = 0x%0.8p)", n, ids);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -702,6 +736,7 @@ void GL_APIENTRY GenTransformFeedbacks(GLsizei n, GLuint *ids) ...@@ -702,6 +736,7 @@ void GL_APIENTRY GenTransformFeedbacks(GLsizei n, GLuint *ids)
void GL_APIENTRY GenVertexArrays(GLsizei n, GLuint *arrays) void GL_APIENTRY GenVertexArrays(GLsizei n, GLuint *arrays)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, GLuint *arrays = 0x%0.8p)", n, arrays); EVENT("(GLsizei n = %d, GLuint *arrays = 0x%0.8p)", n, arrays);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -722,6 +757,7 @@ void GL_APIENTRY GetActiveUniformBlockName(GLuint program, ...@@ -722,6 +757,7 @@ void GL_APIENTRY GetActiveUniformBlockName(GLuint program,
GLsizei *length, GLsizei *length,
GLchar *uniformBlockName) GLchar *uniformBlockName)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLuint uniformBlockIndex = %u, GLsizei bufSize = %d, GLsizei " "(GLuint program = %u, GLuint uniformBlockIndex = %u, GLsizei bufSize = %d, GLsizei "
"*length = 0x%0.8p, GLchar *uniformBlockName = 0x%0.8p)", "*length = 0x%0.8p, GLchar *uniformBlockName = 0x%0.8p)",
...@@ -748,6 +784,7 @@ void GL_APIENTRY GetActiveUniformBlockiv(GLuint program, ...@@ -748,6 +784,7 @@ void GL_APIENTRY GetActiveUniformBlockiv(GLuint program,
GLenum pname, GLenum pname,
GLint *params) GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLuint uniformBlockIndex = %u, GLenum pname = 0x%X, GLint *params = " "(GLuint program = %u, GLuint uniformBlockIndex = %u, GLenum pname = 0x%X, GLint *params = "
"0x%0.8p)", "0x%0.8p)",
...@@ -773,6 +810,7 @@ void GL_APIENTRY GetActiveUniformsiv(GLuint program, ...@@ -773,6 +810,7 @@ void GL_APIENTRY GetActiveUniformsiv(GLuint program,
GLenum pname, GLenum pname,
GLint *params) GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLsizei uniformCount = %d, const GLuint *uniformIndices = 0x%0.8p, " "(GLuint program = %u, GLsizei uniformCount = %d, const GLuint *uniformIndices = 0x%0.8p, "
"GLenum pname = 0x%X, GLint *params = 0x%0.8p)", "GLenum pname = 0x%X, GLint *params = 0x%0.8p)",
...@@ -794,6 +832,7 @@ void GL_APIENTRY GetActiveUniformsiv(GLuint program, ...@@ -794,6 +832,7 @@ void GL_APIENTRY GetActiveUniformsiv(GLuint program,
void GL_APIENTRY GetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params) void GL_APIENTRY GetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint64 *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint64 *params = 0x%0.8p)", target, pname,
params); params);
...@@ -813,6 +852,7 @@ void GL_APIENTRY GetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *pa ...@@ -813,6 +852,7 @@ void GL_APIENTRY GetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *pa
void GL_APIENTRY GetBufferPointerv(GLenum target, GLenum pname, void **params) void GL_APIENTRY GetBufferPointerv(GLenum target, GLenum pname, void **params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, void **params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, void **params = 0x%0.8p)", target, pname,
params); params);
...@@ -832,6 +872,7 @@ void GL_APIENTRY GetBufferPointerv(GLenum target, GLenum pname, void **params) ...@@ -832,6 +872,7 @@ void GL_APIENTRY GetBufferPointerv(GLenum target, GLenum pname, void **params)
GLint GL_APIENTRY GetFragDataLocation(GLuint program, const GLchar *name) GLint GL_APIENTRY GetFragDataLocation(GLuint program, const GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name); EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -850,6 +891,7 @@ GLint GL_APIENTRY GetFragDataLocation(GLuint program, const GLchar *name) ...@@ -850,6 +891,7 @@ GLint GL_APIENTRY GetFragDataLocation(GLuint program, const GLchar *name)
void GL_APIENTRY GetInteger64i_v(GLenum target, GLuint index, GLint64 *data) void GL_APIENTRY GetInteger64i_v(GLenum target, GLuint index, GLint64 *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint index = %u, GLint64 *data = 0x%0.8p)", target, index, EVENT("(GLenum target = 0x%X, GLuint index = %u, GLint64 *data = 0x%0.8p)", target, index,
data); data);
...@@ -867,6 +909,7 @@ void GL_APIENTRY GetInteger64i_v(GLenum target, GLuint index, GLint64 *data) ...@@ -867,6 +909,7 @@ void GL_APIENTRY GetInteger64i_v(GLenum target, GLuint index, GLint64 *data)
void GL_APIENTRY GetInteger64v(GLenum pname, GLint64 *data) void GL_APIENTRY GetInteger64v(GLenum pname, GLint64 *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLint64 *data = 0x%0.8p)", pname, data); EVENT("(GLenum pname = 0x%X, GLint64 *data = 0x%0.8p)", pname, data);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -883,6 +926,7 @@ void GL_APIENTRY GetInteger64v(GLenum pname, GLint64 *data) ...@@ -883,6 +926,7 @@ void GL_APIENTRY GetInteger64v(GLenum pname, GLint64 *data)
void GL_APIENTRY GetIntegeri_v(GLenum target, GLuint index, GLint *data) void GL_APIENTRY GetIntegeri_v(GLenum target, GLuint index, GLint *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint index = %u, GLint *data = 0x%0.8p)", target, index, data); EVENT("(GLenum target = 0x%X, GLuint index = %u, GLint *data = 0x%0.8p)", target, index, data);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -903,6 +947,7 @@ void GL_APIENTRY GetInternalformativ(GLenum target, ...@@ -903,6 +947,7 @@ void GL_APIENTRY GetInternalformativ(GLenum target,
GLsizei bufSize, GLsizei bufSize,
GLint *params) GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLenum internalformat = 0x%X, GLenum pname = 0x%X, GLsizei bufSize " "(GLenum target = 0x%X, GLenum internalformat = 0x%X, GLenum pname = 0x%X, GLsizei bufSize "
"= %d, GLint *params = 0x%0.8p)", "= %d, GLint *params = 0x%0.8p)",
...@@ -928,6 +973,7 @@ void GL_APIENTRY GetProgramBinary(GLuint program, ...@@ -928,6 +973,7 @@ void GL_APIENTRY GetProgramBinary(GLuint program,
GLenum *binaryFormat, GLenum *binaryFormat,
void *binary) void *binary)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLenum " "(GLuint program = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLenum "
"*binaryFormat = 0x%0.8p, void *binary = 0x%0.8p)", "*binaryFormat = 0x%0.8p, void *binary = 0x%0.8p)",
...@@ -949,6 +995,7 @@ void GL_APIENTRY GetProgramBinary(GLuint program, ...@@ -949,6 +995,7 @@ void GL_APIENTRY GetProgramBinary(GLuint program,
void GL_APIENTRY GetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) void GL_APIENTRY GetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint id = %u, GLenum pname = 0x%X, GLuint *params = 0x%0.8p)", id, pname, params); EVENT("(GLuint id = %u, GLenum pname = 0x%X, GLuint *params = 0x%0.8p)", id, pname, params);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -965,6 +1012,7 @@ void GL_APIENTRY GetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) ...@@ -965,6 +1012,7 @@ void GL_APIENTRY GetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params)
void GL_APIENTRY GetQueryiv(GLenum target, GLenum pname, GLint *params) void GL_APIENTRY GetQueryiv(GLenum target, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname,
params); params);
...@@ -983,6 +1031,7 @@ void GL_APIENTRY GetQueryiv(GLenum target, GLenum pname, GLint *params) ...@@ -983,6 +1031,7 @@ void GL_APIENTRY GetQueryiv(GLenum target, GLenum pname, GLint *params)
void GL_APIENTRY GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params) void GL_APIENTRY GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", sampler, pname, EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", sampler, pname,
params); params);
...@@ -1001,6 +1050,7 @@ void GL_APIENTRY GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *pa ...@@ -1001,6 +1050,7 @@ void GL_APIENTRY GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *pa
void GL_APIENTRY GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params) void GL_APIENTRY GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", sampler, pname, EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", sampler, pname,
params); params);
...@@ -1019,6 +1069,7 @@ void GL_APIENTRY GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *para ...@@ -1019,6 +1069,7 @@ void GL_APIENTRY GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *para
const GLubyte *GL_APIENTRY GetStringi(GLenum name, GLuint index) const GLubyte *GL_APIENTRY GetStringi(GLenum name, GLuint index)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum name = 0x%X, GLuint index = %u)", name, index); EVENT("(GLenum name = 0x%X, GLuint index = %u)", name, index);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1038,6 +1089,7 @@ const GLubyte *GL_APIENTRY GetStringi(GLenum name, GLuint index) ...@@ -1038,6 +1089,7 @@ const GLubyte *GL_APIENTRY GetStringi(GLenum name, GLuint index)
void GL_APIENTRY void GL_APIENTRY
GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values) GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLsync sync = 0x%0.8p, GLenum pname = 0x%X, GLsizei bufSize = %d, GLsizei *length = " "(GLsync sync = 0x%0.8p, GLenum pname = 0x%X, GLsizei bufSize = %d, GLsizei *length = "
"0x%0.8p, GLint *values = 0x%0.8p)", "0x%0.8p, GLint *values = 0x%0.8p)",
...@@ -1064,6 +1116,7 @@ void GL_APIENTRY GetTransformFeedbackVarying(GLuint program, ...@@ -1064,6 +1116,7 @@ void GL_APIENTRY GetTransformFeedbackVarying(GLuint program,
GLenum *type, GLenum *type,
GLchar *name) GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLuint index = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, " "(GLuint program = %u, GLuint index = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, "
"GLsizei *size = 0x%0.8p, GLenum *type = 0x%0.8p, GLchar *name = 0x%0.8p)", "GLsizei *size = 0x%0.8p, GLenum *type = 0x%0.8p, GLchar *name = 0x%0.8p)",
...@@ -1086,6 +1139,7 @@ void GL_APIENTRY GetTransformFeedbackVarying(GLuint program, ...@@ -1086,6 +1139,7 @@ void GL_APIENTRY GetTransformFeedbackVarying(GLuint program,
GLuint GL_APIENTRY GetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName) GLuint GL_APIENTRY GetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, const GLchar *uniformBlockName = 0x%0.8p)", program, EVENT("(GLuint program = %u, const GLchar *uniformBlockName = 0x%0.8p)", program,
uniformBlockName); uniformBlockName);
...@@ -1109,6 +1163,7 @@ void GL_APIENTRY GetUniformIndices(GLuint program, ...@@ -1109,6 +1163,7 @@ void GL_APIENTRY GetUniformIndices(GLuint program,
const GLchar *const *uniformNames, const GLchar *const *uniformNames,
GLuint *uniformIndices) GLuint *uniformIndices)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLsizei uniformCount = %d, const GLchar *const*uniformNames = " "(GLuint program = %u, GLsizei uniformCount = %d, const GLchar *const*uniformNames = "
"0x%0.8p, GLuint *uniformIndices = 0x%0.8p)", "0x%0.8p, GLuint *uniformIndices = 0x%0.8p)",
...@@ -1130,6 +1185,7 @@ void GL_APIENTRY GetUniformIndices(GLuint program, ...@@ -1130,6 +1185,7 @@ void GL_APIENTRY GetUniformIndices(GLuint program,
void GL_APIENTRY GetUniformuiv(GLuint program, GLint location, GLuint *params) void GL_APIENTRY GetUniformuiv(GLuint program, GLint location, GLuint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLuint *params = 0x%0.8p)", program, location, EVENT("(GLuint program = %u, GLint location = %d, GLuint *params = 0x%0.8p)", program, location,
params); params);
...@@ -1147,6 +1203,7 @@ void GL_APIENTRY GetUniformuiv(GLuint program, GLint location, GLuint *params) ...@@ -1147,6 +1203,7 @@ void GL_APIENTRY GetUniformuiv(GLuint program, GLint location, GLuint *params)
void GL_APIENTRY GetVertexAttribIiv(GLuint index, GLenum pname, GLint *params) void GL_APIENTRY GetVertexAttribIiv(GLuint index, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", index, pname, EVENT("(GLuint index = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", index, pname,
params); params);
...@@ -1164,6 +1221,7 @@ void GL_APIENTRY GetVertexAttribIiv(GLuint index, GLenum pname, GLint *params) ...@@ -1164,6 +1221,7 @@ void GL_APIENTRY GetVertexAttribIiv(GLuint index, GLenum pname, GLint *params)
void GL_APIENTRY GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params) void GL_APIENTRY GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLenum pname = 0x%X, GLuint *params = 0x%0.8p)", index, pname, EVENT("(GLuint index = %u, GLenum pname = 0x%X, GLuint *params = 0x%0.8p)", index, pname,
params); params);
...@@ -1183,6 +1241,7 @@ void GL_APIENTRY InvalidateFramebuffer(GLenum target, ...@@ -1183,6 +1241,7 @@ void GL_APIENTRY InvalidateFramebuffer(GLenum target,
GLsizei numAttachments, GLsizei numAttachments,
const GLenum *attachments) const GLenum *attachments)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLsizei numAttachments = %d, const GLenum *attachments = 0x%0.8p)", "(GLenum target = 0x%X, GLsizei numAttachments = %d, const GLenum *attachments = 0x%0.8p)",
target, numAttachments, attachments); target, numAttachments, attachments);
...@@ -1209,6 +1268,7 @@ void GL_APIENTRY InvalidateSubFramebuffer(GLenum target, ...@@ -1209,6 +1268,7 @@ void GL_APIENTRY InvalidateSubFramebuffer(GLenum target,
GLsizei width, GLsizei width,
GLsizei height) GLsizei height)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLsizei numAttachments = %d, const GLenum *attachments = 0x%0.8p, " "(GLenum target = 0x%X, GLsizei numAttachments = %d, const GLenum *attachments = 0x%0.8p, "
"GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", "GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)",
...@@ -1232,6 +1292,7 @@ void GL_APIENTRY InvalidateSubFramebuffer(GLenum target, ...@@ -1232,6 +1292,7 @@ void GL_APIENTRY InvalidateSubFramebuffer(GLenum target,
GLboolean GL_APIENTRY IsQuery(GLuint id) GLboolean GL_APIENTRY IsQuery(GLuint id)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint id = %u)", id); EVENT("(GLuint id = %u)", id);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1250,6 +1311,7 @@ GLboolean GL_APIENTRY IsQuery(GLuint id) ...@@ -1250,6 +1311,7 @@ GLboolean GL_APIENTRY IsQuery(GLuint id)
GLboolean GL_APIENTRY IsSampler(GLuint sampler) GLboolean GL_APIENTRY IsSampler(GLuint sampler)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint sampler = %u)", sampler); EVENT("(GLuint sampler = %u)", sampler);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1268,6 +1330,7 @@ GLboolean GL_APIENTRY IsSampler(GLuint sampler) ...@@ -1268,6 +1330,7 @@ GLboolean GL_APIENTRY IsSampler(GLuint sampler)
GLboolean GL_APIENTRY IsSync(GLsync sync) GLboolean GL_APIENTRY IsSync(GLsync sync)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsync sync = 0x%0.8p)", sync); EVENT("(GLsync sync = 0x%0.8p)", sync);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1286,6 +1349,7 @@ GLboolean GL_APIENTRY IsSync(GLsync sync) ...@@ -1286,6 +1349,7 @@ GLboolean GL_APIENTRY IsSync(GLsync sync)
GLboolean GL_APIENTRY IsTransformFeedback(GLuint id) GLboolean GL_APIENTRY IsTransformFeedback(GLuint id)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint id = %u)", id); EVENT("(GLuint id = %u)", id);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1304,6 +1368,7 @@ GLboolean GL_APIENTRY IsTransformFeedback(GLuint id) ...@@ -1304,6 +1368,7 @@ GLboolean GL_APIENTRY IsTransformFeedback(GLuint id)
GLboolean GL_APIENTRY IsVertexArray(GLuint array) GLboolean GL_APIENTRY IsVertexArray(GLuint array)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint array = %u)", array); EVENT("(GLuint array = %u)", array);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1325,6 +1390,7 @@ void *GL_APIENTRY MapBufferRange(GLenum target, ...@@ -1325,6 +1390,7 @@ void *GL_APIENTRY MapBufferRange(GLenum target,
GLsizeiptr length, GLsizeiptr length,
GLbitfield access) GLbitfield access)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr length = %d, GLbitfield access = " "(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr length = %d, GLbitfield access = "
"0x%X)", "0x%X)",
...@@ -1348,6 +1414,7 @@ void *GL_APIENTRY MapBufferRange(GLenum target, ...@@ -1348,6 +1414,7 @@ void *GL_APIENTRY MapBufferRange(GLenum target,
void GL_APIENTRY PauseTransformFeedback() void GL_APIENTRY PauseTransformFeedback()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1367,6 +1434,7 @@ void GL_APIENTRY ProgramBinary(GLuint program, ...@@ -1367,6 +1434,7 @@ void GL_APIENTRY ProgramBinary(GLuint program,
const void *binary, const void *binary,
GLsizei length) GLsizei length)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLenum binaryFormat = 0x%X, const void *binary = 0x%0.8p, GLsizei " "(GLuint program = %u, GLenum binaryFormat = 0x%X, const void *binary = 0x%0.8p, GLsizei "
"length = %d)", "length = %d)",
...@@ -1387,6 +1455,7 @@ void GL_APIENTRY ProgramBinary(GLuint program, ...@@ -1387,6 +1455,7 @@ void GL_APIENTRY ProgramBinary(GLuint program,
void GL_APIENTRY ProgramParameteri(GLuint program, GLenum pname, GLint value) void GL_APIENTRY ProgramParameteri(GLuint program, GLenum pname, GLint value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLenum pname = 0x%X, GLint value = %d)", program, pname, value); EVENT("(GLuint program = %u, GLenum pname = 0x%X, GLint value = %d)", program, pname, value);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1403,6 +1472,7 @@ void GL_APIENTRY ProgramParameteri(GLuint program, GLenum pname, GLint value) ...@@ -1403,6 +1472,7 @@ void GL_APIENTRY ProgramParameteri(GLuint program, GLenum pname, GLint value)
void GL_APIENTRY ReadBuffer(GLenum src) void GL_APIENTRY ReadBuffer(GLenum src)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum src = 0x%X)", src); EVENT("(GLenum src = 0x%X)", src);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1423,6 +1493,7 @@ void GL_APIENTRY RenderbufferStorageMultisample(GLenum target, ...@@ -1423,6 +1493,7 @@ void GL_APIENTRY RenderbufferStorageMultisample(GLenum target,
GLsizei width, GLsizei width,
GLsizei height) GLsizei height)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLsizei samples = %d, GLenum internalformat = 0x%X, GLsizei width " "(GLenum target = 0x%X, GLsizei samples = %d, GLenum internalformat = 0x%X, GLsizei width "
"= %d, GLsizei height = %d)", "= %d, GLsizei height = %d)",
...@@ -1445,6 +1516,7 @@ void GL_APIENTRY RenderbufferStorageMultisample(GLenum target, ...@@ -1445,6 +1516,7 @@ void GL_APIENTRY RenderbufferStorageMultisample(GLenum target,
void GL_APIENTRY ResumeTransformFeedback() void GL_APIENTRY ResumeTransformFeedback()
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("()"); EVENT("()");
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1461,6 +1533,7 @@ void GL_APIENTRY ResumeTransformFeedback() ...@@ -1461,6 +1533,7 @@ void GL_APIENTRY ResumeTransformFeedback()
void GL_APIENTRY SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) void GL_APIENTRY SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLfloat param = %f)", sampler, pname, param); EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLfloat param = %f)", sampler, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1477,6 +1550,7 @@ void GL_APIENTRY SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) ...@@ -1477,6 +1550,7 @@ void GL_APIENTRY SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param)
void GL_APIENTRY SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param) void GL_APIENTRY SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, const GLfloat *param = 0x%0.8p)", sampler, EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, const GLfloat *param = 0x%0.8p)", sampler,
pname, param); pname, param);
...@@ -1494,6 +1568,7 @@ void GL_APIENTRY SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat ...@@ -1494,6 +1568,7 @@ void GL_APIENTRY SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat
void GL_APIENTRY SamplerParameteri(GLuint sampler, GLenum pname, GLint param) void GL_APIENTRY SamplerParameteri(GLuint sampler, GLenum pname, GLint param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLint param = %d)", sampler, pname, param); EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLint param = %d)", sampler, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1510,6 +1585,7 @@ void GL_APIENTRY SamplerParameteri(GLuint sampler, GLenum pname, GLint param) ...@@ -1510,6 +1585,7 @@ void GL_APIENTRY SamplerParameteri(GLuint sampler, GLenum pname, GLint param)
void GL_APIENTRY SamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param) void GL_APIENTRY SamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, const GLint *param = 0x%0.8p)", sampler, EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, const GLint *param = 0x%0.8p)", sampler,
pname, param); pname, param);
...@@ -1536,6 +1612,7 @@ void GL_APIENTRY TexImage3D(GLenum target, ...@@ -1536,6 +1612,7 @@ void GL_APIENTRY TexImage3D(GLenum target,
GLenum type, GLenum type,
const void *pixels) const void *pixels)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLint internalformat = %d, GLsizei width = %d, " "(GLenum target = 0x%X, GLint level = %d, GLint internalformat = %d, GLsizei width = %d, "
"GLsizei height = %d, GLsizei depth = %d, GLint border = %d, GLenum format = 0x%X, GLenum " "GLsizei height = %d, GLsizei depth = %d, GLint border = %d, GLenum format = 0x%X, GLenum "
...@@ -1562,6 +1639,7 @@ void GL_APIENTRY TexImage3D(GLenum target, ...@@ -1562,6 +1639,7 @@ void GL_APIENTRY TexImage3D(GLenum target,
void GL_APIENTRY void GL_APIENTRY
TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLsizei levels = %d, GLenum internalformat = 0x%X, GLsizei width = " "(GLenum target = 0x%X, GLsizei levels = %d, GLenum internalformat = 0x%X, GLsizei width = "
"%d, GLsizei height = %d)", "%d, GLsizei height = %d)",
...@@ -1589,6 +1667,7 @@ void GL_APIENTRY TexStorage3D(GLenum target, ...@@ -1589,6 +1667,7 @@ void GL_APIENTRY TexStorage3D(GLenum target,
GLsizei height, GLsizei height,
GLsizei depth) GLsizei depth)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLsizei levels = %d, GLenum internalformat = 0x%X, GLsizei width = " "(GLenum target = 0x%X, GLsizei levels = %d, GLenum internalformat = 0x%X, GLsizei width = "
"%d, GLsizei height = %d, GLsizei depth = %d)", "%d, GLsizei height = %d, GLsizei depth = %d)",
...@@ -1621,6 +1700,7 @@ void GL_APIENTRY TexSubImage3D(GLenum target, ...@@ -1621,6 +1700,7 @@ void GL_APIENTRY TexSubImage3D(GLenum target,
GLenum type, GLenum type,
const void *pixels) const void *pixels)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint " "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint "
"zoffset = %d, GLsizei width = %d, GLsizei height = %d, GLsizei depth = %d, GLenum format " "zoffset = %d, GLsizei width = %d, GLsizei height = %d, GLsizei depth = %d, GLenum format "
...@@ -1650,6 +1730,7 @@ void GL_APIENTRY TransformFeedbackVaryings(GLuint program, ...@@ -1650,6 +1730,7 @@ void GL_APIENTRY TransformFeedbackVaryings(GLuint program,
const GLchar *const *varyings, const GLchar *const *varyings,
GLenum bufferMode) GLenum bufferMode)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLsizei count = %d, const GLchar *const*varyings = 0x%0.8p, GLenum " "(GLuint program = %u, GLsizei count = %d, const GLchar *const*varyings = 0x%0.8p, GLenum "
"bufferMode = 0x%X)", "bufferMode = 0x%X)",
...@@ -1671,6 +1752,7 @@ void GL_APIENTRY TransformFeedbackVaryings(GLuint program, ...@@ -1671,6 +1752,7 @@ void GL_APIENTRY TransformFeedbackVaryings(GLuint program,
void GL_APIENTRY Uniform1ui(GLint location, GLuint v0) void GL_APIENTRY Uniform1ui(GLint location, GLuint v0)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLuint v0 = %u)", location, v0); EVENT("(GLint location = %d, GLuint v0 = %u)", location, v0);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1687,6 +1769,7 @@ void GL_APIENTRY Uniform1ui(GLint location, GLuint v0) ...@@ -1687,6 +1769,7 @@ void GL_APIENTRY Uniform1ui(GLint location, GLuint v0)
void GL_APIENTRY Uniform1uiv(GLint location, GLsizei count, const GLuint *value) void GL_APIENTRY Uniform1uiv(GLint location, GLsizei count, const GLuint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -1704,6 +1787,7 @@ void GL_APIENTRY Uniform1uiv(GLint location, GLsizei count, const GLuint *value) ...@@ -1704,6 +1787,7 @@ void GL_APIENTRY Uniform1uiv(GLint location, GLsizei count, const GLuint *value)
void GL_APIENTRY Uniform2ui(GLint location, GLuint v0, GLuint v1) void GL_APIENTRY Uniform2ui(GLint location, GLuint v0, GLuint v1)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u)", location, v0, v1); EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u)", location, v0, v1);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1720,6 +1804,7 @@ void GL_APIENTRY Uniform2ui(GLint location, GLuint v0, GLuint v1) ...@@ -1720,6 +1804,7 @@ void GL_APIENTRY Uniform2ui(GLint location, GLuint v0, GLuint v1)
void GL_APIENTRY Uniform2uiv(GLint location, GLsizei count, const GLuint *value) void GL_APIENTRY Uniform2uiv(GLint location, GLsizei count, const GLuint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -1737,6 +1822,7 @@ void GL_APIENTRY Uniform2uiv(GLint location, GLsizei count, const GLuint *value) ...@@ -1737,6 +1822,7 @@ void GL_APIENTRY Uniform2uiv(GLint location, GLsizei count, const GLuint *value)
void GL_APIENTRY Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) void GL_APIENTRY Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = %u)", location, v0, v1, EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = %u)", location, v0, v1,
v2); v2);
...@@ -1754,6 +1840,7 @@ void GL_APIENTRY Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) ...@@ -1754,6 +1840,7 @@ void GL_APIENTRY Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2)
void GL_APIENTRY Uniform3uiv(GLint location, GLsizei count, const GLuint *value) void GL_APIENTRY Uniform3uiv(GLint location, GLsizei count, const GLuint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -1771,6 +1858,7 @@ void GL_APIENTRY Uniform3uiv(GLint location, GLsizei count, const GLuint *value) ...@@ -1771,6 +1858,7 @@ void GL_APIENTRY Uniform3uiv(GLint location, GLsizei count, const GLuint *value)
void GL_APIENTRY Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) void GL_APIENTRY Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = %u, GLuint v3 = %u)", EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = %u, GLuint v3 = %u)",
location, v0, v1, v2, v3); location, v0, v1, v2, v3);
...@@ -1788,6 +1876,7 @@ void GL_APIENTRY Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLu ...@@ -1788,6 +1876,7 @@ void GL_APIENTRY Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLu
void GL_APIENTRY Uniform4uiv(GLint location, GLsizei count, const GLuint *value) void GL_APIENTRY Uniform4uiv(GLint location, GLsizei count, const GLuint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location,
count, value); count, value);
...@@ -1807,6 +1896,7 @@ void GL_APIENTRY UniformBlockBinding(GLuint program, ...@@ -1807,6 +1896,7 @@ void GL_APIENTRY UniformBlockBinding(GLuint program,
GLuint uniformBlockIndex, GLuint uniformBlockIndex,
GLuint uniformBlockBinding) GLuint uniformBlockBinding)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLuint uniformBlockIndex = %u, GLuint uniformBlockBinding = %u)", EVENT("(GLuint program = %u, GLuint uniformBlockIndex = %u, GLuint uniformBlockBinding = %u)",
program, uniformBlockIndex, uniformBlockBinding); program, uniformBlockIndex, uniformBlockBinding);
...@@ -1829,6 +1919,7 @@ void GL_APIENTRY UniformMatrix2x3fv(GLint location, ...@@ -1829,6 +1919,7 @@ void GL_APIENTRY UniformMatrix2x3fv(GLint location,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -1852,6 +1943,7 @@ void GL_APIENTRY UniformMatrix2x4fv(GLint location, ...@@ -1852,6 +1943,7 @@ void GL_APIENTRY UniformMatrix2x4fv(GLint location,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -1875,6 +1967,7 @@ void GL_APIENTRY UniformMatrix3x2fv(GLint location, ...@@ -1875,6 +1967,7 @@ void GL_APIENTRY UniformMatrix3x2fv(GLint location,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -1898,6 +1991,7 @@ void GL_APIENTRY UniformMatrix3x4fv(GLint location, ...@@ -1898,6 +1991,7 @@ void GL_APIENTRY UniformMatrix3x4fv(GLint location,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -1921,6 +2015,7 @@ void GL_APIENTRY UniformMatrix4x2fv(GLint location, ...@@ -1921,6 +2015,7 @@ void GL_APIENTRY UniformMatrix4x2fv(GLint location,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -1944,6 +2039,7 @@ void GL_APIENTRY UniformMatrix4x3fv(GLint location, ...@@ -1944,6 +2039,7 @@ void GL_APIENTRY UniformMatrix4x3fv(GLint location,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -1964,6 +2060,7 @@ void GL_APIENTRY UniformMatrix4x3fv(GLint location, ...@@ -1964,6 +2060,7 @@ void GL_APIENTRY UniformMatrix4x3fv(GLint location,
GLboolean GL_APIENTRY UnmapBuffer(GLenum target) GLboolean GL_APIENTRY UnmapBuffer(GLenum target)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X)", target); EVENT("(GLenum target = 0x%X)", target);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1983,6 +2080,7 @@ GLboolean GL_APIENTRY UnmapBuffer(GLenum target) ...@@ -1983,6 +2080,7 @@ GLboolean GL_APIENTRY UnmapBuffer(GLenum target)
void GL_APIENTRY VertexAttribDivisor(GLuint index, GLuint divisor) void GL_APIENTRY VertexAttribDivisor(GLuint index, GLuint divisor)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLuint divisor = %u)", index, divisor); EVENT("(GLuint index = %u, GLuint divisor = %u)", index, divisor);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1999,6 +2097,7 @@ void GL_APIENTRY VertexAttribDivisor(GLuint index, GLuint divisor) ...@@ -1999,6 +2097,7 @@ void GL_APIENTRY VertexAttribDivisor(GLuint index, GLuint divisor)
void GL_APIENTRY VertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w) void GL_APIENTRY VertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLint x = %d, GLint y = %d, GLint z = %d, GLint w = %d)", index, x, EVENT("(GLuint index = %u, GLint x = %d, GLint y = %d, GLint z = %d, GLint w = %d)", index, x,
y, z, w); y, z, w);
...@@ -2016,6 +2115,7 @@ void GL_APIENTRY VertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint ...@@ -2016,6 +2115,7 @@ void GL_APIENTRY VertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint
void GL_APIENTRY VertexAttribI4iv(GLuint index, const GLint *v) void GL_APIENTRY VertexAttribI4iv(GLuint index, const GLint *v)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, const GLint *v = 0x%0.8p)", index, v); EVENT("(GLuint index = %u, const GLint *v = 0x%0.8p)", index, v);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2032,6 +2132,7 @@ void GL_APIENTRY VertexAttribI4iv(GLuint index, const GLint *v) ...@@ -2032,6 +2132,7 @@ void GL_APIENTRY VertexAttribI4iv(GLuint index, const GLint *v)
void GL_APIENTRY VertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) void GL_APIENTRY VertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, GLuint x = %u, GLuint y = %u, GLuint z = %u, GLuint w = %u)", index, EVENT("(GLuint index = %u, GLuint x = %u, GLuint y = %u, GLuint z = %u, GLuint w = %u)", index,
x, y, z, w); x, y, z, w);
...@@ -2049,6 +2150,7 @@ void GL_APIENTRY VertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GL ...@@ -2049,6 +2150,7 @@ void GL_APIENTRY VertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GL
void GL_APIENTRY VertexAttribI4uiv(GLuint index, const GLuint *v) void GL_APIENTRY VertexAttribI4uiv(GLuint index, const GLuint *v)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint index = %u, const GLuint *v = 0x%0.8p)", index, v); EVENT("(GLuint index = %u, const GLuint *v = 0x%0.8p)", index, v);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -2066,6 +2168,7 @@ void GL_APIENTRY VertexAttribI4uiv(GLuint index, const GLuint *v) ...@@ -2066,6 +2168,7 @@ void GL_APIENTRY VertexAttribI4uiv(GLuint index, const GLuint *v)
void GL_APIENTRY void GL_APIENTRY
VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer) VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint index = %u, GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void " "(GLuint index = %u, GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void "
"*pointer = 0x%0.8p)", "*pointer = 0x%0.8p)",
...@@ -2086,6 +2189,7 @@ VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, cons ...@@ -2086,6 +2189,7 @@ VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, cons
void GL_APIENTRY WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) void GL_APIENTRY WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsync sync = 0x%0.8p, GLbitfield flags = 0x%X, GLuint64 timeout = %llu)", sync, flags, EVENT("(GLsync sync = 0x%0.8p, GLbitfield flags = 0x%X, GLuint64 timeout = %llu)", sync, flags,
timeout); timeout);
......
...@@ -18,6 +18,7 @@ namespace gl ...@@ -18,6 +18,7 @@ namespace gl
{ {
void GL_APIENTRY ActiveShaderProgram(GLuint pipeline, GLuint program) void GL_APIENTRY ActiveShaderProgram(GLuint pipeline, GLuint program)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint pipeline = %u, GLuint program = %u)", pipeline, program); EVENT("(GLuint pipeline = %u, GLuint program = %u)", pipeline, program);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -40,6 +41,7 @@ void GL_APIENTRY BindImageTexture(GLuint unit, ...@@ -40,6 +41,7 @@ void GL_APIENTRY BindImageTexture(GLuint unit,
GLenum access, GLenum access,
GLenum format) GLenum format)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint unit = %u, GLuint texture = %u, GLint level = %d, GLboolean layered = %u, GLint " "(GLuint unit = %u, GLuint texture = %u, GLint level = %d, GLboolean layered = %u, GLint "
"layer = %d, GLenum access = 0x%X, GLenum format = 0x%X)", "layer = %d, GLenum access = 0x%X, GLenum format = 0x%X)",
...@@ -61,6 +63,7 @@ void GL_APIENTRY BindImageTexture(GLuint unit, ...@@ -61,6 +63,7 @@ void GL_APIENTRY BindImageTexture(GLuint unit,
void GL_APIENTRY BindProgramPipeline(GLuint pipeline) void GL_APIENTRY BindProgramPipeline(GLuint pipeline)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint pipeline = %u)", pipeline); EVENT("(GLuint pipeline = %u)", pipeline);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -80,6 +83,7 @@ void GL_APIENTRY BindVertexBuffer(GLuint bindingindex, ...@@ -80,6 +83,7 @@ void GL_APIENTRY BindVertexBuffer(GLuint bindingindex,
GLintptr offset, GLintptr offset,
GLsizei stride) GLsizei stride)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint bindingindex = %u, GLuint buffer = %u, GLintptr offset = %d, GLsizei stride = %d)", "(GLuint bindingindex = %u, GLuint buffer = %u, GLintptr offset = %d, GLsizei stride = %d)",
bindingindex, buffer, offset, stride); bindingindex, buffer, offset, stride);
...@@ -99,6 +103,7 @@ void GL_APIENTRY BindVertexBuffer(GLuint bindingindex, ...@@ -99,6 +103,7 @@ void GL_APIENTRY BindVertexBuffer(GLuint bindingindex,
GLuint GL_APIENTRY CreateShaderProgramv(GLenum type, GLsizei count, const GLchar *const *strings) GLuint GL_APIENTRY CreateShaderProgramv(GLenum type, GLsizei count, const GLchar *const *strings)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum type = 0x%X, GLsizei count = %d, const GLchar *const*strings = 0x%0.8p)", type, EVENT("(GLenum type = 0x%X, GLsizei count = %d, const GLchar *const*strings = 0x%0.8p)", type,
count, strings); count, strings);
...@@ -120,6 +125,7 @@ GLuint GL_APIENTRY CreateShaderProgramv(GLenum type, GLsizei count, const GLchar ...@@ -120,6 +125,7 @@ GLuint GL_APIENTRY CreateShaderProgramv(GLenum type, GLsizei count, const GLchar
void GL_APIENTRY DeleteProgramPipelines(GLsizei n, const GLuint *pipelines) void GL_APIENTRY DeleteProgramPipelines(GLsizei n, const GLuint *pipelines)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, const GLuint *pipelines = 0x%0.8p)", n, pipelines); EVENT("(GLsizei n = %d, const GLuint *pipelines = 0x%0.8p)", n, pipelines);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -136,6 +142,7 @@ void GL_APIENTRY DeleteProgramPipelines(GLsizei n, const GLuint *pipelines) ...@@ -136,6 +142,7 @@ void GL_APIENTRY DeleteProgramPipelines(GLsizei n, const GLuint *pipelines)
void GL_APIENTRY DispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z) void GL_APIENTRY DispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint num_groups_x = %u, GLuint num_groups_y = %u, GLuint num_groups_z = %u)", EVENT("(GLuint num_groups_x = %u, GLuint num_groups_y = %u, GLuint num_groups_z = %u)",
num_groups_x, num_groups_y, num_groups_z); num_groups_x, num_groups_y, num_groups_z);
...@@ -155,6 +162,7 @@ void GL_APIENTRY DispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuin ...@@ -155,6 +162,7 @@ void GL_APIENTRY DispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuin
void GL_APIENTRY DispatchComputeIndirect(GLintptr indirect) void GL_APIENTRY DispatchComputeIndirect(GLintptr indirect)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLintptr indirect = %d)", indirect); EVENT("(GLintptr indirect = %d)", indirect);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -171,6 +179,7 @@ void GL_APIENTRY DispatchComputeIndirect(GLintptr indirect) ...@@ -171,6 +179,7 @@ void GL_APIENTRY DispatchComputeIndirect(GLintptr indirect)
void GL_APIENTRY DrawArraysIndirect(GLenum mode, const void *indirect) void GL_APIENTRY DrawArraysIndirect(GLenum mode, const void *indirect)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum mode = 0x%X, const void *indirect = 0x%0.8p)", mode, indirect); EVENT("(GLenum mode = 0x%X, const void *indirect = 0x%0.8p)", mode, indirect);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -188,6 +197,7 @@ void GL_APIENTRY DrawArraysIndirect(GLenum mode, const void *indirect) ...@@ -188,6 +197,7 @@ void GL_APIENTRY DrawArraysIndirect(GLenum mode, const void *indirect)
void GL_APIENTRY DrawElementsIndirect(GLenum mode, GLenum type, const void *indirect) void GL_APIENTRY DrawElementsIndirect(GLenum mode, GLenum type, const void *indirect)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum mode = 0x%X, GLenum type = 0x%X, const void *indirect = 0x%0.8p)", mode, type, EVENT("(GLenum mode = 0x%X, GLenum type = 0x%X, const void *indirect = 0x%0.8p)", mode, type,
indirect); indirect);
...@@ -207,6 +217,7 @@ void GL_APIENTRY DrawElementsIndirect(GLenum mode, GLenum type, const void *indi ...@@ -207,6 +217,7 @@ void GL_APIENTRY DrawElementsIndirect(GLenum mode, GLenum type, const void *indi
void GL_APIENTRY FramebufferParameteri(GLenum target, GLenum pname, GLint param) void GL_APIENTRY FramebufferParameteri(GLenum target, GLenum pname, GLint param)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint param = %d)", target, pname, param); EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint param = %d)", target, pname, param);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -224,6 +235,7 @@ void GL_APIENTRY FramebufferParameteri(GLenum target, GLenum pname, GLint param) ...@@ -224,6 +235,7 @@ void GL_APIENTRY FramebufferParameteri(GLenum target, GLenum pname, GLint param)
void GL_APIENTRY GenProgramPipelines(GLsizei n, GLuint *pipelines) void GL_APIENTRY GenProgramPipelines(GLsizei n, GLuint *pipelines)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLsizei n = %d, GLuint *pipelines = 0x%0.8p)", n, pipelines); EVENT("(GLsizei n = %d, GLuint *pipelines = 0x%0.8p)", n, pipelines);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -240,6 +252,7 @@ void GL_APIENTRY GenProgramPipelines(GLsizei n, GLuint *pipelines) ...@@ -240,6 +252,7 @@ void GL_APIENTRY GenProgramPipelines(GLsizei n, GLuint *pipelines)
void GL_APIENTRY GetBooleani_v(GLenum target, GLuint index, GLboolean *data) void GL_APIENTRY GetBooleani_v(GLenum target, GLuint index, GLboolean *data)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLuint index = %u, GLboolean *data = 0x%0.8p)", target, index, EVENT("(GLenum target = 0x%X, GLuint index = %u, GLboolean *data = 0x%0.8p)", target, index,
data); data);
...@@ -257,6 +270,7 @@ void GL_APIENTRY GetBooleani_v(GLenum target, GLuint index, GLboolean *data) ...@@ -257,6 +270,7 @@ void GL_APIENTRY GetBooleani_v(GLenum target, GLuint index, GLboolean *data)
void GL_APIENTRY GetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params) void GL_APIENTRY GetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname,
params); params);
...@@ -275,6 +289,7 @@ void GL_APIENTRY GetFramebufferParameteriv(GLenum target, GLenum pname, GLint *p ...@@ -275,6 +289,7 @@ void GL_APIENTRY GetFramebufferParameteriv(GLenum target, GLenum pname, GLint *p
void GL_APIENTRY GetMultisamplefv(GLenum pname, GLuint index, GLfloat *val) void GL_APIENTRY GetMultisamplefv(GLenum pname, GLuint index, GLfloat *val)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum pname = 0x%X, GLuint index = %u, GLfloat *val = 0x%0.8p)", pname, index, val); EVENT("(GLenum pname = 0x%X, GLuint index = %u, GLfloat *val = 0x%0.8p)", pname, index, val);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -294,6 +309,7 @@ void GL_APIENTRY GetProgramInterfaceiv(GLuint program, ...@@ -294,6 +309,7 @@ void GL_APIENTRY GetProgramInterfaceiv(GLuint program,
GLenum pname, GLenum pname,
GLint *params) GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLenum programInterface = 0x%X, GLenum pname = 0x%X, GLint *params " "(GLuint program = %u, GLenum programInterface = 0x%X, GLenum pname = 0x%X, GLint *params "
"= 0x%0.8p)", "= 0x%0.8p)",
...@@ -318,6 +334,7 @@ void GL_APIENTRY GetProgramPipelineInfoLog(GLuint pipeline, ...@@ -318,6 +334,7 @@ void GL_APIENTRY GetProgramPipelineInfoLog(GLuint pipeline,
GLsizei *length, GLsizei *length,
GLchar *infoLog) GLchar *infoLog)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint pipeline = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *infoLog = " "(GLuint pipeline = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *infoLog = "
"0x%0.8p)", "0x%0.8p)",
...@@ -339,6 +356,7 @@ void GL_APIENTRY GetProgramPipelineInfoLog(GLuint pipeline, ...@@ -339,6 +356,7 @@ void GL_APIENTRY GetProgramPipelineInfoLog(GLuint pipeline,
void GL_APIENTRY GetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params) void GL_APIENTRY GetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint pipeline = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", pipeline, pname, EVENT("(GLuint pipeline = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", pipeline, pname,
params); params);
...@@ -359,6 +377,7 @@ GLuint GL_APIENTRY GetProgramResourceIndex(GLuint program, ...@@ -359,6 +377,7 @@ GLuint GL_APIENTRY GetProgramResourceIndex(GLuint program,
GLenum programInterface, GLenum programInterface,
const GLchar *name) const GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLenum programInterface = 0x%X, const GLchar *name = 0x%0.8p)", EVENT("(GLuint program = %u, GLenum programInterface = 0x%X, const GLchar *name = 0x%0.8p)",
program, programInterface, name); program, programInterface, name);
...@@ -381,6 +400,7 @@ GLint GL_APIENTRY GetProgramResourceLocation(GLuint program, ...@@ -381,6 +400,7 @@ GLint GL_APIENTRY GetProgramResourceLocation(GLuint program,
GLenum programInterface, GLenum programInterface,
const GLchar *name) const GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLenum programInterface = 0x%X, const GLchar *name = 0x%0.8p)", EVENT("(GLuint program = %u, GLenum programInterface = 0x%X, const GLchar *name = 0x%0.8p)",
program, programInterface, name); program, programInterface, name);
...@@ -407,6 +427,7 @@ void GL_APIENTRY GetProgramResourceName(GLuint program, ...@@ -407,6 +427,7 @@ void GL_APIENTRY GetProgramResourceName(GLuint program,
GLsizei *length, GLsizei *length,
GLchar *name) GLchar *name)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLenum programInterface = 0x%X, GLuint index = %u, GLsizei bufSize " "(GLuint program = %u, GLenum programInterface = 0x%X, GLuint index = %u, GLsizei bufSize "
"= %d, GLsizei *length = 0x%0.8p, GLchar *name = 0x%0.8p)", "= %d, GLsizei *length = 0x%0.8p, GLchar *name = 0x%0.8p)",
...@@ -437,6 +458,7 @@ void GL_APIENTRY GetProgramResourceiv(GLuint program, ...@@ -437,6 +458,7 @@ void GL_APIENTRY GetProgramResourceiv(GLuint program,
GLsizei *length, GLsizei *length,
GLint *params) GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLenum programInterface = 0x%X, GLuint index = %u, GLsizei " "(GLuint program = %u, GLenum programInterface = 0x%X, GLuint index = %u, GLsizei "
"propCount = %d, const GLenum *props = 0x%0.8p, GLsizei bufSize = %d, GLsizei *length = " "propCount = %d, const GLenum *props = 0x%0.8p, GLsizei bufSize = %d, GLsizei *length = "
...@@ -461,6 +483,7 @@ void GL_APIENTRY GetProgramResourceiv(GLuint program, ...@@ -461,6 +483,7 @@ void GL_APIENTRY GetProgramResourceiv(GLuint program,
void GL_APIENTRY GetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params) void GL_APIENTRY GetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLint level = %d, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", "(GLenum target = 0x%X, GLint level = %d, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)",
target, level, pname, params); target, level, pname, params);
...@@ -482,6 +505,7 @@ void GL_APIENTRY GetTexLevelParameterfv(GLenum target, GLint level, GLenum pname ...@@ -482,6 +505,7 @@ void GL_APIENTRY GetTexLevelParameterfv(GLenum target, GLint level, GLenum pname
void GL_APIENTRY GetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params) void GL_APIENTRY GetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLenum target = 0x%X, GLint level = %d, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", EVENT("(GLenum target = 0x%X, GLint level = %d, GLenum pname = 0x%X, GLint *params = 0x%0.8p)",
target, level, pname, params); target, level, pname, params);
...@@ -502,6 +526,7 @@ void GL_APIENTRY GetTexLevelParameteriv(GLenum target, GLint level, GLenum pname ...@@ -502,6 +526,7 @@ void GL_APIENTRY GetTexLevelParameteriv(GLenum target, GLint level, GLenum pname
GLboolean GL_APIENTRY IsProgramPipeline(GLuint pipeline) GLboolean GL_APIENTRY IsProgramPipeline(GLuint pipeline)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint pipeline = %u)", pipeline); EVENT("(GLuint pipeline = %u)", pipeline);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -520,6 +545,7 @@ GLboolean GL_APIENTRY IsProgramPipeline(GLuint pipeline) ...@@ -520,6 +545,7 @@ GLboolean GL_APIENTRY IsProgramPipeline(GLuint pipeline)
void GL_APIENTRY MemoryBarrier(GLbitfield barriers) void GL_APIENTRY MemoryBarrier(GLbitfield barriers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLbitfield barriers = 0x%X)", barriers); EVENT("(GLbitfield barriers = 0x%X)", barriers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -536,6 +562,7 @@ void GL_APIENTRY MemoryBarrier(GLbitfield barriers) ...@@ -536,6 +562,7 @@ void GL_APIENTRY MemoryBarrier(GLbitfield barriers)
void GL_APIENTRY MemoryBarrierByRegion(GLbitfield barriers) void GL_APIENTRY MemoryBarrierByRegion(GLbitfield barriers)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLbitfield barriers = 0x%X)", barriers); EVENT("(GLbitfield barriers = 0x%X)", barriers);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -552,6 +579,7 @@ void GL_APIENTRY MemoryBarrierByRegion(GLbitfield barriers) ...@@ -552,6 +579,7 @@ void GL_APIENTRY MemoryBarrierByRegion(GLbitfield barriers)
void GL_APIENTRY ProgramUniform1f(GLuint program, GLint location, GLfloat v0) void GL_APIENTRY ProgramUniform1f(GLuint program, GLint location, GLfloat v0)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLfloat v0 = %f)", program, location, v0); EVENT("(GLuint program = %u, GLint location = %d, GLfloat v0 = %f)", program, location, v0);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -571,6 +599,7 @@ void GL_APIENTRY ProgramUniform1fv(GLuint program, ...@@ -571,6 +599,7 @@ void GL_APIENTRY ProgramUniform1fv(GLuint program,
GLsizei count, GLsizei count,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -591,6 +620,7 @@ void GL_APIENTRY ProgramUniform1fv(GLuint program, ...@@ -591,6 +620,7 @@ void GL_APIENTRY ProgramUniform1fv(GLuint program,
void GL_APIENTRY ProgramUniform1i(GLuint program, GLint location, GLint v0) void GL_APIENTRY ProgramUniform1i(GLuint program, GLint location, GLint v0)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d)", program, location, v0); EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d)", program, location, v0);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -610,6 +640,7 @@ void GL_APIENTRY ProgramUniform1iv(GLuint program, ...@@ -610,6 +640,7 @@ void GL_APIENTRY ProgramUniform1iv(GLuint program,
GLsizei count, GLsizei count,
const GLint *value) const GLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -630,6 +661,7 @@ void GL_APIENTRY ProgramUniform1iv(GLuint program, ...@@ -630,6 +661,7 @@ void GL_APIENTRY ProgramUniform1iv(GLuint program,
void GL_APIENTRY ProgramUniform1ui(GLuint program, GLint location, GLuint v0) void GL_APIENTRY ProgramUniform1ui(GLuint program, GLint location, GLuint v0)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLuint v0 = %u)", program, location, v0); EVENT("(GLuint program = %u, GLint location = %d, GLuint v0 = %u)", program, location, v0);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -649,6 +681,7 @@ void GL_APIENTRY ProgramUniform1uiv(GLuint program, ...@@ -649,6 +681,7 @@ void GL_APIENTRY ProgramUniform1uiv(GLuint program,
GLsizei count, GLsizei count,
const GLuint *value) const GLuint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -669,6 +702,7 @@ void GL_APIENTRY ProgramUniform1uiv(GLuint program, ...@@ -669,6 +702,7 @@ void GL_APIENTRY ProgramUniform1uiv(GLuint program,
void GL_APIENTRY ProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1) void GL_APIENTRY ProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f)", program, EVENT("(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f)", program,
location, v0, v1); location, v0, v1);
...@@ -690,6 +724,7 @@ void GL_APIENTRY ProgramUniform2fv(GLuint program, ...@@ -690,6 +724,7 @@ void GL_APIENTRY ProgramUniform2fv(GLuint program,
GLsizei count, GLsizei count,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -710,6 +745,7 @@ void GL_APIENTRY ProgramUniform2fv(GLuint program, ...@@ -710,6 +745,7 @@ void GL_APIENTRY ProgramUniform2fv(GLuint program,
void GL_APIENTRY ProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1) void GL_APIENTRY ProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d)", program, EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d)", program,
location, v0, v1); location, v0, v1);
...@@ -731,6 +767,7 @@ void GL_APIENTRY ProgramUniform2iv(GLuint program, ...@@ -731,6 +767,7 @@ void GL_APIENTRY ProgramUniform2iv(GLuint program,
GLsizei count, GLsizei count,
const GLint *value) const GLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -751,6 +788,7 @@ void GL_APIENTRY ProgramUniform2iv(GLuint program, ...@@ -751,6 +788,7 @@ void GL_APIENTRY ProgramUniform2iv(GLuint program,
void GL_APIENTRY ProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1) void GL_APIENTRY ProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u)", program, EVENT("(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u)", program,
location, v0, v1); location, v0, v1);
...@@ -772,6 +810,7 @@ void GL_APIENTRY ProgramUniform2uiv(GLuint program, ...@@ -772,6 +810,7 @@ void GL_APIENTRY ProgramUniform2uiv(GLuint program,
GLsizei count, GLsizei count,
const GLuint *value) const GLuint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -793,6 +832,7 @@ void GL_APIENTRY ProgramUniform2uiv(GLuint program, ...@@ -793,6 +832,7 @@ void GL_APIENTRY ProgramUniform2uiv(GLuint program,
void GL_APIENTRY void GL_APIENTRY
ProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) ProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = " "(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = "
"%f)", "%f)",
...@@ -816,6 +856,7 @@ void GL_APIENTRY ProgramUniform3fv(GLuint program, ...@@ -816,6 +856,7 @@ void GL_APIENTRY ProgramUniform3fv(GLuint program,
GLsizei count, GLsizei count,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -836,6 +877,7 @@ void GL_APIENTRY ProgramUniform3fv(GLuint program, ...@@ -836,6 +877,7 @@ void GL_APIENTRY ProgramUniform3fv(GLuint program,
void GL_APIENTRY ProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2) void GL_APIENTRY ProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d)", EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d)",
program, location, v0, v1, v2); program, location, v0, v1, v2);
...@@ -857,6 +899,7 @@ void GL_APIENTRY ProgramUniform3iv(GLuint program, ...@@ -857,6 +899,7 @@ void GL_APIENTRY ProgramUniform3iv(GLuint program,
GLsizei count, GLsizei count,
const GLint *value) const GLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -877,6 +920,7 @@ void GL_APIENTRY ProgramUniform3iv(GLuint program, ...@@ -877,6 +920,7 @@ void GL_APIENTRY ProgramUniform3iv(GLuint program,
void GL_APIENTRY ProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2) void GL_APIENTRY ProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = " "(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = "
"%u)", "%u)",
...@@ -900,6 +944,7 @@ void GL_APIENTRY ProgramUniform3uiv(GLuint program, ...@@ -900,6 +944,7 @@ void GL_APIENTRY ProgramUniform3uiv(GLuint program,
GLsizei count, GLsizei count,
const GLuint *value) const GLuint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -921,6 +966,7 @@ void GL_APIENTRY ProgramUniform3uiv(GLuint program, ...@@ -921,6 +966,7 @@ void GL_APIENTRY ProgramUniform3uiv(GLuint program,
void GL_APIENTRY void GL_APIENTRY
ProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) ProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = " "(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = "
"%f, GLfloat v3 = %f)", "%f, GLfloat v3 = %f)",
...@@ -944,6 +990,7 @@ void GL_APIENTRY ProgramUniform4fv(GLuint program, ...@@ -944,6 +990,7 @@ void GL_APIENTRY ProgramUniform4fv(GLuint program,
GLsizei count, GLsizei count,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -965,6 +1012,7 @@ void GL_APIENTRY ProgramUniform4fv(GLuint program, ...@@ -965,6 +1012,7 @@ void GL_APIENTRY ProgramUniform4fv(GLuint program,
void GL_APIENTRY void GL_APIENTRY
ProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3) ProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d, " "(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d, "
"GLint v3 = %d)", "GLint v3 = %d)",
...@@ -988,6 +1036,7 @@ void GL_APIENTRY ProgramUniform4iv(GLuint program, ...@@ -988,6 +1036,7 @@ void GL_APIENTRY ProgramUniform4iv(GLuint program,
GLsizei count, GLsizei count,
const GLint *value) const GLint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -1009,6 +1058,7 @@ void GL_APIENTRY ProgramUniform4iv(GLuint program, ...@@ -1009,6 +1058,7 @@ void GL_APIENTRY ProgramUniform4iv(GLuint program,
void GL_APIENTRY void GL_APIENTRY
ProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) ProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = " "(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = "
"%u, GLuint v3 = %u)", "%u, GLuint v3 = %u)",
...@@ -1032,6 +1082,7 @@ void GL_APIENTRY ProgramUniform4uiv(GLuint program, ...@@ -1032,6 +1082,7 @@ void GL_APIENTRY ProgramUniform4uiv(GLuint program,
GLsizei count, GLsizei count,
const GLuint *value) const GLuint *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = "
"0x%0.8p)", "0x%0.8p)",
...@@ -1056,6 +1107,7 @@ void GL_APIENTRY ProgramUniformMatrix2fv(GLuint program, ...@@ -1056,6 +1107,7 @@ void GL_APIENTRY ProgramUniformMatrix2fv(GLuint program,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, "
"const GLfloat *value = 0x%0.8p)", "const GLfloat *value = 0x%0.8p)",
...@@ -1081,6 +1133,7 @@ void GL_APIENTRY ProgramUniformMatrix2x3fv(GLuint program, ...@@ -1081,6 +1133,7 @@ void GL_APIENTRY ProgramUniformMatrix2x3fv(GLuint program,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, "
"const GLfloat *value = 0x%0.8p)", "const GLfloat *value = 0x%0.8p)",
...@@ -1106,6 +1159,7 @@ void GL_APIENTRY ProgramUniformMatrix2x4fv(GLuint program, ...@@ -1106,6 +1159,7 @@ void GL_APIENTRY ProgramUniformMatrix2x4fv(GLuint program,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, "
"const GLfloat *value = 0x%0.8p)", "const GLfloat *value = 0x%0.8p)",
...@@ -1131,6 +1185,7 @@ void GL_APIENTRY ProgramUniformMatrix3fv(GLuint program, ...@@ -1131,6 +1185,7 @@ void GL_APIENTRY ProgramUniformMatrix3fv(GLuint program,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, "
"const GLfloat *value = 0x%0.8p)", "const GLfloat *value = 0x%0.8p)",
...@@ -1156,6 +1211,7 @@ void GL_APIENTRY ProgramUniformMatrix3x2fv(GLuint program, ...@@ -1156,6 +1211,7 @@ void GL_APIENTRY ProgramUniformMatrix3x2fv(GLuint program,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, "
"const GLfloat *value = 0x%0.8p)", "const GLfloat *value = 0x%0.8p)",
...@@ -1181,6 +1237,7 @@ void GL_APIENTRY ProgramUniformMatrix3x4fv(GLuint program, ...@@ -1181,6 +1237,7 @@ void GL_APIENTRY ProgramUniformMatrix3x4fv(GLuint program,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, "
"const GLfloat *value = 0x%0.8p)", "const GLfloat *value = 0x%0.8p)",
...@@ -1206,6 +1263,7 @@ void GL_APIENTRY ProgramUniformMatrix4fv(GLuint program, ...@@ -1206,6 +1263,7 @@ void GL_APIENTRY ProgramUniformMatrix4fv(GLuint program,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, "
"const GLfloat *value = 0x%0.8p)", "const GLfloat *value = 0x%0.8p)",
...@@ -1231,6 +1289,7 @@ void GL_APIENTRY ProgramUniformMatrix4x2fv(GLuint program, ...@@ -1231,6 +1289,7 @@ void GL_APIENTRY ProgramUniformMatrix4x2fv(GLuint program,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, "
"const GLfloat *value = 0x%0.8p)", "const GLfloat *value = 0x%0.8p)",
...@@ -1256,6 +1315,7 @@ void GL_APIENTRY ProgramUniformMatrix4x3fv(GLuint program, ...@@ -1256,6 +1315,7 @@ void GL_APIENTRY ProgramUniformMatrix4x3fv(GLuint program,
GLboolean transpose, GLboolean transpose,
const GLfloat *value) const GLfloat *value)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, "
"const GLfloat *value = 0x%0.8p)", "const GLfloat *value = 0x%0.8p)",
...@@ -1277,6 +1337,7 @@ void GL_APIENTRY ProgramUniformMatrix4x3fv(GLuint program, ...@@ -1277,6 +1337,7 @@ void GL_APIENTRY ProgramUniformMatrix4x3fv(GLuint program,
void GL_APIENTRY SampleMaski(GLuint maskNumber, GLbitfield mask) void GL_APIENTRY SampleMaski(GLuint maskNumber, GLbitfield mask)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint maskNumber = %u, GLbitfield mask = 0x%X)", maskNumber, mask); EVENT("(GLuint maskNumber = %u, GLbitfield mask = 0x%X)", maskNumber, mask);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1298,6 +1359,7 @@ void GL_APIENTRY TexStorage2DMultisample(GLenum target, ...@@ -1298,6 +1359,7 @@ void GL_APIENTRY TexStorage2DMultisample(GLenum target,
GLsizei height, GLsizei height,
GLboolean fixedsamplelocations) GLboolean fixedsamplelocations)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLenum target = 0x%X, GLsizei samples = %d, GLenum internalformat = 0x%X, GLsizei width " "(GLenum target = 0x%X, GLsizei samples = %d, GLenum internalformat = 0x%X, GLsizei width "
"= %d, GLsizei height = %d, GLboolean fixedsamplelocations = %u)", "= %d, GLsizei height = %d, GLboolean fixedsamplelocations = %u)",
...@@ -1322,6 +1384,7 @@ void GL_APIENTRY TexStorage2DMultisample(GLenum target, ...@@ -1322,6 +1384,7 @@ void GL_APIENTRY TexStorage2DMultisample(GLenum target,
void GL_APIENTRY UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program) void GL_APIENTRY UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint pipeline = %u, GLbitfield stages = 0x%X, GLuint program = %u)", pipeline, stages, EVENT("(GLuint pipeline = %u, GLbitfield stages = 0x%X, GLuint program = %u)", pipeline, stages,
program); program);
...@@ -1340,6 +1403,7 @@ void GL_APIENTRY UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint pro ...@@ -1340,6 +1403,7 @@ void GL_APIENTRY UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint pro
void GL_APIENTRY ValidateProgramPipeline(GLuint pipeline) void GL_APIENTRY ValidateProgramPipeline(GLuint pipeline)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint pipeline = %u)", pipeline); EVENT("(GLuint pipeline = %u)", pipeline);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1356,6 +1420,7 @@ void GL_APIENTRY ValidateProgramPipeline(GLuint pipeline) ...@@ -1356,6 +1420,7 @@ void GL_APIENTRY ValidateProgramPipeline(GLuint pipeline)
void GL_APIENTRY VertexAttribBinding(GLuint attribindex, GLuint bindingindex) void GL_APIENTRY VertexAttribBinding(GLuint attribindex, GLuint bindingindex)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint attribindex = %u, GLuint bindingindex = %u)", attribindex, bindingindex); EVENT("(GLuint attribindex = %u, GLuint bindingindex = %u)", attribindex, bindingindex);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
...@@ -1377,6 +1442,7 @@ void GL_APIENTRY VertexAttribFormat(GLuint attribindex, ...@@ -1377,6 +1442,7 @@ void GL_APIENTRY VertexAttribFormat(GLuint attribindex,
GLboolean normalized, GLboolean normalized,
GLuint relativeoffset) GLuint relativeoffset)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint attribindex = %u, GLint size = %d, GLenum type = 0x%X, GLboolean normalized = %u, " "(GLuint attribindex = %u, GLint size = %d, GLenum type = 0x%X, GLboolean normalized = %u, "
"GLuint relativeoffset = %u)", "GLuint relativeoffset = %u)",
...@@ -1402,6 +1468,7 @@ void GL_APIENTRY VertexAttribIFormat(GLuint attribindex, ...@@ -1402,6 +1468,7 @@ void GL_APIENTRY VertexAttribIFormat(GLuint attribindex,
GLenum type, GLenum type,
GLuint relativeoffset) GLuint relativeoffset)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT( EVENT(
"(GLuint attribindex = %u, GLint size = %d, GLenum type = 0x%X, GLuint relativeoffset = " "(GLuint attribindex = %u, GLint size = %d, GLenum type = 0x%X, GLuint relativeoffset = "
"%u)", "%u)",
...@@ -1423,6 +1490,7 @@ void GL_APIENTRY VertexAttribIFormat(GLuint attribindex, ...@@ -1423,6 +1490,7 @@ void GL_APIENTRY VertexAttribIFormat(GLuint attribindex,
void GL_APIENTRY VertexBindingDivisor(GLuint bindingindex, GLuint divisor) void GL_APIENTRY VertexBindingDivisor(GLuint bindingindex, GLuint divisor)
{ {
ANGLE_SCOPED_GLOBAL_LOCK();
EVENT("(GLuint bindingindex = %u, GLuint divisor = %u)", bindingindex, divisor); EVENT("(GLuint bindingindex = %u, GLuint divisor = %u)", bindingindex, divisor);
Context *context = GetValidGlobalContext(); Context *context = GetValidGlobalContext();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -93,6 +93,21 @@ Debug *GetDebug() ...@@ -93,6 +93,21 @@ Debug *GetDebug()
} // namespace egl } // namespace egl
#if ANGLE_FORCE_THREAD_SAFETY == ANGLE_ENABLED
namespace angle
{
namespace
{
std::mutex g_Mutex;
} // anonymous namespace
std::mutex &GetGlobalMutex()
{
return g_Mutex;
}
} // namespace angle
#endif
#ifdef ANGLE_PLATFORM_WINDOWS #ifdef ANGLE_PLATFORM_WINDOWS
namespace egl namespace egl
{ {
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
#ifndef LIBGLESV2_GLOBALSTATE_H_ #ifndef LIBGLESV2_GLOBALSTATE_H_
#define LIBGLESV2_GLOBALSTATE_H_ #define LIBGLESV2_GLOBALSTATE_H_
#include "libANGLE/features.h"
#include <mutex>
namespace gl namespace gl
{ {
class Context; class Context;
...@@ -28,4 +32,16 @@ Debug *GetDebug(); ...@@ -28,4 +32,16 @@ Debug *GetDebug();
} // namespace egl } // namespace egl
#if ANGLE_FORCE_THREAD_SAFETY == ANGLE_ENABLED
namespace angle
{
std::mutex &GetGlobalMutex();
} // namespace angle
#define ANGLE_SCOPED_GLOBAL_LOCK() \
std::lock_guard<std::mutex> globalMutexLock(angle::GetGlobalMutex())
#else
#define ANGLE_SCOPED_GLOBAL_LOCK()
#endif
#endif // LIBGLESV2_GLOBALSTATE_H_ #endif // LIBGLESV2_GLOBALSTATE_H_
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