summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_pipe.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-01-29 23:35:10 +0100
committerMarek Olšák <[email protected]>2012-01-31 23:12:30 +0100
commitbc70bcfc6915883bd5c60712b70e9ed7e1d80ea8 (patch)
treea42401ab4a3c6f99ecbd497e8654446bfe96582e /src/gallium/drivers/r600/r600_pipe.c
parente4340c1908a6a3b09e1a15d5195f6da7d00494d0 (diff)
r600g: don't initialize the screen and winsys pointer twice
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 9f86f4a8a08..d61855d7498 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -236,7 +236,7 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void
case R600:
case R700:
r600_init_state_functions(rctx);
- if (r600_context_init(rctx, rctx->screen)) {
+ if (r600_context_init(rctx)) {
r600_destroy_context(&rctx->context);
return NULL;
}
@@ -246,7 +246,7 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void
case EVERGREEN:
case CAYMAN:
evergreen_init_state_functions(rctx);
- if (evergreen_context_init(rctx, rctx->screen)) {
+ if (evergreen_context_init(rctx)) {
r600_destroy_context(&rctx->context);
return NULL;
}