From: Cooper Yuan Date: Thu, 25 Jun 2009 11:48:43 +0000 (+0800) Subject: Fix color data can't be fetched issue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eaadba6eee05cd725295821e0c1f5e1a01e99e89;p=mesa.git Fix color data can't be fetched issue --- 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;