diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-21 11:57:03 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-21 11:57:03 +0000 |
commit | 314f8e4d9d600f9db95977ebf931a3fb9bb8ce79 (patch) | |
tree | c4bb1f6a31a2e3f9801ae41852d956614cdd46aa /src/mesa/drivers/dri/unichrome/via_screen.h | |
parent | 91a04617c40a740ade27e2f60e78a761a297a1d3 (diff) |
Add vsync swapbuffers. This waits on the irq so gears run in this mode
will have a very low cpu utilization (and also a very low framerate).
Fix up the pageflipping code. This works now but is totally oblivious
to the X server (ie. it works but it's broken). Turned off by a #define.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_screen.h')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_screen.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_screen.h b/src/mesa/drivers/dri/unichrome/via_screen.h index e34636df7e..c70ff447fd 100644 --- a/src/mesa/drivers/dri/unichrome/via_screen.h +++ b/src/mesa/drivers/dri/unichrome/via_screen.h @@ -28,6 +28,7 @@ #include <sys/time.h> #include "dri_util.h" #include "via_dri.h" +#include "xmlconfig.h" typedef struct { viaRegion regs; @@ -68,6 +69,10 @@ typedef struct { unsigned int sareaPrivOffset; /*=* John Sheng [2003.12.9] Tuxracer & VQ *=*/ int VQEnable; + int irqEnabled; + + /* Configuration cache with default values for all contexts */ + driOptionCache optionCache; } viaScreenPrivate; extern GLboolean |