diff options
-rw-r--r-- | st_api.h | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -306,6 +306,8 @@ struct st_context_iface */ struct st_manager { + struct pipe_screen *screen; + /** * Lock and unlock a state tracker manager resource. * @@ -320,6 +322,14 @@ struct st_manager void (*unlock_resource)(struct st_manager *smapi, struct st_context_iface *stctxi, enum st_manager_resource_type type, void *res); + + /** + * Create a pipe context. + * + * XXX this callback should go away once the pipe_screen can create + * contexts. + */ + struct pipe_context *(*create_pipe_context)(struct st_manager *smapi); }; /** @@ -350,13 +360,10 @@ struct st_api /** * Create a rendering context. * - * XXX: The pipe argument should go away once - * the pipe_screen can create contexts. * XXX: Is visual needed? */ struct st_context_iface *(*create_context)(struct st_api *stapi, struct st_manager *smapi, - struct pipe_context *pipe, const struct st_visual *visual, struct st_context_iface *stsharei); |