diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-06-16 19:02:10 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2010-06-16 19:02:10 -0400 |
commit | fdd8ecafd054f65842351aee6ee6fba7af6613b2 (patch) | |
tree | 9bfa9be9725567f773ded818d7d9f66108ca8fd5 /src | |
parent | 4651d77211b508cb6b76931807780e317f232220 (diff) |
r6xx/r7xx: macro safety fixes
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 e9bfa102..43dc929a 100644 --- a/src/r600_state.h +++ b/src/r600_state.h @@ -235,13 +235,13 @@ 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) - SET_CONTEXT_REG_offset) >> 2); \ + 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); \ + E32((ib), ((reg) - SET_ALU_CONST_offset) >> 2); \ } else if ((reg) >= SET_RESOURCE_offset && (reg) < SET_RESOURCE_end) { \ PACK3((ib), IT_SET_RESOURCE, num + 1); \ E32((ib), ((reg) - SET_RESOURCE_offset) >> 2); \ |