From 9876730f7ac0497dcb6342997006be752536b0e3 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 23 Dec 2004 18:16:22 +0000 Subject: Chop out more dead code. Get the drawXoff adjustment working a bit better. Seems to pass the glean orthoPos tests. --- src/mesa/drivers/dri/unichrome/via_vb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/unichrome/via_vb.c') diff --git a/src/mesa/drivers/dri/unichrome/via_vb.c b/src/mesa/drivers/dri/unichrome/via_vb.c index 5ce2f521e0..f989d8d0fd 100644 --- a/src/mesa/drivers/dri/unichrome/via_vb.c +++ b/src/mesa/drivers/dri/unichrome/via_vb.c @@ -90,10 +90,11 @@ static struct { #define HAVE_TEX3_VERTICES 0 #define HAVE_PTEX_VERTICES 0 -#define UNVIEWPORT_VARS GLfloat h = VIA_CONTEXT(ctx)->driDrawable->h +#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_Y(y) - y + h + SUBPIXEL_Y -#define UNVIEWPORT_Z(z) z * (float)0xffffffff +#define UNVIEWPORT_Z(z) z * (float)depth_max #define PTEX_FALLBACK() FALLBACK(VIA_CONTEXT(ctx), VIA_FALLBACK_TEXTURE, 1) -- cgit v1.2.3