diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-04-09 19:59:19 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-05-08 12:04:15 -0400 |
commit | 8c86ac945055d6168016a2c8f4600462cd63bfec (patch) | |
tree | c86137ebe7072605bd94f231b5d88bbe91f1392c | |
parent | a5597cbf9c7573a247788a5c3b33ca872dd3bd10 (diff) |
R6xx/R7xx: cleanup macro
-rw-r--r-- | src/r600_state.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/r600_state.h b/src/r600_state.h index 181e1678..44e76007 100644 --- a/src/r600_state.h +++ b/src/r600_state.h @@ -195,10 +195,10 @@ do { \ do { \ if ((reg) >= SET_CONFIG_REG_offset && (reg) < SET_CONFIG_REG_end) { \ PACK3((ib), IT_SET_CONFIG_REG, (num) + 1); \ - E32(ib, ((reg) - SET_CONFIG_REG_offset) >> 2); \ + E32(ib, ((reg) - SET_CONFIG_REG_offset) >> 2); \ } else if ((reg) >= SET_CONTEXT_REG_offset && (reg) < SET_CONTEXT_REG_end) { \ - PACK3((ib), IT_SET_CONTEXT_REG, (num) + 1); \ - E32(ib, ((reg) - 0x28000) >> 2); \ + PACK3((ib), IT_SET_CONTEXT_REG, (num) + 1); \ + E32(ib, ((reg) - SET_CONTEXT_REG_offset) >> 2); \ } else if ((reg) >= SET_ALU_CONST_offset && (reg) < SET_ALU_CONST_end) { \ PACK3((ib), IT_SET_ALU_CONST, (num) + 1); \ E32(ib, ((reg) - SET_ALU_CONST_offset) >> 2); \ |