Mesa (radeon-rewrite): r200: remove depth check for dri2
Dave Airlie
airlied at kemper.freedesktop.org
Thu Mar 5 11:40:18 UTC 2009
Module: Mesa
Branch: radeon-rewrite
Commit: a03a4dd524b97f43356b830c21df05f82795fe0b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a03a4dd524b97f43356b830c21df05f82795fe0b
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Mar 6 04:47:45 2009 +1000
r200: remove depth check for dri2
---
src/mesa/drivers/dri/r200/r200_state_init.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c
index 096ebad..f7149c3 100644
--- a/src/mesa/drivers/dri/r200/r200_state_init.c
+++ b/src/mesa/drivers/dri/r200/r200_state_init.c
@@ -676,14 +676,11 @@ void r200InitState( r200ContextPtr rmesa )
rmesa->radeon.state.stencil.clear = 0x00000000;
break;
case 24:
+ default:
rmesa->radeon.state.depth.clear = 0x00ffffff;
rmesa->radeon.state.depth.scale = 1.0 / (GLfloat)0xffffff;
rmesa->radeon.state.stencil.clear = 0xffff0000;
break;
- default:
- fprintf( stderr, "Error: Unsupported depth %d... exiting\n",
- ctx->Visual.depthBits );
- exit( -1 );
}
/* Only have hw stencil when depth buffer is 24 bits deep */
More information about the mesa-commit
mailing list