diff options
author | Dave Airlie <[email protected]> | 2010-07-26 11:56:12 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-07-26 12:02:14 +1000 |
commit | 8c26dc2bfeaa2504d6bcc31caa200299d47772b8 (patch) | |
tree | 33c908defe29df87c744db32b146289dd9ced60b /src/gallium | |
parent | 6f2936c654c68388b9c43a189a1b8c06f3a9d241 (diff) |
r300g: fix macro substitution problem
isn't a problem yet, but have issues in hiz branch.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r300/r300_cs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_cs.h b/src/gallium/drivers/r300/r300_cs.h index 3beb625d430..c194d6a1b08 100644 --- a/src/gallium/drivers/r300/r300_cs.h +++ b/src/gallium/drivers/r300/r300_cs.h @@ -136,8 +136,8 @@ #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 */ |