From d12c726bdfb580781665e7c1e780064e8eba46a3 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sun, 7 Feb 2010 00:12:28 +0800 Subject: Add st_manager->create_pipe_context. There is a move to have pipe_screen create contexts. --- st_api.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/st_api.h b/st_api.h index 5a47b63..3b35030 100644 --- a/st_api.h +++ b/st_api.h @@ -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); -- cgit v1.2.3