1 #ifndef __NOUVEAU_BUFFERS_H__
2 #define __NOUVEAU_BUFFERS_H__
7 #include "renderbuffer.h"
9 typedef struct nouveau_mem_t
{
16 extern nouveau_mem
*nouveau_mem_alloc(GLcontext
*, uint32_t flags
,
17 GLuint size
, GLuint align
);
18 extern void nouveau_mem_free(GLcontext
*, nouveau_mem
*);
19 extern uint32_t nouveau_mem_gpu_offset_get(GLcontext
*, nouveau_mem
*);
21 extern GLboolean
nouveau_memformat_flat_emit(GLcontext
*,
28 typedef struct nouveau_renderbuffer_t
{
29 struct gl_renderbuffer mesa
; /* must be first! */
30 __DRIdrawablePrivate
*dPriv
;
38 } nouveau_renderbuffer
;
40 extern nouveau_renderbuffer
*nouveau_renderbuffer_new(GLenum internalFormat
,
44 __DRIdrawablePrivate
*);
45 extern void nouveau_window_moved(GLcontext
*);
46 extern GLboolean
nouveau_build_framebuffer(GLcontext
*,
47 struct gl_framebuffer
*);
48 extern nouveau_renderbuffer
*nouveau_current_draw_buffer(GLcontext
*);
50 extern void nouveauInitBufferFuncs(struct dd_function_table
*);