summaryrefslogtreecommitdiff
path: root/src/r600_state.h
diff options
context:
space:
mode:
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 { \