diff options
author | Ben Skeggs <[email protected]> | 2015-11-26 14:24:42 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2015-12-22 13:24:03 +1000 |
commit | 6c1bfff66ca6dd9dac11507889ee17987bed31cb (patch) | |
tree | a7d13f0e8e06e63c1a9665f3236a78d2cd299e6d /src/gallium/drivers/nouveau/nv30 | |
parent | 1a9ec8e062f597fd4e4905602adc7c2e507c525f (diff) |
nouveau: return nouveau_screen from hw-specific creation functions
Kills off a void cast.
Signed-off-by: Ben Skeggs <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Tested-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30')
-rw-r--r-- | src/gallium/drivers/nouveau/nv30/nv30_screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_screen.c b/src/gallium/drivers/nouveau/nv30/nv30_screen.c index 154c3d370f7..ea29811aa46 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c @@ -417,7 +417,7 @@ nv30_screen_destroy(struct pipe_screen *pscreen) return NULL; \ } while(0) -struct pipe_screen * +struct nouveau_screen * nv30_screen_create(struct nouveau_device *dev) { struct nv30_screen *screen = CALLOC_STRUCT(nv30_screen); @@ -693,5 +693,5 @@ nv30_screen_create(struct nouveau_device *dev) nouveau_pushbuf_kick(push, push->channel); nouveau_fence_new(&screen->base, &screen->base.fence.current, false); - return pscreen; + return &screen->base; } |