summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-12-19 13:11:56 +0000
committerKeith Whitwell <[email protected]>2007-12-19 13:13:53 +0000
commit2e3dfe97ee514a9ef8bd0a862360854d9be392d3 (patch)
tree0bd1bcb3b79e631da50a4b62bb50fa8b1512c97f
parentf13a200c8367c58fc962bdad9bcb22263d385886 (diff)
965: allocate buffer space to hold batch commands
-rw-r--r--src/mesa/pipe/xlib/xm_winsys_aub.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/pipe/xlib/xm_winsys_aub.c b/src/mesa/pipe/xlib/xm_winsys_aub.c
index ef3d975afbd..dd7c7255078 100644
--- a/src/mesa/pipe/xlib/xm_winsys_aub.c
+++ b/src/mesa/pipe/xlib/xm_winsys_aub.c
@@ -226,10 +226,16 @@ void xmesa_commands_aub(struct pipe_winsys *winsys,
unsigned nr_dwords)
{
struct aub_pipe_winsys *iws = aub_pipe_winsys(winsys);
+ unsigned size = nr_dwords * 4;
+
+ assert(iws->used + size < iws->size);
+
brw_aub_gtt_cmds( iws->aubfile,
- 0, /* ?? */
+ AUB_BUF_START + iws->used,
cmds,
nr_dwords * sizeof(int) );
+
+ iws->used += size;
}