#define OUT_RELOC( buf, flags, delta ) \
i915_batchbuffer_reloc( i915->batch, buf, flags, delta )
-#define FLUSH_BATCH(fence) do { \
+#define FLUSH_BATCH(fence) do { \
+ i915_dump_batchbuffer(i915); \
i915->winsys->batch_flush( i915->winsys, fence ); \
i915->hardware_dirty = ~0; \
} while (0)
batch->base.ptr += 8;
}
+ debug_printf("%s\n", __FUNCTION__);
+
used = batch->base.ptr - batch->base.map;
+ debug_printf(" - subdata\n");
drm_intel_bo_subdata(batch->bo, 0, used, batch->base.map);
+ debug_printf(" - exec\n");
ret = drm_intel_bo_exec(batch->bo, used, NULL, 0, 0);
+ debug_printf(" - waiting\n");
+ drm_intel_bo_wait_rendering(batch->bo);
+ debug_printf(" - done\n");
assert(ret == 0);
}
if (access_flags & I915_BUFFER_ACCESS_READ) {
- read = I915_GEM_DOMAIN_SAMPLER |
- I915_GEM_DOMAIN_VERTEX;
+ read = I915_GEM_DOMAIN_VERTEX;
}
+ debug_printf("%s\n", __FUNCTION__);
+ debug_printf(" - flags: %u, read: %u, write: %u, delta: %p\n", access_flags, read, write, delta);
ret = intel_be_offset_relocation(intel->batch,
delta,
bo,
read,
write);
+ debug_printf(" - ret = %i\n", ret);
+ assert(ret == 0);
/* TODO change return type */
/* return ret; */
}