Mesa (r6xx-rewrite): R6xx/r7xx: use packet 3 for scratch emit
Alex Deucher
agd5f at kemper.freedesktop.org
Fri Jul 10 16:06:57 UTC 2009
Module: Mesa
Branch: r6xx-rewrite
Commit: 37c0cde80aa99435c7b58b36e5e186782cff4e77
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=37c0cde80aa99435c7b58b36e5e186782cff4e77
Author: Alex Deucher <alexdeucher at gmail.com>
Date: Fri Jul 10 12:04:56 2009 -0400
R6xx/r7xx: use packet 3 for scratch emit
no need to allow packet 0 scratch regs in the drm
---
src/mesa/drivers/dri/r600/r600_cmdbuf.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/r600/r600_cmdbuf.c b/src/mesa/drivers/dri/r600/r600_cmdbuf.c
index 1ea1bf8..b8e1deb 100644
--- a/src/mesa/drivers/dri/r600/r600_cmdbuf.c
+++ b/src/mesa/drivers/dri/r600/r600_cmdbuf.c
@@ -400,8 +400,9 @@ static int r600_cs_emit(struct radeon_cs *cs)
current_scratchx_age++;
csm->pending_age = current_scratchx_age;
- BEGIN_BATCH_NO_AUTOSTATE(2);
- R600_OUT_BATCH(0x2142); /* scratch 2 */
+ BEGIN_BATCH_NO_AUTOSTATE(3);
+ R600_OUT_BATCH(CP_PACKET3(R600_IT_SET_CONFIG_REG, 1));
+ R600_OUT_BATCH((SCRATCH_REG2 - R600_SET_CONFIG_REG_OFFSET) >> 2);
R600_OUT_BATCH(current_scratchx_age);
END_BATCH();
COMMIT_BATCH();
More information about the mesa-commit
mailing list