r600g/radeonsi: Use caching buffer manager for textures as well
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 10 Apr 2014 09:15:55 +0000 (18:15 +0900)
committerMichel Dänzer <michel@daenzer.net>
Tue, 15 Apr 2014 02:34:56 +0000 (11:34 +0900)
Significantly reduces BO allocation / destruction overhead for transfers,
e.g. measurable via x11perf -shm{ge,pu}t* with glamor.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index e39b9ec0316b667ea07f7ba84569112b31311bcf..293eeaa089079da2be4d9af003cd80e6cd0a964b 100644 (file)
@@ -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;
                }