summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/savage/savagecontext.h
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2004-02-29 20:42:22 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2004-02-29 20:42:22 +0000
commitc6338e60ffac532a4e10013d5720597a431cbc34 (patch)
treedc8560f5101a686f16c0e1a8c9644de56e8dab58 /src/mesa/drivers/dri/savage/savagecontext.h
parent4923e1926ad7b7eb7de017eda8e7db64d357e5c8 (diff)
Reorganized hardware state data structures and state emission. Don't track
which registers changed in all the functions that change the state. Instead check which registers changed in the end when the hardware state is updated. Tried to avoid cosmetic (whitespace) changes in this commit.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagecontext.h')
-rw-r--r--src/mesa/drivers/dri/savage/savagecontext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/savage/savagecontext.h b/src/mesa/drivers/dri/savage/savagecontext.h
index af8952200e..13f3d4a51e 100644
--- a/src/mesa/drivers/dri/savage/savagecontext.h
+++ b/src/mesa/drivers/dri/savage/savagecontext.h
@@ -134,7 +134,7 @@ struct savage_context_t {
/* Hardware state
*/
- REGISTERS Registers;
+ savageRegisters regs, oldRegs, globalRegMask;
/* Manage our own state */
GLuint new_state;
@@ -151,6 +151,7 @@ struct savage_context_t {
GLuint aperturePitch;
/* Manage hardware state */
GLuint dirty;
+ GLboolean lostContext;
memHeap_t *texHeap[SAVAGE_NR_TEX_HEAPS];
GLuint bTexEn1;
/* One of the few bits of hardware state that can't be calculated
@@ -227,6 +228,7 @@ struct savage_context_t {
GLuint any_contend; /* throttle me harder */
GLuint scissor;
+ GLboolean scissorChanged;
drm_clip_rect_t draw_rect;
drm_clip_rect_t scissor_rect;
XF86DRIClipRectRec tmp_boxes[2][SAVAGE_NR_SAREA_CLIPRECTS];