diff options
author | Marcin Slusarz <[email protected]> | 2011-12-02 22:02:51 +0100 |
---|---|---|
committer | Marcin Slusarz <[email protected]> | 2011-12-13 21:06:29 +0100 |
commit | 10e931219f0619c01456dd13fea65b8c21f3b87b (patch) | |
tree | 8da9e29e0a91bc829cd370d8f933f72033f8e4e4 /src/gallium/drivers/nvfx | |
parent | 642d11da207e9becfa26a9e038db1c7520ec2aee (diff) |
nouveau: get rid of winsys object
Its only purpose was to destroy itself.
Diffstat (limited to 'src/gallium/drivers/nvfx')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_context.c | 5 | ||||
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_context.h | 1 | ||||
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_screen.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_screen.h | 1 |
4 files changed, 1 insertions, 9 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_context.c b/src/gallium/drivers/nvfx/nvfx_context.c index 37425b1fc3c..36209cb1792 100644 --- a/src/gallium/drivers/nvfx/nvfx_context.c +++ b/src/gallium/drivers/nvfx/nvfx_context.c @@ -71,18 +71,13 @@ struct pipe_context * nvfx_create(struct pipe_screen *pscreen, void *priv) { struct nvfx_screen *screen = nvfx_screen(pscreen); - struct pipe_winsys *ws = pscreen->winsys; struct nvfx_context *nvfx; - struct nouveau_winsys *nvws = screen->nvws; nvfx = CALLOC(1, sizeof(struct nvfx_context)); if (!nvfx) return NULL; nvfx->screen = screen; - nvfx->nvws = nvws; - - nvfx->pipe.winsys = ws; nvfx->pipe.screen = pscreen; nvfx->pipe.priv = priv; nvfx->pipe.destroy = nvfx_destroy; diff --git a/src/gallium/drivers/nvfx/nvfx_context.h b/src/gallium/drivers/nvfx/nvfx_context.h index 3d05ecc7807..09d394bfeef 100644 --- a/src/gallium/drivers/nvfx/nvfx_context.h +++ b/src/gallium/drivers/nvfx/nvfx_context.h @@ -138,7 +138,6 @@ struct nvfx_render_target { struct nvfx_context { struct pipe_context pipe; - struct nouveau_winsys *nvws; struct nvfx_screen *screen; unsigned is_nv4x; /* either 0 or ~0 */ diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c index ac03199b667..960cd884b8a 100644 --- a/src/gallium/drivers/nvfx/nvfx_screen.c +++ b/src/gallium/drivers/nvfx/nvfx_screen.c @@ -464,7 +464,7 @@ static void nvfx_channel_flush_notify(struct nouveau_channel* chan) } struct pipe_screen * -nvfx_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev) +nvfx_screen_create(struct nouveau_device *dev) { static const unsigned query_sizes[] = {(4096 - 4 * 32) / 32, 3 * 1024 / 32, 2 * 1024 / 32, 1024 / 32}; struct nvfx_screen *screen = CALLOC_STRUCT(nvfx_screen); @@ -488,7 +488,6 @@ nvfx_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev) chan->user_private = screen; chan->flush_notify = nvfx_channel_flush_notify; - pscreen->winsys = ws; pscreen->destroy = nvfx_screen_destroy; pscreen->get_param = nvfx_screen_get_param; pscreen->get_shader_param = nvfx_screen_get_shader_param; diff --git a/src/gallium/drivers/nvfx/nvfx_screen.h b/src/gallium/drivers/nvfx/nvfx_screen.h index 02e7c5d1cad..35c9d910479 100644 --- a/src/gallium/drivers/nvfx/nvfx_screen.h +++ b/src/gallium/drivers/nvfx/nvfx_screen.h @@ -10,7 +10,6 @@ struct pipe_screen; struct nvfx_screen { struct nouveau_screen base; - struct nouveau_winsys *nvws; struct nouveau_bo *fence; struct nvfx_context *cur_ctx; |