summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r600
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-09-03 14:14:47 +1000
committerDave Airlie <airlied@redhat.com>2009-09-03 14:14:47 +1000
commitc19b52f10fe11282f0a3466eda2eeb1d422b7aa3 (patch)
treecbe969f54afd909b263fe548a0008830489a9db4 /src/mesa/drivers/dri/r600
parenta25d0dc9ec66e5de932e6e154f6bef9ffa6ab653 (diff)
r600: visual depth has no meaning here.
fbos get angry when this happens.
Diffstat (limited to 'src/mesa/drivers/dri/r600')
-rw-r--r--src/mesa/drivers/dri/r600/r700_state.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c
index 91cb492ce6..09344426f4 100644
--- a/src/mesa/drivers/dri/r600/r700_state.c
+++ b/src/mesa/drivers/dri/r600/r700_state.c
@@ -1451,18 +1451,8 @@ static void r700SetDepthTarget(context_t *context)
if(4 == rrb->cpp)
{
- switch (GL_CONTEXT(context)->Visual.depthBits)
- {
- case 16:
- case 24:
- SETfield(r700->DB_DEPTH_INFO.u32All, DEPTH_8_24,
- DB_DEPTH_INFO__FORMAT_shift, DB_DEPTH_INFO__FORMAT_mask);
- break;
- default:
- fprintf(stderr, "Error: Unsupported depth %d... exiting\n",
- GL_CONTEXT(context)->Visual.depthBits);
- _mesa_exit(-1);
- }
+ SETfield(r700->DB_DEPTH_INFO.u32All, DEPTH_8_24,
+ DB_DEPTH_INFO__FORMAT_shift, DB_DEPTH_INFO__FORMAT_mask);
}
else
{