diff options
author | Dave Airlie <airlied@redhat.com> | 2009-01-21 01:40:33 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-01-21 01:40:33 +1000 |
commit | d9c4a01bad3a7d4a965fc09d8605afc6ca48f6f9 (patch) | |
tree | c5347c9b5ee3ef1c88855e50a1c25cca0118237b /src/mesa/drivers/dri/r200/r200_ioctl.c | |
parent | 04029e5ddb030445edc98305b091b9a35479282a (diff) |
r200: make tri render on my r200.
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_ioctl.c')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_ioctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_ioctl.c b/src/mesa/drivers/dri/r200/r200_ioctl.c index 1bb97c5002..1fbbbfbb56 100644 --- a/src/mesa/drivers/dri/r200/r200_ioctl.c +++ b/src/mesa/drivers/dri/r200/r200_ioctl.c @@ -41,7 +41,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "main/context.h" #include "swrast/swrast.h" +#include "radeon_cs.h" #include "r200_context.h" + #include "common_cmdbuf.h" #include "r200_state.h" #include "r200_ioctl.h" @@ -525,8 +527,8 @@ void r200Flush( GLcontext *ctx ) rmesa->dma.flush( ctx ); r200EmitState( rmesa ); - - if (rmesa->store.cmd_used) + + if (rmesa->radeon.cmdbuf.cs->cdw) rcommonFlushCmdBuf( &rmesa->radeon, __FUNCTION__ ); } |