diff options
author | Marek Olšák <[email protected]> | 2012-12-09 00:02:46 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-12-12 13:09:54 +0100 |
commit | 448cd5ea60403576c3eec86ffb2b892e78b9dfe0 (patch) | |
tree | 395a69bf618864ee3af1263a5531fea7a3c64f01 /src/gallium/drivers/r300 | |
parent | 1d0bf69f831e138a05a282e59746f20141046fd6 (diff) |
winsys/radeon: don't use BIND flags, add a flag for the cache bufmgr instead
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r-- | src/gallium/drivers/r300/r300_flush.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/r300/r300_query.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/r300/r300_screen_buffer.c | 12 | ||||
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 4 |
4 files changed, 11 insertions, 12 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index 732529a317e..2170c591f99 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -79,8 +79,7 @@ void r300_flush(struct pipe_context *pipe, if (rfence) { /* Create a fence, which is a dummy BO. */ - *rfence = r300->rws->buffer_create(r300->rws, 1, 1, - PIPE_BIND_CUSTOM, + *rfence = r300->rws->buffer_create(r300->rws, 1, 1, TRUE, RADEON_DOMAIN_GTT); /* Add the fence as a dummy relocation. */ r300->rws->cs_add_reloc(r300->cs, diff --git a/src/gallium/drivers/r300/r300_query.c b/src/gallium/drivers/r300/r300_query.c index 3ea6be7ef57..4443362d102 100644 --- a/src/gallium/drivers/r300/r300_query.c +++ b/src/gallium/drivers/r300/r300_query.c @@ -57,8 +57,8 @@ static struct pipe_query *r300_create_query(struct pipe_context *pipe, else q->num_pipes = r300screen->info.r300_num_gb_pipes; - q->buf = r300->rws->buffer_create(r300->rws, 4096, 4096, - PIPE_BIND_CUSTOM, RADEON_DOMAIN_GTT); + q->buf = r300->rws->buffer_create(r300->rws, 4096, 4096, TRUE, + RADEON_DOMAIN_GTT); if (!q->buf) { FREE(q); return NULL; diff --git a/src/gallium/drivers/r300/r300_screen_buffer.c b/src/gallium/drivers/r300/r300_screen_buffer.c index c92ec56507c..0c1e69b7a4c 100644 --- a/src/gallium/drivers/r300/r300_screen_buffer.c +++ b/src/gallium/drivers/r300/r300_screen_buffer.c @@ -101,9 +101,9 @@ r300_buffer_transfer_map( struct pipe_context *context, struct pb_buffer *new_buf; /* Create a new one in the same pipe_resource. */ - new_buf = r300->rws->buffer_create(r300->rws, - rbuf->b.b.width0, R300_BUFFER_ALIGNMENT, - rbuf->b.b.bind, rbuf->domain); + new_buf = r300->rws->buffer_create(r300->rws, rbuf->b.b.width0, + R300_BUFFER_ALIGNMENT, TRUE, + rbuf->domain); if (new_buf) { /* Discard the old buffer. */ pb_reference(&rbuf->buf, NULL); @@ -181,9 +181,9 @@ struct pipe_resource *r300_buffer_create(struct pipe_screen *screen, } rbuf->buf = - r300screen->rws->buffer_create(r300screen->rws, - rbuf->b.b.width0, R300_BUFFER_ALIGNMENT, - rbuf->b.b.bind, rbuf->domain); + r300screen->rws->buffer_create(r300screen->rws, rbuf->b.b.width0, + R300_BUFFER_ALIGNMENT, TRUE, + rbuf->domain); if (!rbuf->buf) { FREE(rbuf); return NULL; diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index 6197cf719ef..568558f0adb 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -997,8 +997,8 @@ r300_texture_create_object(struct r300_screen *rscreen, /* Create the backing buffer if needed. */ if (!tex->buf) { - tex->buf = rws->buffer_create(rws, tex->tex.size_in_bytes, 2048, - base->bind, tex->domain); + tex->buf = rws->buffer_create(rws, tex->tex.size_in_bytes, 2048, TRUE, + tex->domain); if (!tex->buf) { goto fail; |