summaryrefslogtreecommitdiff
path: root/src/r600_state.h
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-08-25 18:37:15 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-08-25 18:37:15 -0400
commitbba51187055932ecd466f5f817428d6c773747b9 (patch)
tree6fdb433d2b816e86219b3605c9a0a1df82c1e48b /src/r600_state.h
parent599adfc1f5e6d708be7ad30f4871de3046775727 (diff)
R6xx/r7xx: unmap vb bo when done
Diffstat (limited to 'src/r600_state.h')
-rw-r--r--src/r600_state.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/r600_state.h b/src/r600_state.h
index 6ca88cf4..cb039d49 100644
--- a/src/r600_state.h
+++ b/src/r600_state.h
@@ -188,9 +188,12 @@ do { \
radeon_cs_end(info->cs, __FILE__, __func__, __LINE__); \
} while(0)
#define RELOC_BATCH(bo, rd, wd) \
-do { \
- if (info->cs) \
- OUT_RING_RELOC((bo), (rd), (wd)); \
+do { \
+ if (info->cs) { \
+ int _ret; \
+ _ret = radeon_cs_write_reloc(info->cs, (bo), (rd), (wd), 0); \
+ if (_ret) ErrorF("reloc emit failure %d (%s %d)\n", _ret, __func__, __LINE__); \
+ } \
} while(0)
#define E32(ib, dword) \
do { \