mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
gallium/radeon: remove use_reusable_pool parameter from r600_init_resource
All callers set it to true. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
c868974396
commit
13acf2b243
5 changed files with 7 additions and 9 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue