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
*ctx
, int type
,
17 GLuint size
, GLuint align
);
18 extern void nouveau_mem_free(GLcontext
*ctx
, nouveau_mem
*mem
);
19 extern uint32_t nouveau_mem_gpu_offset_get(GLcontext
*ctx
, nouveau_mem
*mem
);
21 extern GLboolean
nouveau_memformat_flat_emit(GLcontext
*ctx
,
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
,
41 GLvoid
*map
, GLuint offset
, GLuint pitch
, __DRIdrawablePrivate
*dPriv
);
42 extern void nouveau_window_moved(GLcontext
*ctx
);
43 extern GLboolean
nouveau_build_framebuffer(GLcontext
*, struct gl_framebuffer
*);
44 extern nouveau_renderbuffer
*nouveau_current_draw_buffer(GLcontext
*ctx
);
46 extern void nouveauInitBufferFuncs(struct dd_function_table
*func
);