Lines Matching defs:surf
436 res->aux.surf.size_B = 0;
438 res->aux.extra_aux.surf.size_B = 0;
527 if (res->surf.dim == ISL_SURF_DIM_3D)
528 return u_minify(res->surf.logical_level0_px.depth, level);
530 return res->surf.logical_level0_px.array_len;
539 for (uint32_t level = 0; level < res->surf.levels; level++)
543 res->surf.levels * sizeof(enum isl_aux_state *);
558 for (uint32_t level = 0; level < res->surf.levels; level++) {
576 assert(!isl_surf_usage_is_stencil(res->surf.usage));
582 if (isl_surf_usage_is_depth(res->surf.usage) &&
598 const unsigned aux_offset = res->aux.extra_aux.surf.size_B > 0 ?
601 iris_format_for_usage(&screen->devinfo, pfmt, res->surf.usage).fmt;
603 intel_aux_map_format_bits(res->surf.tiling, format, plane);
606 res->surf.size_B, format_bits);
736 if (!isl_surf_init_s(&screen->isl_dev, &res->surf, &init_info))
746 const struct isl_surf *surf,
769 return isl_surf_supports_ccs(dev, surf, hiz_or_mcs_surf);
771 return isl_surf_get_ccs_surf(dev, surf, hiz_or_mcs_surf, ccs_surf, 0);
790 isl_surf_get_mcs_surf(&screen->isl_dev, &res->surf, &res->aux.surf);
793 isl_surf_get_hiz_surf(&screen->isl_dev, &res->surf, &res->aux.surf);
796 iris_get_ccs_surf_or_support(&screen->isl_dev, &res->surf,
797 &res->aux.surf, &res->aux.extra_aux.surf);
812 } else if (res->surf.samples == 1 &&
813 (res->surf.usage & ISL_SURF_USAGE_TEXTURE_BIT)) {
825 } else if (isl_surf_usage_is_stencil(res->surf.usage)) {
827 } else if (want_ccs_e_for_format(devinfo, res->surf.format)) {
831 assert(isl_format_supports_ccs_d(devinfo, res->surf.format));
869 assert(res->aux.surf.size_B == 0);
884 assert(res->aux.surf.size_B > 0);
922 res->aux.surf.size_B > 0) {
931 res->aux.surf.size_B);
934 if (res->aux.extra_aux.surf.size_B > 0) {
941 0, res->aux.extra_aux.surf.size_B);
962 if (res->aux.surf.size_B > 0) {
980 assert(aux_res->aux.surf.row_pitch_B && aux_res->aux.offset);
982 assert(res->aux.surf.row_pitch_B == aux_res->aux.surf.row_pitch_B);
983 assert(res->bo->size >= aux_res->aux.offset + res->aux.surf.size_B);
1109 res->surf.tiling = ISL_TILING_LINEAR;
1188 uint64_t bo_size = res->surf.size_B;
1191 if (res->aux.surf.size_B > 0) {
1192 res->aux.offset = ALIGN(bo_size, res->aux.surf.alignment_B);
1193 bo_size = res->aux.offset + res->aux.surf.size_B;
1197 if (res->aux.extra_aux.surf.size_B > 0) {
1199 ALIGN(bo_size, res->aux.extra_aux.surf.alignment_B);
1200 bo_size = res->aux.extra_aux.offset + res->aux.extra_aux.surf.size_B;
1215 uint32_t alignment = MAX2(4096, res->surf.alignment_B);
1294 assert(res->surf.size_B <= res_size);
1417 res->aux.surf.row_pitch_B = whandle->stride;
1493 ALIGN(res->surf.size_B, res->surf.alignment_B);
1600 old_res->aux.surf = new_res->aux.surf;
1603 old_res->aux.extra_aux.surf = new_res->aux.extra_aux.surf;
1728 wants_aux ? res->aux.surf.row_pitch_B : res->surf.row_pitch_B;
1747 tiling_to_modifier(isl_tiling_to_i915_tiling(res->surf.tiling));
1751 iris_gem_set_tiling(bo, &res->surf);
1759 iris_gem_set_tiling(bo, &res->surf);
1775 iris_gem_set_tiling(bo, &res->surf);
1810 whandle->stride = res->aux.surf.row_pitch_B;
1814 whandle->stride = res->surf.row_pitch_B;
1821 : tiling_to_modifier(isl_tiling_to_i915_tiling(res->surf.tiling));
1837 iris_gem_set_tiling(bo, &res->surf);
1840 iris_gem_set_tiling(bo, &res->surf);
1854 iris_gem_set_tiling(bo, &res->surf);
1886 assert(memcmp(&dst->surf, &src->surf, sizeof(dst->surf)) == 0);
2022 struct isl_surf *surf = &((struct iris_resource *) map->staging)->surf;
2023 xfer->stride = isl_surf_get_row_pitch_B(surf);
2024 xfer->layer_stride = isl_surf_get_array_pitch(surf);
2051 get_image_offset_el(const struct isl_surf *surf, unsigned level, unsigned z,
2055 if (surf->dim == ISL_SURF_DIM_3D) {
2056 isl_surf_get_image_offset_el(surf, level, 0, z,
2059 isl_surf_get_image_offset_el(surf, level, z, 0,
2116 struct isl_surf *surf = &res->surf;
2125 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el);
2129 ptrdiff_t offset = s8_offset(surf->row_pitch_B,
2148 struct isl_surf *surf = &res->surf;
2150 xfer->stride = surf->row_pitch_B;
2172 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el);
2176 ptrdiff_t offset = s8_offset(surf->row_pitch_B,
2193 tile_extents(const struct isl_surf *surf,
2199 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
2206 get_image_offset_el(surf, level, box->z + z, &x0_el, &y0_el);
2220 struct isl_surf *surf = &res->surf;
2230 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2);
2235 surf->row_pitch_B, xfer->stride,
2236 has_swizzling, surf->tiling, ISL_MEMCPY);
2249 struct isl_surf *surf = &res->surf;
2251 xfer->stride = ALIGN(surf->row_pitch_B, 16);
2255 tile_extents(surf, box, xfer->level, 0, &x1, &x2, &y1, &y2);
2274 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2);
2280 surf->row_pitch_B, has_swizzling,
2281 surf->tiling, ISL_MEMCPY_STREAMING_LOAD);
2304 struct isl_surf *surf = &res->surf;
2306 isl_format_get_layout(surf->format);
2312 get_image_offset_el(surf, xfer->level, box->z, &x0_el, &y0_el);
2317 xfer->stride = isl_surf_get_row_pitch_B(surf);
2318 xfer->layer_stride = isl_surf_get_array_pitch(surf);
2349 struct isl_surf *surf = &res->surf;
2380 (surf->tiling != ISL_TILING_LINEAR || iris_bo_is_imported(res->bo)))
2448 if (res->surf.tiling == ISL_TILING_4)
2473 if (surf->tiling == ISL_TILING_W) {
2476 } else if (surf->tiling != ISL_TILING_LINEAR) {
2555 const struct isl_surf *surf = &res->surf;
2568 if (surf->tiling == ISL_TILING_LINEAR ||
2569 surf->tiling == ISL_TILING_4 ||
2591 if (surf->tiling == ISL_TILING_W) {
2593 get_image_offset_el(surf, level, box->z + s, &x0_el, &y0_el);
2597 ptrdiff_t offset = s8_offset(surf->row_pitch_B,
2606 tile_extents(surf, box, level, s, &x1, &x2, &y1, &y2);
2610 surf->row_pitch_B, stride,
2611 false, surf->tiling, ISL_MEMCPY);