Re: [Mesa-dev] [RFC PATCH 1/6] st_api: Remove st_module

2010-04-25 Thread Kristian Høgsberg
2010/4/25 Chia-I Wu : > 2010/4/25 Kristian Høgsberg : >> On Sat, Apr 24, 2010 at 10:25 AM, Jakob Bornecrantz >>> -PUBLIC const struct st_module st_module_OpenGL_ES1 = { >>> -   .api = ST_API_OPENGL_ES1, >>> -   .create_api = st_manager_create_api >>> -}; >>> +PUBLIC struct st_api * >>> +st_api_crea

Re: [Mesa-dev] [RFC PATCH 1/6] st_api: Remove st_module

2010-04-25 Thread Chia-I Wu
2010/4/25 Kristian Høgsberg : > On Sat, Apr 24, 2010 at 10:25 AM, Jakob Bornecrantz >> -PUBLIC const struct st_module st_module_OpenGL_ES1 = { >> -   .api = ST_API_OPENGL_ES1, >> -   .create_api = st_manager_create_api >> -}; >> +PUBLIC struct st_api * >> +st_api_create_OpenGL_ES1() >> +{ >> +   re

Re: [Mesa-dev] [RFC PATCH 1/6] st_api: Remove st_module

2010-04-24 Thread Kristian Høgsberg
On Sat, Apr 24, 2010 at 10:25 AM, Jakob Bornecrantz wrote: > The struct st_module isn't needed as it is the same thing as the st_api > struct. That is they both represent the API. Instead just use a single > function entry point to the the API. > --- >  src/gallium/include/state_tracker/st_api.h  

[Mesa-dev] [RFC PATCH 1/6] st_api: Remove st_module

2010-04-24 Thread Jakob Bornecrantz
The struct st_module isn't needed as it is the same thing as the st_api struct. That is they both represent the API. Instead just use a single function entry point to the the API. --- src/gallium/include/state_tracker/st_api.h | 35 +++- src/gallium/state_trackers/dri/com