summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/glx
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-05-21 20:25:54 +0100
committerJakob Bornecrantz <[email protected]>2010-05-21 21:25:07 +0100
commit5f66363f8ed26d6f3fc8fcccde804fe1fea1bbaa (patch)
tree916e3de9803377bd28ae6ac8bd4b51100ec4e656 /src/gallium/state_trackers/glx
parent0853401805fc95c71e237fe9b04ff023cd268361 (diff)
st_api: Add get param function to st_manager
Diffstat (limited to 'src/gallium/state_trackers/glx')
-rw-r--r--src/gallium/state_trackers/glx/xlib/xm_api.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c
index a6f808bc964..ae9faeb424e 100644
--- a/src/gallium/state_trackers/glx/xlib/xm_api.c
+++ b/src/gallium/state_trackers/glx/xlib/xm_api.c
@@ -87,6 +87,12 @@ void xmesa_set_driver( const struct xm_driver *templ )
static struct xmesa_display Displays[MAX_DISPLAYS];
static int NumDisplays = 0;
+static int
+xmesa_get_param(struct st_manager *smapi,
+ enum st_manager_param *param)
+{
+ return 0;
+}
static XMesaDisplay
xmesa_init_display( Display *display )
@@ -116,8 +122,10 @@ xmesa_init_display( Display *display )
xmdpy->display = display;
xmdpy->screen = driver.create_pipe_screen(display);
xmdpy->smapi = CALLOC_STRUCT(st_manager);
- if (xmdpy->smapi)
+ if (xmdpy->smapi) {
xmdpy->smapi->screen = xmdpy->screen;
+ xmdpy->smapi->get_param = xmesa_get_param;
+ }
if (xmdpy->screen && xmdpy->smapi) {
pipe_mutex_init(xmdpy->mutex);