From e8947a5fa020a24e7e07318f1ea9d85467d7d9e6 Mon Sep 17 00:00:00 2001 From: Michal Krol Date: Sun, 30 Jul 2006 15:29:11 +0000 Subject: Add support for GL_MESA_shader_debug. --- src/mesa/drivers/dri/common/extension_helper.h | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/common/extension_helper.h b/src/mesa/drivers/dri/common/extension_helper.h index 6c8f71d66a..5892c1dee0 100644 --- a/src/mesa/drivers/dri/common/extension_helper.h +++ b/src/mesa/drivers/dri/common/extension_helper.h @@ -258,6 +258,13 @@ static const char VertexAttrib2fARB_names[] = ""; #endif +#if defined(need_GL_MESA_shader_debug) +static const char GetDebugLogLengthMESA_names[] = + "iii\0" /* Parameter signature */ + "glGetDebugLogLengthMESA\0" + ""; +#endif + #if defined(need_GL_EXT_histogram) static const char GetHistogramParameterivEXT_names[] = "iip\0" /* Parameter signature */ @@ -482,6 +489,13 @@ static const char GlobalAlphaFactorubSUN_names[] = ""; #endif +#if defined(need_GL_MESA_shader_debug) +static const char ClearDebugLogMESA_names[] = + "iii\0" /* Parameter signature */ + "glClearDebugLogMESA\0" + ""; +#endif + #if defined(need_GL_EXT_histogram) static const char ResetHistogram_names[] = "i\0" /* Parameter signature */ @@ -635,6 +649,13 @@ static const char FinishAsyncSGIX_names[] = ""; #endif +#if defined(need_GL_MESA_shader_debug) +static const char GetDebugLogMESA_names[] = + "iiiipp\0" /* Parameter signature */ + "glGetDebugLogMESA\0" + ""; +#endif + #if defined(need_GL_VERSION_1_4) || defined(need_GL_EXT_fog_coord) static const char FogCoorddEXT_names[] = "d\0" /* Parameter signature */ @@ -4285,6 +4306,13 @@ static const char VertexAttrib4svARB_names[] = ""; #endif +#if defined(need_GL_MESA_shader_debug) +static const char CreateDebugObjectMESA_names[] = + "\0" /* Parameter signature */ + "glCreateDebugObjectMESA\0" + ""; +#endif + #if defined(need_GL_ARB_shader_objects) static const char Uniform3fARB_names[] = "ifff\0" /* Parameter signature */ @@ -5335,6 +5363,16 @@ static const struct dri_extension_function GL_MESA_resize_buffers_functions[] = }; #endif +#if defined(need_GL_MESA_shader_debug) +static const struct dri_extension_function GL_MESA_shader_debug_functions[] = { + { GetDebugLogLengthMESA_names, GetDebugLogLengthMESA_remap_index, -1 }, + { ClearDebugLogMESA_names, ClearDebugLogMESA_remap_index, -1 }, + { GetDebugLogMESA_names, GetDebugLogMESA_remap_index, -1 }, + { CreateDebugObjectMESA_names, CreateDebugObjectMESA_remap_index, -1 }, + { NULL, 0, 0 } +}; +#endif + #if defined(need_GL_MESA_window_pos) static const struct dri_extension_function GL_MESA_window_pos_functions[] = { { WindowPos3fMESA_names, WindowPos3fMESA_remap_index, 523 }, -- cgit v1.2.3