diff options
author | Ben Skeggs <[email protected]> | 2007-08-13 20:02:04 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2007-08-15 14:31:25 +1000 |
commit | b7c93de6d798d7ccfc7bfa12b9c8f474de955d55 (patch) | |
tree | 4a3e5c068dd79316789cfe4782b49de9a3dac8e0 /src/mesa/drivers/dri/nouveau/nouveau_fbo.h | |
parent | 40e8ce700b0e1711e08e9f33c297d495c43598b1 (diff) |
nouveau: Split nouveau_buffers into nouveau_mem and nouveau_fbo
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_fbo.h')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_fbo.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.h b/src/mesa/drivers/dri/nouveau/nouveau_fbo.h new file mode 100644 index 00000000000..757a784f8f8 --- /dev/null +++ b/src/mesa/drivers/dri/nouveau/nouveau_fbo.h @@ -0,0 +1,35 @@ +#ifndef __NOUVEAU_BUFFERS_H__ +#define __NOUVEAU_BUFFERS_H__ + +#include <stdint.h> +#include "mtypes.h" +#include "utils.h" +#include "renderbuffer.h" + +#include "nouveau_mem.h" + +typedef struct nouveau_renderbuffer_t { + struct gl_renderbuffer mesa; /* must be first! */ + __DRIdrawablePrivate *dPriv; + + nouveau_mem *mem; + void *map; + + int cpp; + uint32_t offset; + uint32_t pitch; +} nouveau_renderbuffer; + +extern nouveau_renderbuffer *nouveau_renderbuffer_new(GLenum internalFormat, + GLvoid *map, + GLuint offset, + GLuint pitch, + __DRIdrawablePrivate *); +extern void nouveau_window_moved(GLcontext *); +extern GLboolean nouveau_build_framebuffer(GLcontext *, + struct gl_framebuffer *); +extern nouveau_renderbuffer *nouveau_current_draw_buffer(GLcontext *); + +extern void nouveauInitBufferFuncs(struct dd_function_table *); + +#endif |