ST_CONTEXT_RESOURCE_OPENVG_PARENT_IMAGE
};
+/**
+ * Value to st_manager->get_param function.
+ */
+enum st_manager_param {
+ ST_MANAGER_TEMP,
+};
+
/**
* The return type of st_api->get_proc_address.
*/
*/
boolean (*get_egl_image)(struct st_manager *smapi,
struct st_egl_image *stimg);
+
+ /**
+ * Query an manager param.
+ */
+ int (*get_param)(struct st_manager *smapi,
+ enum st_manager_param param);
};
/**
return TRUE;
}
+static int
+dri_get_param(struct st_manager *smapi,
+ enum st_manager_param param)
+{
+ return 0;
+}
+
static void
dri_destroy_option_cache(struct dri_screen * screen)
{
}
screen->base.get_egl_image = dri_get_egl_image;
+ screen->base.get_param = dri_get_param;
screen->st_api = st_gl_api_create();
if (!screen->st_api)
return TRUE;
}
+static int
+egl_g3d_st_manager_get_param(struct st_manager *smapi,
+ enum st_manager_param param)
+{
+ return 0;
+}
+
struct st_manager *
egl_g3d_create_st_manager(_EGLDisplay *dpy)
{
gsmapi->base.screen = gdpy->native->screen;
gsmapi->base.get_egl_image = egl_g3d_st_manager_get_egl_image;
+ gsmapi->base.get_param = egl_g3d_st_manager_get_param;
}
return &gsmapi->base;;
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 )
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);
struct stw_device *stw_dev = NULL;
+static int
+stw_get_param(struct st_manager *smapi,
+ enum st_manager_param param)
+{
+ return 0;
+}
boolean
stw_init(const struct stw_winsys *stw_winsys)
stw_winsys->get_adapter_luid(screen, &stw_dev->AdapterLuid);
stw_dev->smapi->screen = screen;
+ stw_dev->smapi->get_param = stw_get_param;
stw_dev->screen = screen;
pipe_mutex_init( stw_dev->ctx_mutex );