summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2009-08-19 23:35:00 +0200
committerMaciej Cencora <[email protected]>2009-08-23 20:21:48 +0200
commit4aadda5f66adda1b7814ec1dec39b5e8f4f71cc5 (patch)
tree9ada173df823ccd12422b711a46e69c536ecd8c7 /src/mesa/drivers/dri/radeon
parent9b70c33e735ff060ddad7d0b501d19c670f41618 (diff)
r300: minor optimization
use properly implemented OUT_BATCH_TABLE where possible
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_cmdbuf.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h b/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
index abb023c7def..c31421c253a 100644
--- a/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
+++ b/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
@@ -71,10 +71,7 @@ void rcommonBeginBatch(radeonContextPtr rmesa,
*/
#define OUT_BATCH_TABLE(ptr,n) \
do { \
- int _i; \
- for (_i=0; _i < n; _i++) {\
- radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, ptr[_i]);\
- }\
+ radeon_cs_write_table(b_l_rmesa->cmdbuf.cs, ptr, n); \
} while(0)
/**