diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-23 18:16:22 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-23 18:16:22 +0000 |
commit | 9876730f7ac0497dcb6342997006be752536b0e3 (patch) | |
tree | 6861b2869d15b90f6821bce90f41b012a93bc768 /src/mesa/drivers/dri/unichrome/via_vb.c | |
parent | 15da29b5e74a92437b9dc95590a9289e33e0a9a6 (diff) |
Chop out more dead code.
Get the drawXoff adjustment working a bit better.
Seems to pass the glean orthoPos tests.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_vb.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_vb.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) |