Mesa (master): gallium/radeon: page alignment for buffers is unnecessary
Nicolai Hähnle
nh at kemper.freedesktop.org
Mon Sep 12 12:03:40 UTC 2016
Module: Mesa
Branch: master
Commit: a6c38d47d422f66e4ba17f15144f68c574080b17
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6c38d47d422f66e4ba17f15144f68c574080b17
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Fri Sep 9 12:59:10 2016 +0200
gallium/radeon: page alignment for buffers is unnecessary
In some places (e.g. shader program pointers) we require 256 bytes alignment.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeon/r600_pipe_common.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index 6d7cc1b..f0fdc9b 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -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);
}
More information about the mesa-commit
mailing list