diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2009-08-17 14:45:50 +0200 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2009-08-17 18:48:14 +0200 |
commit | caf40d5d145185d6a4c3ce8ff7c30ec93c040abd (patch) | |
tree | d01f8d955ff93a524f973cf33f16c4ed82973f3c /src/gallium/drivers/nv50 | |
parent | 97cc526eb7ae17c6ec3509a129863ea85f4e8900 (diff) | |
download | external_mesa3d-caf40d5d145185d6a4c3ce8ff7c30ec93c040abd.zip external_mesa3d-caf40d5d145185d6a4c3ce8ff7c30ec93c040abd.tar.gz external_mesa3d-caf40d5d145185d6a4c3ce8ff7c30ec93c040abd.tar.bz2 |
nv50: remove a few cases of directly casting struct pipe_context
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_context.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/nv50/nv50_surface.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.c b/src/gallium/drivers/nv50/nv50_context.c index 48f36d6..6e8f4f9 100644 --- a/src/gallium/drivers/nv50/nv50_context.c +++ b/src/gallium/drivers/nv50/nv50_context.c @@ -47,7 +47,7 @@ nv50_flush(struct pipe_context *pipe, unsigned flags, static void nv50_destroy(struct pipe_context *pipe) { - struct nv50_context *nv50 = (struct nv50_context *)pipe; + struct nv50_context *nv50 = nv50_context(pipe); draw_destroy(nv50->draw); FREE(nv50); diff --git a/src/gallium/drivers/nv50/nv50_surface.c b/src/gallium/drivers/nv50/nv50_surface.c index 31c36a1..edaf4b0 100644 --- a/src/gallium/drivers/nv50/nv50_surface.c +++ b/src/gallium/drivers/nv50/nv50_surface.c @@ -144,7 +144,7 @@ nv50_surface_copy(struct pipe_context *pipe, struct pipe_surface *src, unsigned srcx, unsigned srcy, unsigned width, unsigned height) { - struct nv50_context *nv50 = (struct nv50_context *)pipe; + struct nv50_context *nv50 = nv50_context(pipe); struct nv50_screen *screen = nv50->screen; assert(src->format == dest->format); @@ -158,7 +158,7 @@ nv50_surface_fill(struct pipe_context *pipe, struct pipe_surface *dest, unsigned destx, unsigned desty, unsigned width, unsigned height, unsigned value) { - struct nv50_context *nv50 = (struct nv50_context *)pipe; + struct nv50_context *nv50 = nv50_context(pipe); struct nv50_screen *screen = nv50->screen; struct nouveau_channel *chan = screen->eng2d->channel; struct nouveau_grobj *eng2d = screen->eng2d; |