struct iris_bufmgr *bufmgr = screen->bufmgr;
batch->bo = iris_bo_alloc(bufmgr, "command buffer",
- BATCH_SZ + BATCH_RESERVED, IRIS_MEMZONE_OTHER, 0);
+ BATCH_SZ + BATCH_RESERVED, 1,
+ IRIS_MEMZONE_OTHER, 0);
batch->bo->kflags |= EXEC_OBJECT_CAPTURE;
batch->map = iris_bo_map(NULL, batch->bo, MAP_READ | MAP_WRITE);
batch->map_next = batch->map;
}
- binder->bo = iris_bo_alloc(bufmgr, "binder", IRIS_BINDER_SIZE,
+ binder->bo = iris_bo_alloc(bufmgr, "binder", IRIS_BINDER_SIZE, 1,
IRIS_MEMZONE_BINDER, 0);
binder->bo->gtt_offset = next_address;
binder->map = iris_bo_map(NULL, binder->bo, MAP_WRITE);
iris_bo_unreference(pool->bo);
pool->bo = iris_bo_alloc(bufmgr, "border colors",
- IRIS_BORDER_COLOR_POOL_SIZE,
+ IRIS_BORDER_COLOR_POOL_SIZE, 1,
IRIS_MEMZONE_BORDER_COLOR_POOL, 0);
pool->map = iris_bo_map(NULL, pool->bo, MAP_WRITE);
iris_bo_alloc(struct iris_bufmgr *bufmgr,
const char *name,
uint64_t size,
+ uint32_t alignment,
enum iris_memory_zone memzone,
unsigned flags)
{
- return bo_alloc_internal(bufmgr, name, size, 1, memzone,
+ return bo_alloc_internal(bufmgr, name, size, alignment, memzone,
flags, I915_TILING_NONE, 0);
}
struct iris_bufmgr *bufmgr = (struct iris_bufmgr *)driver_ctx;
struct iris_bo *bo =
- iris_bo_alloc_tiled(bufmgr, "aux-map", size, 64 * 1024,
- IRIS_MEMZONE_OTHER, I915_TILING_NONE, 0, 0);
+ iris_bo_alloc(bufmgr, "aux-map", size, 64 * 1024,
+ IRIS_MEMZONE_OTHER, 0);
buf->driver_bo = bo;
buf->gpu = bo->gtt_offset;
struct iris_bo *iris_bo_alloc(struct iris_bufmgr *bufmgr,
const char *name,
uint64_t size,
+ uint32_t alignment,
enum iris_memory_zone memzone,
unsigned flags);
struct iris_measure_batch *measure = batch->measure;
measure->bo = iris_bo_alloc(bufmgr, "measure",
- config->batch_size * sizeof(uint64_t),
+ config->batch_size * sizeof(uint64_t), 1,
IRIS_MEMZONE_OTHER, BO_ALLOC_ZEROED);
measure->base.timestamps = iris_bo_map(NULL, measure->bo, MAP_READ);
measure->base.framebuffer =
static void *
iris_oa_bo_alloc(void *bufmgr, const char *name, uint64_t size)
{
- return iris_bo_alloc(bufmgr, name, size, IRIS_MEMZONE_OTHER, 0);
+ return iris_bo_alloc(bufmgr, name, size, 1, IRIS_MEMZONE_OTHER, 0);
}
static void
uint32_t size = per_thread_scratch * max_threads[stage];
- *bop = iris_bo_alloc(bufmgr, "scratch", size, IRIS_MEMZONE_SHADER, 0);
+ *bop = iris_bo_alloc(bufmgr, "scratch", size, 1, IRIS_MEMZONE_SHADER, 0);
}
return *bop;
if (iris_get_aux_clear_color_state_size(screen) > 0) {
res->aux.clear_color_bo =
iris_bo_alloc(screen->bufmgr, "clear color_buffer",
- iris_get_aux_clear_color_state_size(screen),
+ iris_get_aux_clear_color_state_size(screen), 1,
IRIS_MEMZONE_OTHER, BO_ALLOC_ZEROED);
}
} else if (num_main_planes == 1 && num_planes == 3) {
name = "dynamic state";
}
- res->bo = iris_bo_alloc(screen->bufmgr, name, templ->width0, memzone, 0);
+ res->bo = iris_bo_alloc(screen->bufmgr, name, templ->width0, 1, memzone, 0);
if (!res->bo) {
iris_resource_destroy(pscreen, &res->base.b);
return NULL;
struct iris_bo *old_bo = res->bo;
struct iris_bo *new_bo =
- iris_bo_alloc(screen->bufmgr, res->bo->name, resource->width0,
+ iris_bo_alloc(screen->bufmgr, res->bo->name, resource->width0, 1,
iris_memzone_for_address(old_bo->gtt_offset), 0);
if (!new_bo)
return;
screen->no_hw = true;
screen->workaround_bo =
- iris_bo_alloc(screen->bufmgr, "workaround", 4096, IRIS_MEMZONE_OTHER, 0);
+ iris_bo_alloc(screen->bufmgr, "workaround", 4096, 1,
+ IRIS_MEMZONE_OTHER, 0);
if (!screen->workaround_bo)
return NULL;