diff options
author | Daniel Borca <[email protected]> | 2004-03-08 07:52:18 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-03-08 07:52:18 +0000 |
commit | 0c19008f099861923d936cad00b51b520f38737d (patch) | |
tree | e7382f7234779dfb01f2f660c74ca8a7a2ceeb72 /src/mesa/drivers/glide/fxdd.c | |
parent | 446d8d0b86d05089c56d53e9887cdf03574a1441 (diff) |
Voodoo Rush fixes
Diffstat (limited to 'src/mesa/drivers/glide/fxdd.c')
-rw-r--r-- | src/mesa/drivers/glide/fxdd.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c index d2fb55d5702..55e2e87d0d0 100644 --- a/src/mesa/drivers/glide/fxdd.c +++ b/src/mesa/drivers/glide/fxdd.c @@ -1331,8 +1331,18 @@ fxDDInitFxMesaContext(fxMesaContext fxMesa) return 0; } - if (fxMesa->haveZBuffer) - grDepthBufferMode(GR_DEPTHBUFFER_ZBUFFER); + /* [dBorca] Hack alert: + * Unlike the rest of the Voodoo family, the Rush + * doesn't support ZBUFFER with WBUFFER-like depth functions! + * I guess we could use WBUFFER, which is better, but we can't + * because the depth span functions would need to translate + * depth values to 4.12 floating point... + */ + if (fxMesa->haveZBuffer) { + grDepthBufferMode((fxMesa->type == GR_SSTTYPE_SST96) + ? GR_DEPTHBUFFER_WBUFFER + : GR_DEPTHBUFFER_ZBUFFER); + } if (!fxMesa->bgrOrder) { grLfbWriteColorFormat(GR_COLORFORMAT_ABGR); |