r300g: fix macro substitution problem
authorDave Airlie <airlied@redhat.com>
Mon, 26 Jul 2010 01:56:12 +0000 (11:56 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 26 Jul 2010 02:02:14 +0000 (12:02 +1000)
isn't a problem yet, but have issues in hiz branch.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r300/r300_cs.h

index 3beb625d4309bc077a99d6b4d6bdcd8dff1319ca..c194d6a1b08c3ebff2c61b5e8d78efe58f2f7c8d 100644 (file)
 
 #define WRITE_CS_TABLE(values, count) do { \
     CS_DEBUG(assert(cs_count == 0);) \
-    memcpy(cs_copy->ptr + cs_copy->cdw, values, count * 4); \
-    cs_copy->cdw += count; \
+    memcpy(cs_copy->ptr + cs_copy->cdw, (values), (count) * 4); \
+    cs_copy->cdw += (count); \
 } while (0)
 
 #endif /* R300_CS_H */