diff options
author | Felix Kuehling <[email protected]> | 2005-02-05 21:21:02 +0000 |
---|---|---|
committer | Felix Kuehling <[email protected]> | 2005-02-05 21:21:02 +0000 |
commit | 5bdf2bc6c707f0a815cc46fb0bab7e2a209110a3 (patch) | |
tree | e7e44f784eb033ab47c7bba84dcdd99560d7e7a5 /src/mesa/drivers/dri/savage/savagecontext.h | |
parent | d9d972a944c9953d99ff09deeb2a739386aa0a76 (diff) |
- Fixed scissor rectangle not moving with the window (Xorg bug #1731).
- Flush buffered primitives before changing scissors.
- Require Savage DRM version 2.1.0, so that the broken single-cliprect
code can finally rest in peace.
- Removed some more dead code.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagecontext.h')
-rw-r--r-- | src/mesa/drivers/dri/savage/savagecontext.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/savage/savagecontext.h b/src/mesa/drivers/dri/savage/savagecontext.h index b2d47a46939..2e9671afd91 100644 --- a/src/mesa/drivers/dri/savage/savagecontext.h +++ b/src/mesa/drivers/dri/savage/savagecontext.h @@ -79,7 +79,6 @@ typedef struct savage_texture_object_t *savageTextureObjectPtr; #define SAVAGE_UPLOAD_FOGTBL 0x8 /* fog table */ #define SAVAGE_UPLOAD_GLOBAL 0x10 /* most global regs */ #define SAVAGE_UPLOAD_TEXGLOBAL 0x20 /* TexBlendColor (S4 only) */ -#define SAVAGE_UPLOAD_CLIPRECTS 0x1000 /* FIXME: get rid of this */ /*define the max numer of vertex in vertex buf*/ #define SAVAGE_MAX_VERTEXS 0x10000 @@ -263,10 +262,14 @@ struct savage_context_t { GLuint dirtyAge; GLuint any_contend; /* throttle me harder */ - GLuint scissor; - GLboolean scissorChanged; - drm_clip_rect_t draw_rect; - drm_clip_rect_t scissor_rect; + /* Scissor state needs to be mirrored so buffered commands can be + * emitted with the old scissor state when scissor state changes. + */ + struct { + GLboolean enabled; + GLint x, y; + GLsizei w, h; + } scissor; drm_context_t hHWContext; drm_hw_lock_t *driHwLock; |