diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-04-09 19:59:19 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-04-09 19:59:19 -0400 |
commit | ce9077b2f5a5e749c0078dfb79d26ef8711a823a (patch) | |
tree | 5086e03d0c358e230a73def84c5f871910f195df /src | |
parent | 6532aeddacdeda3aa534264741c8648e1c449e76 (diff) |
R6xx/R7xx: cleanup macro
Diffstat (limited to 'src')
-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); \ |