From: Marek Olšák <marek.ol...@amd.com>

All call sites set bind = 0. The next commit will use this.
---
 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 e37e36f..5ccfb09 100644
--- a/src/gallium/drivers/radeon/r600_buffer_common.c
+++ b/src/gallium/drivers/radeon/r600_buffer_common.c
@@ -543,33 +543,33 @@ struct pipe_resource *r600_buffer_create(struct 
pipe_screen *screen,
                rbuffer->flags |= RADEON_FLAG_HANDLE;
 
        if (!r600_alloc_resource(rscreen, rbuffer)) {
                FREE(rbuffer);
                return NULL;
        }
        return &rbuffer->b.b;
 }
 
 struct pipe_resource *r600_aligned_buffer_create(struct pipe_screen *screen,
-                                                unsigned bind,
+                                                unsigned flags,
                                                 unsigned usage,
                                                 unsigned size,
                                                 unsigned alignment)
 {
        struct pipe_resource buffer;
 
        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;
        buffer.array_size = 1;
        return r600_buffer_create(screen, &buffer, alignment);
 }
 
 struct pipe_resource *
 r600_buffer_from_user_memory(struct pipe_screen *screen,
                             const struct pipe_resource *templ,
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h 
b/src/gallium/drivers/radeon/r600_pipe_common.h
index 1fe44d9..b4f0f0b 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.h
+++ b/src/gallium/drivers/radeon/r600_pipe_common.h
@@ -711,21 +711,21 @@ void r600_buffer_subdata(struct pipe_context *ctx,
                         unsigned size, const void *data);
 void r600_init_resource_fields(struct r600_common_screen *rscreen,
                               struct r600_resource *res,
                               uint64_t size, unsigned alignment);
 bool r600_alloc_resource(struct r600_common_screen *rscreen,
                         struct r600_resource *res);
 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);
 struct pipe_resource *
 r600_buffer_from_user_memory(struct pipe_screen *screen,
                             const struct pipe_resource *templ,
                             void *user_memory);
 void
 r600_invalidate_resource(struct pipe_context *ctx,
                         struct pipe_resource *resource);
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to