gallium: introduce 'pipe_screen' for context-independent functions

This will allow creating textures before a rendering context exists, for example.
Only implemented in i915 driver for now.  i915pipe->texture_create() just
dispatches through to the i915screen->texture_create() to avoid state tracker
changes for now.
This commit is contained in:
Brian
2008-02-26 20:15:14 -07:00
parent dc2b6e2c33
commit aa59a937cc
14 changed files with 418 additions and 63 deletions

View File

@@ -36,6 +36,8 @@ extern "C" {
#endif
struct pipe_screen;
struct pipe_state_cache;
/* Opaque driver handles:
@@ -51,6 +53,7 @@ struct pipe_query;
*/
struct pipe_context {
struct pipe_winsys *winsys;
struct pipe_screen *screen;
void *priv; /** context private data (for DRI for example) */