diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-29 20:46:27 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-29 20:46:27 +0000 |
commit | 490e764d7affc093feff80192ed3f3d4642fcb8f (patch) | |
tree | a35f7ee56cdc3b36953b362d28654aa0df7f8920 /src/mesa/drivers/dri/unichrome/via_vb.c | |
parent | ef494c06b6e4dc720f32700f899ddad7cadb0a95 (diff) |
Simplfy clear() and swapbuffers() code.
Fix various mishandling of cliprects.
Allow multiple primitives to be emitted to a single dma buffer, which
was largely impossible previously.
Re-enable the fast unclipped render stage.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_vb.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_vb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_vb.c b/src/mesa/drivers/dri/unichrome/via_vb.c index 222a0f07ca..0b6830a6bf 100644 --- a/src/mesa/drivers/dri/unichrome/via_vb.c +++ b/src/mesa/drivers/dri/unichrome/via_vb.c @@ -86,9 +86,11 @@ static struct { #define HAVE_TEX3_VERTICES 0 #define HAVE_PTEX_VERTICES 0 -#define UNVIEWPORT_VARS GLfloat h = VIA_CONTEXT(ctx)->driDrawable->h, \ - depth_max = VIA_CONTEXT(ctx)->depth_max; -#define UNVIEWPORT_X(x) x - SUBPIXEL_X +#define UNVIEWPORT_VARS \ + viaContextPtr vmesa = VIA_CONTEXT(ctx); \ + GLfloat h = vmesa->driDrawable->h, depth_max = vmesa->depth_max, xoff = vmesa->drawXoff; + +#define UNVIEWPORT_X(x) x - (SUBPIXEL_X + xoff) #define UNVIEWPORT_Y(y) - y + h + SUBPIXEL_Y #define UNVIEWPORT_Z(z) z * (float)depth_max |