summaryrefslogtreecommitdiff
path: root/src/mesa/main/es_generator.py
AgeCommit message (Collapse)Author
2010-11-02mesa: Allow contexts of different APIs to coexist.Chia-I Wu
This effectively redoes 1741ddb747ca0be284315adb4b6fe67ddf292d03 in a way that allows contexts of different APIs to coexist. First, the changes to the remap table are reverted. The remap table (driDispatchRemapTable) is always initialized in the same way regardless of the context API. es_generator.py is updated to use a local remap table, whose sole purpose is to help initialize its dispatch table. The local remap table and the global one are always different, as they use different glapidispatch.h. But the dispatch tables initialized by both remap tables are always compatible with glapi (libGL.so). Finally, the semantics of one_time_init are changed to per-api one-time initialization.
2010-11-02mesa: Select FEATURE_remap_table when multiple APIs are enabled.Chia-I Wu
Core mesa should query glapi for the positions of the functions in _glapi_table when multiple APIs are supported. It does not know which glapitable.h glapi used.
2010-10-27mesa: Remove unnecessary glapitable.h includes.Chia-I Wu
With 07b85457d95bcc70588584e9380c51cd63aa3a2b, glapitable.h is included by core mesa only to know the size of _glapi_table. It is not necessary as the same info is given by _gloffset_COUNT. This change makes _glapi_table opaque to core mesa. All operations on it are supposed to go through one of the SET/GET/CALL macros.
2010-10-27glapi: Merge glapioffsets.h into glapidispath.h.Chia-I Wu
Move defines in glapioffsets.h to glapidispatch.h. Rename _gloffset_FIRST_DYNAMIC to _gloffset_COUNT, which is equal to the number of entries in _glapi_table. Consistently use SET_by_offset, GET_by_offset, CALL_by_offset, and _gloffset_* to recursively define all SET/GET/CALL macros.
2010-10-27glapi: Move glapidispatch.h to core mesa.Chia-I Wu
It is a core mesa header, not a glapi header.
2010-08-23mesa: Assorted fixes for es_generator.py on win32.Chia-I Wu
Fix mixed use of GL_APIENTRY and GLAPIENTRY. Parameter list of a function prototype should never be empty.
2010-08-20mesa: Decorate functions with GL_APIENTRY in es_generator.py.Chia-I Wu
Note that GLES headers use GL_APIENTRY, not GLAPIENTRY.
2010-05-31Update OpenGL ES headers.Chia-I Wu
2010-05-07glapi: Move to src/mapi/.Chia-I Wu
Move glapi to src/mapi/{glapi,es1api,es2api}.
2010-05-05mesa: Fix build of ES overlay.Chia-I Wu
ES overlay is built with FEATURE_ES1 or FEATURE_ES2, and is built without FEATURE_GL. Fix the build by always building OpenGL ES sources, but test for FEATURE_ES1 or FEATURE_ES2. Also, define symbols that are missing because FEATURE_GL is not defined.
2010-04-27es: Prefix the get* functions with _es1/2 so they don't conflictKristian Høgsberg
2010-04-27mesa: Move api_exec_es*.c into mesa/mainKristian Høgsberg
This requires renaming a few functions to have unique names so that they can all live within the same driver.