diff options
author | Marek Olšák <[email protected]> | 2014-02-09 23:25:06 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-02-25 16:08:26 +0100 |
commit | 9855477e903e00f7457adb15594048416444b992 (patch) | |
tree | da51847185f2d2d7821844c7887602ff406b8399 /src/gallium/drivers/radeonsi/si_blit.c | |
parent | b9aa8ed009c22e4ef5df49dc7785f08fd3dbe836 (diff) |
r600g,radeonsi: consolidate create_surface and surface_destroy
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_blit.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_blit.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |