rs690: fix r300 swtcl bug in DMA code.
authorDave Airlie <airlied@redhat.com>
Sat, 7 Mar 2009 06:23:40 +0000 (17:23 +1100)
committerDave Airlie <airlied@redhat.com>
Sat, 7 Mar 2009 06:23:40 +0000 (17:23 +1100)
commitf881035fd84add859b3e3dc4721eddd027005f49
tree674584b53dab68a8e2f519f335fe7044a0a34ec2
parent760068cc8d5b443c4c6545870fa4f7eda7c6e775
rs690: fix r300 swtcl bug in DMA code.

When we finish emitting swtcl objects, we request space in the cmdbuf,
and flush if no space exists. However in this case we also flush
the DMA buffer we just put the vertices we wanted to send in.

This checks in advance if we have space in the buffer.
src/mesa/drivers/dri/radeon/radeon_dma.c