summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nv30
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-11-26 14:24:42 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-12-22 13:24:03 +1000
commit6c1bfff66ca6dd9dac11507889ee17987bed31cb (patch)
treea7d13f0e8e06e63c1a9665f3236a78d2cd299e6d /src/gallium/drivers/nouveau/nv30
parent1a9ec8e062f597fd4e4905602adc7c2e507c525f (diff)
downloadexternal_mesa3d-6c1bfff66ca6dd9dac11507889ee17987bed31cb.zip
external_mesa3d-6c1bfff66ca6dd9dac11507889ee17987bed31cb.tar.gz
external_mesa3d-6c1bfff66ca6dd9dac11507889ee17987bed31cb.tar.bz2
nouveau: return nouveau_screen from hw-specific creation functions
Kills off a void cast. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30')
-rw-r--r--src/gallium/drivers/nouveau/nv30/nv30_screen.c4
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 154c3d3..ea29811 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;
}