diff options
author | Marek Olšák <[email protected]> | 2017-02-15 20:07:53 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-02-18 01:22:08 +0100 |
commit | 943442121369a35093e5d4ee1894faf8d8368ec4 (patch) | |
tree | b55a005f81f33ce64e003b1e01d5efc74186ba9f | |
parent | ac6007460adaf4bb21028a3281ec622d1e43df49 (diff) |
gallium/radeon: change r600_aligned_buffer_create to take flags, not bind
All call sites set bind = 0. The next commit will use this.
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index e37e36f3b45..5ccfb0940de 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -550,7 +550,7 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen, } struct pipe_resource *r600_aligned_buffer_create(struct pipe_screen *screen, - unsigned bind, + unsigned flags, unsigned usage, unsigned size, unsigned alignment) @@ -560,9 +560,9 @@ struct pipe_resource *r600_aligned_buffer_create(struct pipe_screen *screen, memset(&buffer, 0, sizeof buffer); buffer.target = PIPE_BUFFER; buffer.format = PIPE_FORMAT_R8_UNORM; - buffer.bind = bind; + buffer.bind = 0; buffer.usage = usage; - buffer.flags = 0; + buffer.flags = flags; buffer.width0 = size; buffer.height0 = 1; buffer.depth0 = 1; diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h index 1fe44d9dd84..b4f0f0b55a8 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.h +++ b/src/gallium/drivers/radeon/r600_pipe_common.h @@ -718,7 +718,7 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen, const struct pipe_resource *templ, unsigned alignment); struct pipe_resource * r600_aligned_buffer_create(struct pipe_screen *screen, - unsigned bind, + unsigned flags, unsigned usage, unsigned size, unsigned alignment); |