Commit Graph

6 Commits

Author SHA1 Message Date
Eric Anholt d775ddc64d [gem] Catch -EINTR from blocking GEM ioctl and restart. 2008-06-13 10:13:35 -07:00
Eric Anholt 339f00e340 [gem] Don't set up the ring in GEM mode, as that'll be handled by the kernel. 2008-06-10 22:50:01 -07:00
Eric Anholt e930c0dc5b Use bufmgr_gem when available instead of the fake bufmgr.
This is a bit unstable still sometimes.
2008-06-10 11:37:04 -07:00
Eric Anholt bade7d7d25 Use the DRM for submitting batchbuffers when available.
There are some concerns with this, as the DRM will be setting the nonsecure
flag on the batchbuffer, and the server may be submitting some secure-only
commands.  It appears to work on the 915GM test system currently.
2008-06-10 11:37:03 -07:00
Eric Anholt 6e94affcc2 Avoid needless flush emits in the blockhandler.
The EmitFlush in i830_dri.c was added as a pageflipping workaround, and was
noted to not even be sufficient then.  There's no reason for it to be there,
so it's removed.  After that, we just have to not emit an MI_FLUSH if we
already had, and cursor movement no longer bashes memory manager.
2008-06-10 11:37:03 -07:00
Eric Anholt b2216e7bc2 Use batchbuffers instead of ring emits for general commands.
The batchbuffers are managed using libdrm and bufmgr_fake, and dispatched from
the ring from userland.
2008-06-10 11:37:03 -07:00