Home | History | Annotate | Download | only in i965

Lines Matching defs:bo

126  * the miptree's BO.
577 /* This function computes Yf/Ys tiled bo size, alignment and pitch. */
653 mt->bo = drm_intel_bo_alloc_for_render(brw->bufmgr, "miptree",
658 mt->bo = drm_intel_bo_alloc_tiled(brw->bufmgr, "miptree",
664 mt->bo = drm_intel_bo_alloc_tiled(brw->bufmgr, "miptree",
694 /* If the BO is too large to fit in the aperture, we need to use the
698 if (brw->gen < 6 && mt->bo->size >= brw->max_gtt_map_object_size &&
708 drm_intel_bo_unreference(mt->bo);
709 mt->bo = drm_intel_bo_alloc_tiled(brw->bufmgr, "miptree",
717 if (!mt->bo) {
762 drm_intel_bo *bo,
775 drm_intel_bo_get_tiling(bo, &tiling, &swizzle);
777 /* Nothing will be able to use this miptree with the BO if the offset isn't
790 /* The BO already has a tiling format and we shouldn't confuse the lower
804 drm_intel_bo_reference(bo);
805 mt->bo = bo;
814 * For a singlesample renderbuffer, this simply wraps the given BO with a
818 * (singlesample) BO with a singlesample miptree attached to the
826 drm_intel_bo *bo,
843 bo,
957 drm_intel_bo_unreference(hiz_buf->aux_base.bo);
974 drm_intel_bo_unreference((*mt)->bo);
979 drm_intel_bo_unreference((*mt)->mcs_buf->bo);
1150 * different tiling patterns. If the BO is untiled, tile_w is set to cpp
1207 * and Y coordinates that indicate the offset within a tile. If the BO is
1223 * Compute the offset (in bytes) from the start of the BO to the given x
1458 const int ret = brw_bo_map_gtt(brw, mt->mcs_buf->bo, "miptree");
1461 drm_intel_bo_unreference(mt->mcs_buf->bo);
1465 void *data = mt->mcs_buf->bo->virtual;
1467 drm_intel_bo_unmap(mt->mcs_buf->bo);
1504 buf->bo = temp_mt->bo;
1510 /* Just hang on to the BO which backs the AUX buffer; the rest of the miptree
1514 drm_intel_bo_reference(temp_mt->bo);
1623 buf->bo = drm_intel_bo_alloc_tiled(brw->bufmgr, "ccs-miptree",
1626 if (buf->bo) {
1693 * buffer dimensions and allocates a bo for the hiz buffer.
1760 buf->aux_base.bo = drm_intel_bo_alloc_tiled(brw->bufmgr, "hiz",
1764 if (!buf->aux_base.bo) {
1768 drm_intel_bo_unreference(buf->aux_base.bo);
1782 * buffer dimensions and allocates a bo for the hiz buffer.
1857 buf->aux_base.bo = drm_intel_bo_alloc_tiled(brw->bufmgr, "hiz",
1861 if (!buf->aux_base.bo) {
1865 drm_intel_bo_unreference(buf->aux_base.bo);
1906 buf->aux_base.bo = buf->mt->bo;
2315 * Make it possible to share the BO backing the given miptree with another
2338 drm_intel_bo_unreference(mt->mcs_buf->bo);
2493 brw_render_cache_set_check_flush(brw, dst->bo);
2505 drm_intel_bo *bo = mt->bo;
2507 if (drm_intel_bo_references(brw->batch.bo, bo))
2511 brw_bo_map_gtt(brw, bo, "miptree");
2513 brw_bo_map(brw, bo, true, "miptree");
2515 return bo->virtual;
2521 drm_intel_bo_unmap(mt->bo);
3071 mt->bo->size >= brw->max_gtt_map_object_size) {