diff options
author | Chia-I Wu <[email protected]> | 2010-03-16 15:12:46 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-03-16 15:12:46 +0800 |
commit | 9d3a873f425fde83628b547c4b4638f39d78c1b9 (patch) | |
tree | 890dce800787f2a896554c96064eb51f0138950b /src/gallium/targets | |
parent | 95d43bccde9ba5c0727bb2b9e52d050dacfa0cfa (diff) | |
parent | a66d0081044bfcbfbe72ecbc27692387e4716e5c (diff) |
Merge remote branch 'origin/gallium-st-api'
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/libgl-xlib/xlib.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/targets/libgl-xlib/xlib.c b/src/gallium/targets/libgl-xlib/xlib.c index 5bb6c5c38ce..eff4b4778bf 100644 --- a/src/gallium/targets/libgl-xlib/xlib.c +++ b/src/gallium/targets/libgl-xlib/xlib.c @@ -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 @@ -100,9 +106,10 @@ fail: return NULL; } -struct xm_driver xlib_driver = +static struct xm_driver xlib_driver = { .create_pipe_screen = swrast_xlib_create_screen, + .create_st_api = st_manager_create_api, }; |