From 9855477e903e00f7457adb15594048416444b992 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 9 Feb 2014 23:25:06 +0100 Subject: r600g,radeonsi: consolidate create_surface and surface_destroy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeonsi/si_blit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/radeonsi/si_blit.c') diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index 07396e79a1e..9975b4417f2 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -483,6 +483,7 @@ static void si_resource_copy_region(struct pipe_context *ctx, const struct pipe_box *src_box) { struct si_context *sctx = (struct si_context *)ctx; + struct r600_texture *rdst = (struct r600_texture*)dst; struct pipe_surface *dst_view, dst_templ; struct pipe_sampler_view src_templ, *src_view; struct texture_orig_info orig_info[2]; @@ -566,7 +567,9 @@ static void si_resource_copy_region(struct pipe_context *ctx, /* Initialize the surface. */ util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); - dst_view = ctx->create_surface(ctx, dst, &dst_templ); + dst_view = r600_create_surface_custom(ctx, dst, &dst_templ, + rdst->surface.level[dst_level].npix_x, + rdst->surface.level[dst_level].npix_y); /* Initialize the sampler view. */ util_blitter_default_src_texture(&src_templ, src, src_level); -- cgit v1.2.3