4 #include "radeon_common_context.h"
5 #include "radeon_dma.h"
6 #include "radeon_texture.h"
8 void radeonUserClear(GLcontext
*ctx
, GLuint mask
);
9 void radeonRecalcScissorRects(radeonContextPtr radeon
);
10 void radeonSetCliprects(radeonContextPtr radeon
);
11 void radeonUpdateScissor( GLcontext
*ctx
);
12 void radeonScissor(GLcontext
* ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
13 void radeonPolygonStipplePreKMS( GLcontext
*ctx
, const GLubyte
*mask
);
15 void radeonWaitForIdleLocked(radeonContextPtr radeon
);
16 extern uint32_t radeonGetAge(radeonContextPtr radeon
);
17 void radeonCopyBuffer( __DRIdrawablePrivate
*dPriv
,
18 const drm_clip_rect_t
*rect
);
19 void radeonSwapBuffers(__DRIdrawablePrivate
* dPriv
);
20 void radeonCopySubBuffer(__DRIdrawablePrivate
* dPriv
,
21 int x
, int y
, int w
, int h
);
23 void radeonUpdatePageFlipping(radeonContextPtr rmesa
);
25 void radeonFlush(GLcontext
*ctx
);
26 void radeonFinish(GLcontext
* ctx
);
27 void radeonEmitState(radeonContextPtr radeon
);
28 GLuint
radeonCountStateEmitSize(radeonContextPtr radeon
);
30 void radeon_clear_tris(GLcontext
*ctx
, GLbitfield mask
);
32 void radeon_window_moved(radeonContextPtr radeon
);
33 void radeon_draw_buffer(GLcontext
*ctx
, struct gl_framebuffer
*fb
);
34 void radeonDrawBuffer( GLcontext
*ctx
, GLenum mode
);
35 void radeonReadBuffer( GLcontext
*ctx
, GLenum mode
);
36 void radeon_viewport(GLcontext
*ctx
, GLint x
, GLint y
, GLsizei width
, GLsizei height
);
37 void radeon_get_cliprects(radeonContextPtr radeon
,
38 struct drm_clip_rect
**cliprects
,
39 unsigned int *num_cliprects
,
40 int *x_off
, int *y_off
);
41 void radeon_fbo_init(struct radeon_context
*radeon
);
43 radeon_renderbuffer_set_bo(struct radeon_renderbuffer
*rb
,
44 struct radeon_bo
*bo
);
45 struct radeon_renderbuffer
*
46 radeon_create_renderbuffer(gl_format format
, __DRIdrawablePrivate
*driDrawPriv
);
47 static inline struct radeon_renderbuffer
*radeon_renderbuffer(struct gl_renderbuffer
*rb
)
49 struct radeon_renderbuffer
*rrb
= (struct radeon_renderbuffer
*)rb
;
50 if (rrb
&& rrb
->base
.ClassID
== RADEON_RB_CLASS
)
56 static inline struct radeon_renderbuffer
*radeon_get_renderbuffer(struct gl_framebuffer
*fb
, int att_index
)
59 return radeon_renderbuffer(fb
->Attachment
[att_index
].Renderbuffer
);
64 static inline struct radeon_renderbuffer
*radeon_get_depthbuffer(radeonContextPtr rmesa
)
66 struct radeon_renderbuffer
*rrb
;
67 rrb
= radeon_renderbuffer(rmesa
->state
.depth
.rb
);
74 static inline struct radeon_renderbuffer
*radeon_get_colorbuffer(radeonContextPtr rmesa
)
76 struct radeon_renderbuffer
*rrb
;
78 rrb
= radeon_renderbuffer(rmesa
->state
.color
.rb
);
84 #include "radeon_cmdbuf.h"