From eaadba6eee05cd725295821e0c1f5e1a01e99e89 Mon Sep 17 00:00:00 2001 From: Cooper Yuan Date: Thu, 25 Jun 2009 19:48:43 +0800 Subject: [PATCH] Fix color data can't be fetched issue --- src/mesa/drivers/dri/r600/r600_cmdbuf.c | 2 +- src/mesa/drivers/dri/r600/r700_clear.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/r600/r600_cmdbuf.c b/src/mesa/drivers/dri/r600/r600_cmdbuf.c index 5edc42b5327..90f546edf1e 100644 --- a/src/mesa/drivers/dri/r600/r600_cmdbuf.c +++ b/src/mesa/drivers/dri/r600/r600_cmdbuf.c @@ -288,7 +288,7 @@ restart: relocs[i].base.bo, soffset, eoffset); return r; } - asicoffset = cs->packets[relocs[i].indices[j]] + soffset; + asicoffset = soffset; if (asicoffset >= eoffset) { /* radeon_bo_debug(relocs[i].base.bo, 12); */ diff --git a/src/mesa/drivers/dri/r600/r700_clear.c b/src/mesa/drivers/dri/r600/r700_clear.c index f142aafd03e..b04441da281 100644 --- a/src/mesa/drivers/dri/r600/r700_clear.c +++ b/src/mesa/drivers/dri/r600/r700_clear.c @@ -63,9 +63,6 @@ void r700Clear(GLcontext * ctx, GLbitfield mask) int i; struct gl_framebuffer *fb = ctx->DrawBuffer; - /* XXX FIXME */ - return; - if( GL_TRUE == r700ClearFast(context, mask) ) { return; -- 2.30.2