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.
This commit is contained in:
@@ -38,6 +38,7 @@ SYS_LIBS = -lm -pthread
|
||||
|
||||
|
||||
INCLUDE_DIRS = \
|
||||
-I$(TOP)/src/mesa \
|
||||
-I$(TOP)/src/gallium/include
|
||||
|
||||
.c.o:
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -39,9 +39,15 @@
|
||||
#include "target-helpers/wrap_screen.h"
|
||||
#include "xm_public.h"
|
||||
|
||||
#include "state_tracker/st_manager.h"
|
||||
|
||||
/* advertise OpenGL support */
|
||||
PUBLIC const int st_api_OpenGL = 1;
|
||||
|
||||
PUBLIC const struct st_module st_module_OpenGL = {
|
||||
.api = ST_API_OPENGL,
|
||||
.create_api = st_manager_create_api
|
||||
};
|
||||
|
||||
/* Helper function to build a subset of a driver stack consisting of
|
||||
* one of the software rasterizers (cell, llvmpipe, softpipe) and the
|
||||
|
||||
Reference in New Issue
Block a user