summaryrefslogtreecommitdiff
path: root/src/radeon_legacy_memory.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-02-24 22:46:27 -0500
committerAlex Deucher <alexdeucher@gmail.com>2010-02-26 14:50:15 -0500
commitc7e81d2f3a372e0d5f751dd0c5091aec2b56d936 (patch)
treec522aedca79e673e29f93a18c4c19f74ae2337bb /src/radeon_legacy_memory.c
parentc0a5c9403dff254e1669df606a4193794270aeff (diff)
Use/define RADEON_GPU_PAGE_SIZE instead of sprinkling 4096 everywhere.
Also, define RADEON_BUFFER_ALIGN in terms of it, and replace some RADEON_ALIGN(x, RADEON_BUFFER_ALIGN) with RADEON_ALIGN(x, RADEON_GPU_PAGE_SIZE) since this is really what was intended. CC: Jerome Glisse <jglisse@redhat.com> CC: Alex Deucher <alexdeucher@gmail.com> CC: Dave Airlie <airlied@redhat.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/radeon_legacy_memory.c')
-rw-r--r--src/radeon_legacy_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_legacy_memory.c b/src/radeon_legacy_memory.c
index bdf8ca26..3e75291f 100644
--- a/src/radeon_legacy_memory.c
+++ b/src/radeon_legacy_memory.c
@@ -26,7 +26,7 @@ radeon_legacy_allocate_memory(ScrnInfoPtr pScrn,
if (info->cs) {
struct radeon_bo *video_bo;
- video_bo = radeon_bo_open(info->bufmgr, 0, size, 4096, domain, 0);
+ video_bo = radeon_bo_open(info->bufmgr, 0, size, RADEON_GPU_PAGE_SIZE, domain, 0);
*mem_struct = video_bo;