diff options
author | Dave Airlie <[email protected]> | 2009-03-31 10:35:16 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-03-31 10:35:16 +1000 |
commit | 1570bde279362d95a58d120e42e68cb307d00dde (patch) | |
tree | 9ca6b6fe254c36cdccdf2d585f423b43d869ada1 /src/mesa/drivers/dri/r200 | |
parent | 3b09f6544aee880687cd82de33205ae2fa652e10 (diff) |
r200: fix veclinear emission
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_state_init.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c index 30326c29601..2400abe838b 100644 --- a/src/mesa/drivers/dri/r200/r200_state_init.c +++ b/src/mesa/drivers/dri/r200/r200_state_init.c @@ -305,11 +305,12 @@ VP_CHECK( tcl_vpp_size, ctx->VertexProgram.Current->Base.NumNativeParameters > 9 OUT_BATCH_TABLE((data), h.vectors.count); \ } while(0) -#define OUT_VECLINEAR(hdr, data) do { \ - drm_radeon_cmd_header_t h; \ - uint32_t _start = h.veclinear.addr_lo | (h.veclinear.addr_hi << 8); \ - uint32_t _sz = h.veclinear.count * 4; \ +#define OUT_VECLINEAR(hdr, data) do { \ + drm_radeon_cmd_header_t h; \ + uint32_t _start, _sz; \ h.i = hdr; \ + _start = h.veclinear.addr_lo | (h.veclinear.addr_hi << 8); \ + _sz = h.veclinear.count * 4; \ OUT_BATCH(CP_PACKET0(RADEON_SE_TCL_STATE_FLUSH, 0)); \ OUT_BATCH(0); \ OUT_BATCH(CP_PACKET0(R200_SE_TCL_VECTOR_INDX_REG, 0)); \ |