summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-12-19 14:20:23 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-12-19 14:20:23 +0000
commitae280f1ce90a7d95bf761efdfebc91ae5b379079 (patch)
tree9430bd0dbea13146aee72b509ea2b0e8b051e3a0 /src/mesa
parent2c8e50c0cbbea64fd26d9c61c19c697e1cbfd9f5 (diff)
965: align buffer allocations to 4k
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/xlib/xm_winsys_aub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/xlib/xm_winsys_aub.c b/src/mesa/pipe/xlib/xm_winsys_aub.c
index dd7c725507..60ba233f35 100644
--- a/src/mesa/pipe/xlib/xm_winsys_aub.c
+++ b/src/mesa/pipe/xlib/xm_winsys_aub.c
@@ -35,9 +35,9 @@
#include "glxheader.h"
#include "xmesaP.h"
-#include "main/macros.h"
#include "pipe/p_winsys.h"
+#include "pipe/p_util.h"
#include "pipe/i965simple/brw_winsys.h"
#include "brw_aub.h"
#include "xm_winsys_aub.h"
@@ -159,7 +159,7 @@ static int aub_buffer_data(struct pipe_winsys *winsys,
assert(iws->used + size < iws->size);
sbo->data = iws->pool + iws->used;
sbo->offset = AUB_BUF_START + iws->used;
- iws->used += size;
+ iws->used += align(size, 4096);
}
sbo->size = size;
@@ -235,7 +235,7 @@ void xmesa_commands_aub(struct pipe_winsys *winsys,
cmds,
nr_dwords * sizeof(int) );
- iws->used += size;
+ iws->used += align(size, 4096);
}