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:
@@ -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) */
|
||||
|
||||
|
Reference in New Issue
Block a user