diff options
author | Felix Kuehling <[email protected]> | 2005-01-23 01:42:01 +0000 |
---|---|---|
committer | Felix Kuehling <[email protected]> | 2005-01-23 01:42:01 +0000 |
commit | 3b50f004333a922a259a4f733395c27002965ded (patch) | |
tree | 2ad70683c6932caca4218fb48f095147a52f1052 /src/mesa/drivers/dri/savage/savagetris.c | |
parent | 36a35c5614336bffdac4827c1e04bcaa8ab2fa27 (diff) |
My last attempt to fix polygon offsets with the reversed viewport depth
range used by the savage driver by negating ctx->MRD broke polygon
offsets with software fallbacks. This one adds a REVERSE_DEPTH parameter
to t_dd_tritmp.h (defaults to 0) that allows reversing polygon offsets
for hardware rendering but not for software fallbacks. For software
fallbacks depth values are reversed after polygon offsets have been
applied by the depth span functions.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagetris.c')
-rw-r--r-- | src/mesa/drivers/dri/savage/savagetris.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/savage/savagetris.c b/src/mesa/drivers/dri/savage/savagetris.c index fdd0f12724d..f5faa3fe568 100644 --- a/src/mesa/drivers/dri/savage/savagetris.c +++ b/src/mesa/drivers/dri/savage/savagetris.c @@ -388,6 +388,7 @@ static struct { #define TAB rast_tab #define DEPTH_SCALE imesa->depth_scale +#define REVERSE_DEPTH 1 #define UNFILLED_TRI unfilled_tri #define UNFILLED_QUAD unfilled_quad #define VERT_X(_v) _v->v.x |