enum intel_tiling_mode tiling;
unsigned long pitch;
- tex->bo = intel_winsys_import_handle(is->winsys, name, handle,
+ tex->bo = intel_winsys_import_handle(is->dev.winsys, name, handle,
tex->layout.bo_height, &tiling, &pitch);
if (!tex->bo)
return false;
const bool cpu_init = resource_get_cpu_init(&tex->base);
struct intel_bo *bo;
- bo = intel_winsys_alloc_bo(is->winsys, name,
+ bo = intel_winsys_alloc_bo(is->dev.winsys, name,
tex->layout.bo_stride * tex->layout.bo_height, cpu_init);
/* set the tiling for transfer and export */
struct ilo_screen *is = ilo_screen(tex->base.screen);
unsigned lv;
- tex->aux_bo = intel_winsys_alloc_bo(is->winsys, "hiz texture",
+ tex->aux_bo = intel_winsys_alloc_bo(is->dev.winsys, "hiz texture",
tex->layout.aux_stride * tex->layout.aux_height, false);
if (!tex->aux_bo)
return false;
assert(tex->layout.aux_enables == (1 << (tex->base.last_level + 1)) - 1);
- tex->aux_bo = intel_winsys_alloc_bo(is->winsys, "mcs texture",
+ tex->aux_bo = intel_winsys_alloc_bo(is->dev.winsys, "mcs texture",
tex->layout.aux_stride * tex->layout.aux_height, false);
if (!tex->aux_bo)
return false;
else
tiling = surface_to_winsys_tiling(tex->layout.tiling);
- err = intel_winsys_export_handle(is->winsys, tex->bo, tiling,
+ err = intel_winsys_export_handle(is->dev.winsys, tex->bo, tiling,
tex->layout.bo_stride, tex->layout.bo_height, handle);
return !err;
const char *name = resource_get_bo_name(&buf->base);
const bool cpu_init = resource_get_cpu_init(&buf->base);
- buf->bo = intel_winsys_alloc_bo(is->winsys, name, buf->bo_size, cpu_init);
+ buf->bo = intel_winsys_alloc_bo(is->dev.winsys, name, buf->bo_size, cpu_init);
return (buf->bo != NULL);
}
uint32_t dw[2];
} timestamp;
- intel_winsys_read_reg(is->winsys, GEN6_REG_TIMESTAMP, ×tamp.val);
+ intel_winsys_read_reg(is->dev.winsys, GEN6_REG_TIMESTAMP, ×tamp.val);
/*
* From the Ivy Bridge PRM, volume 1 part 3, page 107:
struct ilo_screen *is = ilo_screen(screen);
/* as it seems, winsys is owned by the screen */
- intel_winsys_destroy(is->winsys);
+ intel_winsys_destroy(is->dev.winsys);
FREE(is);
}
if (!is)
return NULL;
- is->winsys = ws;
+ is->dev.winsys = ws;
- info = intel_winsys_get_info(is->winsys);
+ info = intel_winsys_get_info(is->dev.winsys);
if (!init_dev(&is->dev, info)) {
FREE(is);
return NULL;