From: Chia-I Wu Date: Tue, 12 Jan 2010 03:25:02 +0000 (+0800) Subject: Merge branch 'master' into opengl-es-v2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=562c127693200822f04a145db50add1be2425d7b;p=mesa.git Merge branch 'master' into opengl-es-v2 Conflicts: src/mesa/main/dd.h --- 562c127693200822f04a145db50add1be2425d7b diff --cc src/mesa/glapi/glapi.c index ad72fe48bec,84e5a8270a0..adb47f9fecb --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@@ -69,11 -69,10 +69,10 @@@ #include #endif -#include "glapi.h" -#include "glapioffsets.h" -#include "glapitable.h" +#include "glapi/glapi.h" +#include "glapi/glapioffsets.h" +#include "glapi/glapitable.h" - /***** BEGIN NO-OP DISPATCH *****/ static GLboolean WarnFlag = GL_FALSE; @@@ -135,17 -143,12 +143,12 @@@ NoOpGeneric(void #define DISPATCH_TABLE_NAME __glapi_noop_table #define UNUSED_TABLE_NAME __unused_noop_functions - #define TABLE_ENTRY(name) (_glapi_proc) NoOp##name - static GLint NoOpUnused(void) { - if (warn()) { - warning_func(NULL, "GL User Error: calling extension function without a current context\n"); - } - return 0; + return warn("extension function"); } -#include "glapitemp.h" +#include "glapi/glapitemp.h" /***** END NO-OP DISPATCH *****/ diff --cc src/mesa/glapi/glapitemp.h index 0138abddb80,96b2ac72682..6767a07673d --- a/src/mesa/glapi/glapitemp.h +++ b/src/mesa/glapi/glapitemp.h @@@ -6812,12 -6890,11 +6865,13 @@@ static _glapi_proc UNUSED_TABLE_NAME[] TABLE_ENTRY(GetAttribLocation), TABLE_ENTRY(DrawBuffers), TABLE_ENTRY(DrawBuffersATI), + TABLE_ENTRY(RenderbufferStorageMultisampleEXT), TABLE_ENTRY(PointParameterf), TABLE_ENTRY(PointParameterfARB), + TABLE_ENTRY(_dispatch_stub_592), TABLE_ENTRY(PointParameterfv), TABLE_ENTRY(PointParameterfvARB), + TABLE_ENTRY(_dispatch_stub_593), TABLE_ENTRY(SecondaryColor3b), TABLE_ENTRY(SecondaryColor3bv), TABLE_ENTRY(SecondaryColor3d), diff --cc src/mesa/main/dd.h index 0488a693b2b,e99e87d9059..6705c901dd5 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@@ -1047,15 -1017,10 +1017,20 @@@ struct dd_function_table /*@}*/ #endif + /** GL_NV_conditional_render */ + void (*BeginConditionalRender)(GLcontext *ctx, struct gl_query_object *q, + GLenum mode); + void (*EndConditionalRender)(GLcontext *ctx, struct gl_query_object *q); ++ +#if FEATURE_OES_draw_texture + /** + * \name GL_OES_draw_texture interface + */ + /*@{*/ + void (*DrawTex)(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z, + GLfloat width, GLfloat height); + /*@}*/ +#endif }; diff --cc src/mesa/main/mtypes.h index e91c7e5ac16,5227565f876..7eff5cadd0d --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@@ -2485,11 -2519,10 +2519,13 @@@ struct gl_extension GLboolean SGIS_texture_lod; GLboolean TDFX_texture_compression_FXT1; GLboolean S3_s3tc; +#if FEATURE_OES_draw_texture + GLboolean OES_draw_texture; +#endif /* FEATURE_OES_draw_texture */ /** The extension string */ const GLubyte *String; + /** Number of supported extensions */ + GLuint Count; }; diff --cc src/mesa/main/texgen.c index 8d114108f8c,be4e03bc56c..2ae839b2a63 --- a/src/mesa/main/texgen.c +++ b/src/mesa/main/texgen.c @@@ -208,10 -210,13 +210,13 @@@ _mesa_TexGendv(GLenum coord, GLenum pna } -static void GLAPIENTRY +void GLAPIENTRY _mesa_TexGenf( GLenum coord, GLenum pname, GLfloat param ) { - _mesa_TexGenfv(coord, pname, ¶m); + GLfloat p[4]; + p[0] = param; + p[1] = p[2] = p[3] = 0.0F; + _mesa_TexGenfv(coord, pname, p); } diff --cc src/mesa/state_tracker/st_context.c index e82598c8e7e,e4f18c842ca..145bd62b83e --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@@ -330,13 -330,7 +330,12 @@@ void st_init_driver_functions(struct dd st_init_drawpixels_functions(functions); st_init_rasterpos_functions(functions); #endif + +#if FEATURE_OES_draw_texture + st_init_drawtex_functions(functions); +#endif + st_init_fbo_functions(functions); - st_init_get_functions(functions); #if FEATURE_feedback st_init_feedback_functions(functions); #endif