This field was the wrong size, so we replaced it with offset64.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
*/
unsigned long align;
- /**
- * Deprecated field containing (possibly the low 32-bits of) the last
- * seen virtual card address. Use offset64 instead.
- */
- unsigned long offset;
-
/**
* Virtual address for accessing the buffer data. Only valid while
* mapped.
list_inithead(&bo_gem->vma_list);
bo_gem->bo.size = open_arg.size;
- bo_gem->bo.offset = 0;
bo_gem->bo.offset64 = 0;
bo_gem->bo.virtual = NULL;
bo_gem->bo.bufmgr = bufmgr;
upper_32_bits(bufmgr->exec2_objects[i].offset),
lower_32_bits(bufmgr->exec2_objects[i].offset));
bo->offset64 = bufmgr->exec2_objects[i].offset;
- bo->offset = bufmgr->exec2_objects[i].offset;
}
}
}
drm_bacon_bo_gem *bo_gem = (drm_bacon_bo_gem *) bo;
bo->offset64 = offset;
- bo->offset = offset;
bo_gem->kflags |= EXEC_OBJECT_PINNED;
return 0;
results, offset*sizeof(uint32_t),
I915_GEM_DOMAIN_INSTRUCTION,
I915_GEM_DOMAIN_INSTRUCTION);
- *batch++ = results->offset + offset*sizeof(uint32_t);
+ *batch++ = ((uint32_t) results->offset64) + offset*sizeof(uint32_t);
/* And afterwards clear the register */
if (reset) {