From: Marek Olšák Date: Wed, 15 Feb 2017 19:07:53 +0000 (+0100) Subject: gallium/radeon: change r600_aligned_buffer_create to take flags, not bind X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=943442121369a35093e5d4ee1894faf8d8368ec4;p=mesa.git 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 --- 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);