diff options
author | José Fonseca <[email protected]> | 2007-12-11 01:14:38 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2007-12-11 01:14:38 +0000 |
commit | 12363674e5aa39b780020339038186b7715bd4b2 (patch) | |
tree | a7bb56b6ccf37e29000f6ef72fb602908c4c08e1 /src/mesa/pipe/p_winsys.h | |
parent | 609538f57c93c6b6166777a329d80c46fef86f0b (diff) |
Add surface storage allocation function to winsys interface.
Diffstat (limited to 'src/mesa/pipe/p_winsys.h')
-rw-r--r-- | src/mesa/pipe/p_winsys.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mesa/pipe/p_winsys.h b/src/mesa/pipe/p_winsys.h index 1418af69186..aa9362ec0ba 100644 --- a/src/mesa/pipe/p_winsys.h +++ b/src/mesa/pipe/p_winsys.h @@ -76,16 +76,16 @@ struct pipe_winsys const char *, ... ); - /** - * flags is bitmask of PIPE_SURFACE_FLAG_RENDER, PIPE_SURFACE_FLAG_TEXTURE - */ - unsigned (*surface_pitch)(struct pipe_winsys *ws, unsigned cpp, - unsigned with, unsigned flags); - /** allocate a new surface (no context dependency) */ - struct pipe_surface *(*surface_alloc)(struct pipe_winsys *ws, - enum pipe_format format); - + struct pipe_surface *(*surface_alloc)(struct pipe_winsys *ws); + + /** allocate storage for a pipe_surface */ + int (*surface_alloc_storage)(struct pipe_winsys *ws, + struct pipe_surface *surf, + unsigned width, unsigned height, + enum pipe_format format, + unsigned flags); + void (*surface_release)(struct pipe_winsys *ws, struct pipe_surface **s); |