diff options
author | Brian <[email protected]> | 2007-10-26 10:45:42 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-26 10:45:42 -0600 |
commit | e4f6f0ec02133e9297c3f2db787dee14bf0ae6e1 (patch) | |
tree | a5706d83a96964b2cf63cd66ca25ed63641b4a56 /src/mesa/pipe/softpipe/sp_surface.h | |
parent | f7be1b419aab80c4e011183611964eb4d7c023c2 (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/softpipe/sp_surface.h')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_surface.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_surface.h b/src/mesa/pipe/softpipe/sp_surface.h index af6533d4f07..359a438c869 100644 --- a/src/mesa/pipe/softpipe/sp_surface.h +++ b/src/mesa/pipe/softpipe/sp_surface.h @@ -46,14 +46,15 @@ struct softpipe_tile_cache; struct softpipe_surface { struct pipe_surface surface; +#if 0 /* XXX these are temporary here */ void (*get_tile)(struct pipe_surface *ps, uint x, uint y, uint w, uint h, float *p); void (*put_tile)(struct pipe_surface *ps, uint x, uint y, uint w, uint h, const float *p); +#endif }; - extern struct pipe_surface * softpipe_get_tex_surface(struct pipe_context *pipe, struct pipe_mipmap_tree *mt, @@ -61,6 +62,18 @@ softpipe_get_tex_surface(struct pipe_context *pipe, extern void +softpipe_get_tile_rgba(struct pipe_context *pipe, + struct pipe_surface *ps, + uint x, uint y, uint w, uint h, + float *p); + +extern void +softpipe_put_tile_rgba(struct pipe_context *pipe, + struct pipe_surface *ps, + uint x, uint y, uint w, uint h, + const float *p); + +extern void softpipe_init_surface_funcs(struct softpipe_surface *sps); |