OUT_CS(CP_PACKET3(op, count))
#define OUT_CS_TABLE(values, count) do { \
- memcpy(cs_copy->buf + cs_copy->cdw, values, count * 4); \
- cs_copy->cdw += count; \
+ memcpy(cs_copy->buf + cs_copy->cdw, (values), (count) * 4); \
+ cs_copy->cdw += (count); \
CS_USED_DW(count); \
} while (0)
R300_FG_ALPHA_FUNC_CFG_3_OF_6;
}
+ BEGIN_CS(size);
OUT_CS_REG(R300_FG_ALPHA_FUNC, alpha_func);
- WRITE_CS_TABLE(fb->zsbuf ? &dsa->cb_begin : dsa->cb_zb_no_readwrite, size-2);
+ OUT_CS_TABLE(fb->zsbuf ? &dsa->cb_begin : dsa->cb_zb_no_readwrite, 8);
+ END_CS;
}
static void get_rc_constant_state(