diff options
author | Felix Kuehling <fxkuehl@gmx.de> | 2005-03-07 12:19:49 +0000 |
---|---|---|
committer | Felix Kuehling <fxkuehl@gmx.de> | 2005-03-07 12:19:49 +0000 |
commit | 95fa851769b2a3461fb710f6d035bc5b2bf164e0 (patch) | |
tree | 7d28c6eb0d946411a892cf20bc38050b34cd113d /shared-core/savage_drv.h | |
parent | 32b6823a2540da83553f49a1daf89159c425c93e (diff) |
Tracked down random lockups related to command DMA that occurred in Quake3
after ~5min: buffer aging was subtly broken. Part of this may have also
affected vertex DMA buffer aging and client-side texture heap aging,
though with less fatal consequences. Bumped minor version and driver
date.
Diffstat (limited to 'shared-core/savage_drv.h')
-rw-r--r-- | shared-core/savage_drv.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shared-core/savage_drv.h b/shared-core/savage_drv.h index ae37a48f..6475f604 100644 --- a/shared-core/savage_drv.h +++ b/shared-core/savage_drv.h @@ -30,11 +30,11 @@ #define DRIVER_NAME "savage" #define DRIVER_DESC "Savage3D/MX/IX, Savage4, SuperSavage, Twister, ProSavage[DDR]" -#define DRIVER_DATE "20050305" +#define DRIVER_DATE "20050307" #define DRIVER_MAJOR 2 #define DRIVER_MINOR 4 -#define DRIVER_PATCHLEVEL 0 +#define DRIVER_PATCHLEVEL 1 /* Interface history: * * 1.x The DRM driver from the VIA/S3 code drop, basically a dummy @@ -171,6 +171,7 @@ typedef struct drm_savage_private { /* Savage4 command DMA */ drm_savage_dma_page_t *dma_pages; unsigned int nr_dma_pages, first_dma_page, current_dma_page; + drm_savage_age_t last_dma_age; /* saved hw state for global/local check on S3D */ uint32_t hw_draw_ctrl, hw_zbuf_ctrl; @@ -576,6 +577,6 @@ extern void savage_emit_clip_rect_s4(drm_savage_private_t *dev_priv, } while(0) #define TEST_AGE( age, e, w ) \ - ( (age)->wrap < (w) || (age)->event <= (e) ) + ( (age)->wrap < (w) || ( (age)->wrap == (w) && (age)->event <= (e) ) ) #endif /* __SAVAGE_DRV_H__ */ |