r600g: depth needs to bound to ds
authorDave Airlie <airlied@redhat.com>
Mon, 18 Oct 2010 03:23:34 +0000 (13:23 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Oct 2010 03:39:55 +0000 (13:39 +1000)
src/gallium/drivers/r600/r600_texture.c

index 152cd9210fd852c00941fb3b44642dc7572456a6..07156bb7acc870f5f4cf754506ae4d5066c60e82 100644 (file)
@@ -318,7 +318,7 @@ int r600_texture_depth_flush(struct pipe_context *ctx,
        resource.bind = 0;
        resource.flags = 0;
 
-       resource.bind |= PIPE_BIND_RENDER_TARGET;
+       resource.bind |= PIPE_BIND_DEPTH_STENCIL;
 
        rtex->flushed_depth_texture = (struct r600_resource_texture *)ctx->screen->resource_create(ctx->screen, &resource);
        if (rtex->flushed_depth_texture == NULL) {