diff options
author | Marek Olšák <[email protected]> | 2012-02-17 01:49:49 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-02-21 21:09:16 +0100 |
commit | 96d882939d612fcc8332f107befec470ed4359de (patch) | |
tree | 1cb90df7f1fbd22a44e466a8b0f6d4d25ba04c34 /src/gallium/drivers/trace | |
parent | f33d100fa71cecfb163dd91cd56b9a2788a43c22 (diff) |
gallium: remove unused winsys pointers in pipe_screen and pipe_context
A winsys is already a private object of a driver.
Diffstat (limited to 'src/gallium/drivers/trace')
-rw-r--r-- | src/gallium/drivers/trace/tr_context.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/trace/tr_screen.c | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index 240d85c69a1..b582abc8692 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -1548,7 +1548,6 @@ trace_context_create(struct trace_screen *tr_scr, if(!tr_ctx) goto error1; - tr_ctx->base.winsys = NULL; tr_ctx->base.priv = pipe->priv; /* expose wrapped priv data */ tr_ctx->base.screen = &tr_scr->base; diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c index 362b21a810e..fd5acbefe51 100644 --- a/src/gallium/drivers/trace/tr_screen.c +++ b/src/gallium/drivers/trace/tr_screen.c @@ -480,7 +480,6 @@ struct pipe_screen * trace_screen_create(struct pipe_screen *screen) { struct trace_screen *tr_scr; - struct pipe_winsys *winsys; if(!screen) goto error1; @@ -494,14 +493,6 @@ trace_screen_create(struct pipe_screen *screen) if(!tr_scr) goto error2; -#if 0 - winsys = trace_winsys_create(screen->winsys); - if(!winsys) - goto error3; -#else - winsys = screen->winsys; -#endif - tr_scr->base.winsys = winsys; tr_scr->base.destroy = trace_screen_destroy; tr_scr->base.get_name = trace_screen_get_name; tr_scr->base.get_vendor = trace_screen_get_vendor; |