gallium/radeon: remove use_reusable_pool parameter from r600_init_resource
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 23 Apr 2016 03:56:13 +0000 (22:56 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 27 Apr 2016 16:16:41 +0000 (11:16 -0500)
All callers set it to true.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_state_common.c
src/gallium/drivers/radeon/r600_buffer_common.c
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/radeonsi/si_descriptors.c

index 2ab9f92eb8b750c42633cc9cf2172c82e3ff646f..5317de0cbabc11da276113efb8fb23ad1dc68571 100644 (file)
@@ -2788,7 +2788,7 @@ static void r600_invalidate_buffer(struct pipe_context *ctx, struct pipe_resourc
 
        /* Reallocate the buffer in the same pipe_resource. */
        r600_init_resource(&rctx->screen->b, rbuffer, rbuffer->b.b.width0,
-                          alignment, TRUE);
+                          alignment);
 
        /* We changed the buffer, now we need to bind it where the old one was bound. */
        /* Vertex buffers. */
index 664dc5bfdce19756c9dab65e159ab52646a581c9..1d40b7686dc2947b09b382ad077cb683beab0cf2 100644 (file)
@@ -102,8 +102,7 @@ void *r600_buffer_map_sync_with_rings(struct r600_common_context *ctx,
 
 bool r600_init_resource(struct r600_common_screen *rscreen,
                        struct r600_resource *res,
-                       uint64_t size, unsigned alignment,
-                       bool use_reusable_pool)
+                       uint64_t size, unsigned alignment)
 {
        struct r600_texture *rtex = (struct r600_texture*)res;
        struct pb_buffer *old_buf, *new_buf;
@@ -177,7 +176,7 @@ bool r600_init_resource(struct r600_common_screen *rscreen,
 
        /* Allocate a new resource. */
        new_buf = rscreen->ws->buffer_create(rscreen->ws, size, alignment,
-                                            use_reusable_pool,
+                                            true,
                                             res->domains, flags);
        if (!new_buf) {
                return false;
@@ -489,7 +488,7 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen,
        struct r600_common_screen *rscreen = (struct r600_common_screen*)screen;
        struct r600_resource *rbuffer = r600_alloc_buffer_struct(screen, templ);
 
-       if (!r600_init_resource(rscreen, rbuffer, templ->width0, alignment, TRUE)) {
+       if (!r600_init_resource(rscreen, rbuffer, templ->width0, alignment)) {
                FREE(rbuffer);
                return NULL;
        }
index a0cc162486dd5e1ab9d573af0171797cf1564665..d7478efa4bc3ff54cb356cd0fa4533f9bde632f2 100644 (file)
@@ -549,8 +549,7 @@ void *r600_buffer_map_sync_with_rings(struct r600_common_context *ctx,
                                       unsigned usage);
 bool r600_init_resource(struct r600_common_screen *rscreen,
                        struct r600_resource *res,
-                       uint64_t size, unsigned alignment,
-                       bool use_reusable_pool);
+                       uint64_t size, unsigned alignment);
 struct pipe_resource *r600_buffer_create(struct pipe_screen *screen,
                                         const struct pipe_resource *templ,
                                         unsigned alignment);
index 2d4ae332b82fa2aa8f7452e8c71022966ecb940c..7e58490e66323b0c1b490dfb0e806af55c7e94aa 100644 (file)
@@ -878,7 +878,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, TRUE)) {
+                                       rtex->surface.bo_alignment)) {
                        FREE(rtex);
                        return NULL;
                }
index 6926c6b701d1363252e19df8d30d85b7bafc190d..fbaf804be907fccaa424878b5f309f95de0f3c03 100644 (file)
@@ -1203,7 +1203,7 @@ static void si_invalidate_buffer(struct pipe_context *ctx, struct pipe_resource
 
        /* Reallocate the buffer in the same pipe_resource. */
        r600_init_resource(&sctx->screen->b, rbuffer, rbuffer->b.b.width0,
-                          alignment, TRUE);
+                          alignment);
 
        /* We changed the buffer, now we need to bind it where the old one
         * was bound. This consists of 2 things: