From 91aca8c662faf0ec311968b2897a72a6d08b199d Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 29 Nov 2013 17:28:23 +0100 Subject: r600g,radeonsi: consolidate buffer code, add handling of DISCARD_RANGE for SI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds 2 optimizations for radeonsi: - handling of DISCARD_RANGE - mapping an uninitialized buffer range is automatically UNSYNCHRONIZED Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeonsi/r600_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/radeonsi/r600_resource.c') diff --git a/src/gallium/drivers/radeonsi/r600_resource.c b/src/gallium/drivers/radeonsi/r600_resource.c index 745d3ba88c9..9a0fde430ff 100644 --- a/src/gallium/drivers/radeonsi/r600_resource.c +++ b/src/gallium/drivers/radeonsi/r600_resource.c @@ -27,7 +27,7 @@ static struct pipe_resource *r600_resource_create(struct pipe_screen *screen, const struct pipe_resource *templ) { if (templ->target == PIPE_BUFFER) { - return si_buffer_create(screen, templ); + return r600_buffer_create(screen, templ, 4096); } else { return r600_texture_create(screen, templ); } @@ -55,7 +55,7 @@ void r600_init_screen_resource_functions(struct pipe_screen *screen) void r600_init_context_resource_functions(struct r600_context *r600) { r600->b.b.transfer_map = u_transfer_map_vtbl; - r600->b.b.transfer_flush_region = u_transfer_flush_region_vtbl; + r600->b.b.transfer_flush_region = u_default_transfer_flush_region; r600->b.b.transfer_unmap = u_transfer_unmap_vtbl; r600->b.b.transfer_inline_write = u_default_transfer_inline_write; } -- cgit v1.2.3