gallium/radeon: page alignment for buffers is unnecessary
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 9 Sep 2016 10:59:10 +0000 (12:59 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Sep 2016 11:54:45 +0000 (13:54 +0200)
In some places (e.g. shader program pointers) we require 256 bytes alignment.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index 6d7cc1b5d3cade3b6dc63f7042ae2d82bbb4f795..f0fdc9b904cc601badd77a31abdf1bc1a2d3414e 100644 (file)
@@ -1081,11 +1081,8 @@ static void r600_query_memory_info(struct pipe_screen *screen,
 struct pipe_resource *r600_resource_create_common(struct pipe_screen *screen,
                                                  const struct pipe_resource *templ)
 {
-       struct r600_common_screen *rscreen = (struct r600_common_screen*)screen;
-
        if (templ->target == PIPE_BUFFER) {
-               return r600_buffer_create(screen, templ,
-                                         rscreen->info.gart_page_size);
+               return r600_buffer_create(screen, templ, 256);
        } else {
                return r600_texture_create(screen, templ);
        }