gallium/radeon: change r600_aligned_buffer_create to take flags, not bind
authorMarek Olšák <marek.olsak@amd.com>
Wed, 15 Feb 2017 19:07:53 +0000 (20:07 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 18 Feb 2017 00:22:08 +0000 (01:22 +0100)
All call sites set bind = 0. The next commit will use this.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c
src/gallium/drivers/radeon/r600_pipe_common.h

index e37e36f3b450a53eff250b8f483656409bf65728..5ccfb0940de47932efba3bcea2f29308cd6e5455 100644 (file)
@@ -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;
index 1fe44d9dd84e4a983c7988627667a15481a46319..b4f0f0b55a8d36738e94f8cbc0576cb8b1966eb0 100644 (file)
@@ -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);