r600g: r600_blit_uncompress_depth() can't fail.
authorHenri Verbeet <hverbeet@gmail.com>
Fri, 24 Dec 2010 10:36:50 +0000 (11:36 +0100)
committerHenri Verbeet <hverbeet@gmail.com>
Fri, 24 Dec 2010 10:41:26 +0000 (11:41 +0100)
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_pipe.h

index 0f04136fb2a44493aa153687784077f1549578f8..b9ec9592e357f9dac2ed5709bbb0003200ff6d37 100644 (file)
@@ -78,7 +78,7 @@ static void r600_blitter_end(struct pipe_context *ctx)
        r600_context_queries_resume(&rctx->ctx);
 }
 
-int r600_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_texture *texture)
+void r600_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_texture *texture)
 {
        struct r600_pipe_context *rctx = (struct r600_pipe_context *)ctx;
        struct pipe_surface *zsurf, *cbsurf, surf_tmpl;
@@ -107,9 +107,6 @@ int r600_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_te
 
        pipe_surface_reference(&zsurf, NULL);
        pipe_surface_reference(&cbsurf, NULL);
-
-
-       return 0;
 }
 
 static void r600_clear(struct pipe_context *ctx, unsigned buffers,
index d9c35a44f18cf958422695de3de1f964dc410cbe..1cdca9cb3d0b07c8482d8393bc186d34dc47c91d 100644 (file)
@@ -196,7 +196,7 @@ void evergreen_vertex_buffer_update(struct r600_pipe_context *rctx);
 
 /* r600_blit.c */
 void r600_init_blit_functions(struct r600_pipe_context *rctx);
-int r600_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_texture *texture);
+void r600_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_texture *texture);
 
 /* r600_buffer.c */
 struct pipe_resource *r600_buffer_create(struct pipe_screen *screen,