summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/radeon_context.h
diff options
context:
space:
mode:
authorNicolai Haehnle <prefect_@gmx.net>2004-10-17 20:26:06 +0000
committerNicolai Haehnle <prefect_@gmx.net>2004-10-17 20:26:06 +0000
commitff42a00402deab3034163c2b76c2082cce39d901 (patch)
tree0c81aba24705d6643d0b888265270e494ce344ce /src/mesa/drivers/dri/r300/radeon_context.h
parent158a251a6b8ffa02387c767a00dc960b49098022 (diff)
- FIX: flickering
- Scissor support works now
Diffstat (limited to 'src/mesa/drivers/dri/r300/radeon_context.h')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_context.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_context.h b/src/mesa/drivers/dri/r300/radeon_context.h
index d51cf4c09d..b3661cdf45 100644
--- a/src/mesa/drivers/dri/r300/radeon_context.h
+++ b/src/mesa/drivers/dri/r300/radeon_context.h
@@ -113,6 +113,15 @@ struct radeon_dri_mirror {
/**
* Derived state for internal purposes.
*/
+struct radeon_scissor_state {
+ drm_clip_rect_t rect;
+ GLboolean enabled;
+
+ GLuint numClipRects; /* Cliprects active */
+ GLuint numAllocedClipRects; /* Cliprects available */
+ drm_clip_rect_t *pClipRects;
+};
+
struct radeon_colorbuffer_state {
GLuint clear;
GLint drawOffset, drawPitch;
@@ -125,6 +134,7 @@ struct radeon_pixel_state {
struct radeon_state {
struct radeon_colorbuffer_state color;
struct radeon_pixel_state pixel;
+ struct radeon_scissor_state scissor;
};
/**
@@ -187,6 +197,7 @@ extern GLboolean radeonInitContext(radeonContextPtr radeon,
const __GLcontextModes * glVisual,
__DRIcontextPrivate * driContextPriv,
void *sharedContextPrivate);
+extern void radeonCleanupContext(radeonContextPtr radeon);
extern GLboolean radeonMakeCurrent(__DRIcontextPrivate * driContextPriv,
__DRIdrawablePrivate * driDrawPriv,
__DRIdrawablePrivate * driReadPriv);