summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_winsys.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-26 10:45:42 -0600
committerBrian <[email protected]>2007-10-26 10:45:42 -0600
commite4f6f0ec02133e9297c3f2db787dee14bf0ae6e1 (patch)
treea5706d83a96964b2cf63cd66ca25ed63641b4a56 /src/mesa/pipe/p_winsys.h
parentf7be1b419aab80c4e011183611964eb4d7c023c2 (diff)
surface_alloc() is now a winsys function.
This allows surfaces to be allocated without a rendering context. A few loose ends to resolve, but in working condition.
Diffstat (limited to 'src/mesa/pipe/p_winsys.h')
-rw-r--r--src/mesa/pipe/p_winsys.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_winsys.h b/src/mesa/pipe/p_winsys.h
index 3b04c44733c..10a2caf1a24 100644
--- a/src/mesa/pipe/p_winsys.h
+++ b/src/mesa/pipe/p_winsys.h
@@ -77,6 +77,10 @@ struct pipe_winsys
void (*region_release)(struct pipe_winsys *ws, struct pipe_region **r);
+ /** allocate a new surface (no context dependency) */
+ struct pipe_surface *(*surface_alloc)(struct pipe_winsys *ws,
+ unsigned format);
+
/**
* The buffer manager is modeled after the dri_bufmgr interface, which
* in turn is modeled after the ARB_vertex_buffer_object extension,