diff options
author | Chia-I Wu <[email protected]> | 2010-02-07 20:17:48 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-03-12 09:57:07 +0800 |
commit | 3a3a31bf88c42890fbc2e4211981f97bd43dff4a (patch) | |
tree | 5e566d05f3b26ac4939b9aa28b3863c698d6c231 /src/gallium/state_trackers/es | |
parent | de8a879f5c77dbf5c31251e07b2f1b8d2635716c (diff) |
winsys/xlib, st/es: Advertise st_api.h support.
This is done by defining one of st_module_OpenGL_ES1,
st_module_OpenGL_ES2, and st_module_OpenGL.
Diffstat (limited to 'src/gallium/state_trackers/es')
-rw-r--r-- | src/gallium/state_trackers/es/Makefile | 1 | ||||
-rw-r--r-- | src/gallium/state_trackers/es/st_es1.c | 7 | ||||
-rw-r--r-- | src/gallium/state_trackers/es/st_es2.c | 7 |
3 files changed, 13 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/es/Makefile b/src/gallium/state_trackers/es/Makefile index b0365512719..e33685d2471 100644 --- a/src/gallium/state_trackers/es/Makefile +++ b/src/gallium/state_trackers/es/Makefile @@ -38,6 +38,7 @@ SYS_LIBS = -lm -pthread INCLUDE_DIRS = \ + -I$(TOP)/src/mesa \ -I$(TOP)/src/gallium/include .c.o: diff --git a/src/gallium/state_trackers/es/st_es1.c b/src/gallium/state_trackers/es/st_es1.c index 25bc53b21eb..4e89e06b34c 100644 --- a/src/gallium/state_trackers/es/st_es1.c +++ b/src/gallium/state_trackers/es/st_es1.c @@ -1,3 +1,8 @@ -#include "pipe/p_compiler.h" +#include "state_tracker/st_manager.h" PUBLIC const int st_api_OpenGL_ES1 = 1; + +PUBLIC const struct st_module st_module_OpenGL_ES1 = { + .api = ST_API_OPENGL_ES1, + .create_api = st_manager_create_api +}; diff --git a/src/gallium/state_trackers/es/st_es2.c b/src/gallium/state_trackers/es/st_es2.c index 171ea62b97f..82e88b176ac 100644 --- a/src/gallium/state_trackers/es/st_es2.c +++ b/src/gallium/state_trackers/es/st_es2.c @@ -1,3 +1,8 @@ -#include "pipe/p_compiler.h" +#include "state_tracker/st_manager.h" PUBLIC const int st_api_OpenGL_ES2 = 1; + +PUBLIC const struct st_module st_module_OpenGL_ES2 = { + .api = ST_API_OPENGL_ES2, + .create_api = st_manager_create_api +}; |