igt/gem_ppgtt: Create secondary contexts and mm

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2014-09-09 16:27:57 +01:00
parent 961578f471
commit 107151ce9f
3 changed files with 51 additions and 6 deletions
+5
View File
@@ -14,6 +14,7 @@ struct intel_batchbuffer {
uint32_t devid;
int gen;
drm_intel_context *ctx;
drm_intel_bo *bo;
uint8_t buffer[BATCH_SZ];
@@ -24,6 +25,10 @@ struct intel_batchbuffer {
struct intel_batchbuffer *intel_batchbuffer_alloc(drm_intel_bufmgr *bufmgr,
uint32_t devid);
void intel_batchbuffer_set_context(struct intel_batchbuffer *batch,
drm_intel_context *ctx);
void intel_batchbuffer_free(struct intel_batchbuffer *batch);