diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-02-07 00:12:28 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-02-07 00:50:22 +0800 |
commit | d12c726bdfb580781665e7c1e780064e8eba46a3 (patch) | |
tree | f57686203b36807eac4f76c5c38a41f6684cc1fc | |
parent | 3067481e92d64694c7272442498a442924d55828 (diff) |
Add st_manager->create_pipe_context.
There is a move to have pipe_screen create contexts.
-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); |