i915: add superioctl initial support inside bufmgr ttm

This commit is contained in:
Dave Airlie
2007-10-03 16:54:59 +10:00
parent 4cd3ef58a9
commit fa031c8914
10 changed files with 1016 additions and 18 deletions

View File

@@ -126,8 +126,10 @@ do_flush_locked(struct intel_batchbuffer *batch,
GLboolean ignore_cliprects, GLboolean allow_unlock)
{
struct intel_context *intel = batch->intel;
void *start;
uint32_t hack;
dri_process_relocs(batch->buf);
start = dri_process_relocs(batch->buf, &hack);
batch->map = NULL;
batch->ptr = NULL;
@@ -139,11 +141,17 @@ do_flush_locked(struct intel_batchbuffer *batch,
*/
if (!(intel->numClipRects == 0 && !ignore_cliprects)) {
intel_batch_ioctl(batch->intel,
batch->buf->offset,
used, ignore_cliprects, allow_unlock);
if (intel->intelScreen->ttm == GL_TRUE) {
intel_exec_ioctl(batch->intel,
used, ignore_cliprects, allow_unlock,
start, &hack);
} else {
intel_batch_ioctl(batch->intel,
batch->buf->offset,
used, ignore_cliprects, allow_unlock);
}
}
dri_post_submit(batch->buf, &batch->last_fence);
if (intel->numClipRects == 0 && !ignore_cliprects) {