From: Michel Dänzer Date: Thu, 10 Apr 2014 09:15:55 +0000 (+0900) Subject: r600g/radeonsi: Use caching buffer manager for textures as well X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=313104e8d58002ad00d297e1b229ecd984d79298;p=mesa.git r600g/radeonsi: Use caching buffer manager for textures as well Significantly reduces BO allocation / destruction overhead for transfers, e.g. measurable via x11perf -shm{ge,pu}t* with glamor. Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index e39b9ec0316..293eeaa0890 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -633,7 +633,7 @@ r600_texture_create_object(struct pipe_screen *screen, /* Now create the backing buffer. */ if (!buf) { if (!r600_init_resource(rscreen, resource, rtex->size, - rtex->surface.bo_alignment, FALSE)) { + rtex->surface.bo_alignment, TRUE)) { FREE(rtex); return NULL; }