From 943442121369a35093e5d4ee1894faf8d8368ec4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 15 Feb 2017 20:07:53 +0100 Subject: [PATCH] gallium/radeon: change r600_aligned_buffer_create to take flags, not bind MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit All call sites set bind = 0. The next commit will use this. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeon/r600_buffer_common.c | 6 +++--- 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); -- 2.30.2