summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_pipe_query.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-10-24 17:07:01 +0100
committerKeith Whitwell <[email protected]>2009-10-24 17:07:28 +0100
commit4f7931bb3554cb1839adc2044e3abe6d4af8b0b5 (patch)
tree46999bd594cd839f1ad58dc799bd721c4b45d35e /src/gallium/drivers/i965/brw_pipe_query.c
parent074606a806df755ecbb84e0a1182c66fd0b2a8dd (diff)
i965g: more work on compiling
Diffstat (limited to 'src/gallium/drivers/i965/brw_pipe_query.c')
-rw-r--r--src/gallium/drivers/i965/brw_pipe_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_query.c b/src/gallium/drivers/i965/brw_pipe_query.c
index 55242ac6adf..a2da1373bfd 100644
--- a/src/gallium/drivers/i965/brw_pipe_query.c
+++ b/src/gallium/drivers/i965/brw_pipe_query.c
@@ -43,7 +43,7 @@
#include "brw_context.h"
#include "brw_state.h"
#include "brw_batchbuffer.h"
-#include "intel_reg.h"
+#include "brw_reg.h"
/** Waits on the query object's BO and totals the results for this query */
static void
@@ -165,7 +165,7 @@ brw_prepare_query_begin(struct brw_context *brw)
brw->sws->bo_unreference(brw->query.bo);
brw->query.bo = NULL;
- brw->query.bo = dri_bo_alloc(brw->bufmgr, "query", 4096, 1);
+ brw->query.bo = brw->sws->bo_alloc(brw->sws, BRW_BUFFER_TYPE_QUERY, 4096, 1);
brw->query.index = 0;
}