summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/savage/savagecontext.h
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2005-01-24 01:15:12 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2005-01-24 01:15:12 +0000
commit428a5e82fc41689d1737d34560b10d921f28b98b (patch)
treebd7be7ef4eb04ae2d182e65f978193657406167a /src/mesa/drivers/dri/savage/savagecontext.h
parentc74ffb8266dc55914cba6a37143b38b5fd05b01c (diff)
Converted the Savage texture management to use Ian's common texmem code.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagecontext.h')
-rw-r--r--src/mesa/drivers/dri/savage/savagecontext.h28
1 files changed, 11 insertions, 17 deletions
diff --git a/src/mesa/drivers/dri/savage/savagecontext.h b/src/mesa/drivers/dri/savage/savagecontext.h
index a1ed14031f..21385ed7ec 100644
--- a/src/mesa/drivers/dri/savage/savagecontext.h
+++ b/src/mesa/drivers/dri/savage/savagecontext.h
@@ -38,10 +38,11 @@ typedef struct savage_texture_object_t *savageTextureObjectPtr;
#include "drm.h"
#include "savage_drm.h"
#include "savage_init.h"
+#include "savage_3d_reg.h"
#include "mm.h"
#include "tnl/t_vertex.h"
-#include "savagetex.h"
+#include "texmem.h"
#include "xmlconfig.h"
@@ -153,18 +154,11 @@ struct savage_context_t {
GLcontext *glCtx;
int lastTexHeap;
- savageTextureObjectPtr CurrentTexObj[2];
-
- struct savage_texture_object_t TexObjList[SAVAGE_NR_TEX_HEAPS];
- struct savage_texture_object_t SwappedOut;
-
- GLuint c_texupload;
- GLuint c_texusage;
- GLuint tex_thrash;
-
- GLuint TextureMode;
-
-
+ driTexHeap *textureHeaps[SAVAGE_NR_TEX_HEAPS];
+ driTextureObject swapped;
+
+ driTextureObject *CurrentTexObj[2];
+
/* Hardware state
*/
@@ -192,7 +186,6 @@ struct savage_context_t {
/* 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
* completely on the fly:
@@ -275,9 +268,6 @@ struct savage_context_t {
drm_clip_rect_t draw_rect;
drm_clip_rect_t scissor_rect;
- /*Texture aging and DMA based aging*/
- unsigned int texAge[SAVAGE_NR_TEX_HEAPS];
-
drm_context_t hHWContext;
drm_hw_lock_t *driHwLock;
GLuint driFd;
@@ -298,6 +288,10 @@ struct savage_context_t {
GLboolean hw_stencil;
+ /* Performance counters
+ */
+ GLuint c_textureSwaps;
+
/* Configuration cache
*/
driOptionCache optionCache;