i915: add superioctl support to the ttm codepaths.

gears now runs for about 10-15 seconds with some artifacts before falling
over.
This commit is contained in:
Dave Airlie
2007-10-04 15:31:47 +10:00
parent fa031c8914
commit c4a9a70888
11 changed files with 139 additions and 100 deletions

View File

@@ -127,9 +127,8 @@ do_flush_locked(struct intel_batchbuffer *batch,
{
struct intel_context *intel = batch->intel;
void *start;
uint32_t hack;
start = dri_process_relocs(batch->buf, &hack);
start = dri_process_relocs(batch->buf);
batch->map = NULL;
batch->ptr = NULL;
@@ -144,7 +143,7 @@ do_flush_locked(struct intel_batchbuffer *batch,
if (intel->intelScreen->ttm == GL_TRUE) {
intel_exec_ioctl(batch->intel,
used, ignore_cliprects, allow_unlock,
start, &hack);
start, &batch->last_fence);
} else {
intel_batch_ioctl(batch->intel,
batch->buf->offset,