aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_queryobj.c
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2009-08-23 21:11:13 +0200
committerMaciej Cencora <[email protected]>2009-08-23 21:11:13 +0200
commitbcbe27d0ca304bb40c150a4fe5b846e8a987980e (patch)
treec90522d43d5597e63701fdd835d1db8f35f1d6cc /src/mesa/drivers/dri/radeon/radeon_queryobj.c
parent7e7f0f61bf41bccfdd0f68afc03ccc6b1d3c0c91 (diff)
radeon: use proper macro
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_queryobj.c')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_queryobj.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_queryobj.c b/src/mesa/drivers/dri/radeon/radeon_queryobj.c
index e508f5f6312..7eef4faaf61 100644
--- a/src/mesa/drivers/dri/radeon/radeon_queryobj.c
+++ b/src/mesa/drivers/dri/radeon/radeon_queryobj.c
@@ -32,8 +32,6 @@
#define DDEBUG 0
-#define PAGE_SIZE 4096
-
static int radeonQueryIsFlushed(GLcontext *ctx, struct gl_query_object *q)
{
radeonContextPtr radeon = RADEON_CONTEXT(ctx);
@@ -127,7 +125,7 @@ static void radeonBeginQuery(GLcontext *ctx, struct gl_query_object *q)
radeon->dma.flush(radeon->glCtx);
if (!query->bo) {
- query->bo = radeon_bo_open(radeon->radeonScreen->bom, 0, PAGE_SIZE, PAGE_SIZE, RADEON_GEM_DOMAIN_GTT, 0);
+ query->bo = radeon_bo_open(radeon->radeonScreen->bom, 0, RADEON_QUERY_PAGE_SIZE, RADEON_QUERY_PAGE_SIZE, RADEON_GEM_DOMAIN_GTT, 0);
}
query->curr_offset = 0;