From 63ab2509bf324812d9632c12528677724bdb8775 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 5 May 2010 15:38:02 +0800 Subject: gallium: Add egl-apis target. The new target installs client API modules to EGL_DRIVER_INSTALL_DIR. They are used by st/egl. The client APIs are built from OpenGL and OpenVG state trackers. For this to work, st/vega is modified to produce a static library, libvega.a, instead. st/es is also not needed any more. It is removed and --with-state-trackers=es is replaced by --enable-gles-overlay. As st/egl now has its own client API modules, this solves the ABI issue between st/egl and client APIs, as long as the client API modules are distributed with st/egl. Plus, this allows st/egl to support OpenGL with non-Gallium libGL.so. --- src/gallium/targets/egl-apis/api_GLESv2.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/gallium/targets/egl-apis/api_GLESv2.c (limited to 'src/gallium/targets/egl-apis/api_GLESv2.c') diff --git a/src/gallium/targets/egl-apis/api_GLESv2.c b/src/gallium/targets/egl-apis/api_GLESv2.c new file mode 100644 index 0000000000..5c773aaf93 --- /dev/null +++ b/src/gallium/targets/egl-apis/api_GLESv2.c @@ -0,0 +1,8 @@ +#include "state_tracker/st_gl_api.h" + +PUBLIC struct st_api * +st_api_create_OpenGL_ES2() +{ + /* linker magic creates different versions */ + return st_gl_api_create(); +} -- cgit v1.2.3