Lines Matching defs:surf
254 if (!isl_surf_init_s(&screen->isl_dev, &res->surf, &init_info))
263 if (res->surf.size_B > screen->aperture_threshold / 2)
331 res->aux.surf.size_B = 0;
332 res->aux.surf.levels = 0;
379 if (res->surf.dim == ISL_SURF_DIM_3D)
380 return u_minify(res->surf.logical_level0_px.depth, level);
382 return res->surf.logical_level0_px.array_len;
391 for (uint32_t level = 0; level < res->surf.levels; level++)
395 res->surf.levels * sizeof(enum isl_aux_state *);
410 for (uint32_t level = 0; level < res->surf.levels; level++) {
443 isl_surf_get_mcs_surf(&screen->isl_dev, &res->surf, &res->aux.surf);
447 isl_surf_get_hiz_surf(&screen->isl_dev, &res->surf, &res->aux.surf);
452 isl_surf_get_ccs_surf(&screen->isl_dev, &res->surf, NULL,
453 &res->aux.surf, 0);
465 if (isl_format_supports_ccs_d(devinfo, res->surf.format))
477 res->aux.surf.levels = 0;
527 ALIGN(res->surf.size_B, res->aux.surf.alignment_B) : 0;
528 uint64_t size = res->aux.surf.size_B;
544 for (unsigned level = 0; level < res->surf.levels; ++level) {
545 uint32_t width = u_minify(res->surf.phys_level0_sa.width, level);
546 uint32_t height = u_minify(res->surf.phys_level0_sa.height, level);
577 res->aux.surf.size_B);
610 isl_tiling_to_i915_tiling(res->aux.surf.tiling),
611 res->aux.surf.row_pitch_B, alloc_flags);
631 assert(aux_res->aux.surf.row_pitch_B && aux_res->aux.offset &&
640 assert(res->bo->size >= (res->aux.offset + res->aux.surf.size_B));
641 assert(aux_res->aux.surf.row_pitch_B == res->aux.surf.row_pitch_B);
661 res->surf.tiling = ISL_TILING_LINEAR;
727 MAX2(res->surf.size_B, res->aux.offset + aux_size);
728 uint32_t alignment = MAX2(4096, res->surf.alignment_B);
730 isl_tiling_to_i915_tiling(res->surf.tiling),
731 res->surf.row_pitch_B, flags);
864 isl_tiling_to_i915_tiling(res->surf.tiling));
890 res->aux.surf.row_pitch_B = whandle->stride;
1006 *value = wants_aux ? res->aux.surf.row_pitch_B : res->surf.row_pitch_B;
1013 tiling_to_modifier(isl_tiling_to_i915_tiling(res->surf.tiling));
1060 whandle->stride = res->aux.surf.row_pitch_B;
1064 whandle->stride = res->surf.row_pitch_B;
1130 assert(memcmp(&dst->surf, &src->surf, sizeof(dst->surf)) == 0);
1265 struct isl_surf *surf = &((struct crocus_resource *) map->staging)->surf;
1266 xfer->stride = isl_surf_get_row_pitch_B(surf);
1267 xfer->layer_stride = isl_surf_get_array_pitch(surf);
1292 get_image_offset_el(const struct isl_surf *surf, unsigned level, unsigned z,
1296 if (surf->dim == ISL_SURF_DIM_3D) {
1297 isl_surf_get_image_offset_el(surf, level, 0, z,
1300 isl_surf_get_image_offset_el(surf, level, z, 0,
1311 get_image_offset_el(&res->surf, level, z, x, y);
1376 struct isl_surf *surf = &res->surf;
1385 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el);
1389 ptrdiff_t offset = s8_offset(surf->row_pitch_B,
1409 struct isl_surf *surf = &res->surf;
1411 xfer->stride = surf->row_pitch_B;
1433 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el);
1437 ptrdiff_t offset = s8_offset(surf->row_pitch_B,
1455 tile_extents(const struct isl_surf *surf,
1461 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
1468 get_image_offset_el(surf, level, box->z + z, &x0_el, &y0_el);
1482 struct isl_surf *surf = &res->surf;
1490 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2);
1495 surf->row_pitch_B, xfer->stride,
1497 surf->tiling, ISL_MEMCPY);
1510 struct isl_surf *surf = &res->surf;
1512 xfer->stride = ALIGN(surf->row_pitch_B, 16);
1516 tile_extents(surf, box, xfer->level, 0, &x1, &x2, &y1, &y2);
1533 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2);
1539 surf->row_pitch_B,
1541 surf->tiling,
1567 struct isl_surf *surf = &res->surf;
1569 isl_format_get_layout(surf->format);
1575 get_image_offset_el(surf, xfer->level, box->z, &x0_el, &y0_el);
1580 xfer->stride = isl_surf_get_row_pitch_B(surf);
1581 xfer->layer_stride = isl_surf_get_array_pitch(surf);
1612 struct isl_surf *surf = &res->surf;
1642 if (surf->tiling != ISL_TILING_LINEAR &&
1696 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
1723 if (surf->tiling == ISL_TILING_W) {
1726 } else if (surf->tiling != ISL_TILING_LINEAR && screen->devinfo.ver > 4) {