Lines Matching defs:surf

1629    const struct isl_surf *surf;
1794 const struct isl_surf *surf;
2388 #define isl_surf_init(dev, surf, ...) \
2389 isl_surf_init_s((dev), (surf), \
2394 struct isl_surf *surf,
2398 isl_surf_get_tile_info(const struct isl_surf *surf,
2402 * @param[in] surf The main surface
2409 const struct isl_surf *surf,
2414 * @param[in] surf The main surface
2420 const struct isl_surf *surf,
2425 * @param[in] surf The main surface
2431 const struct isl_surf *surf,
2450 * @param[in] surf The main surface
2460 const struct isl_surf *surf,
2504 const struct isl_surf *surf,
2518 isl_surf_get_image_alignment_el(const struct isl_surf *surf)
2520 return surf->image_alignment_el;
2528 isl_surf_get_image_alignment_sa(const struct isl_surf *surf)
2530 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
2532 return isl_extent3d(fmtl->bw * surf->image_alignment_el.w,
2533 fmtl->bh * surf->image_alignment_el.h,
2534 fmtl->bd * surf->image_alignment_el.d);
2541 isl_surf_get_logical_level0_el(const struct isl_surf *surf)
2543 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
2545 return isl_extent4d(DIV_ROUND_UP(surf->logical_level0_px.w, fmtl->bw),
2546 DIV_ROUND_UP(surf->logical_level0_px.h, fmtl->bh),
2547 DIV_ROUND_UP(surf->logical_level0_px.d, fmtl->bd),
2548 surf->logical_level0_px.a);
2555 isl_surf_get_phys_level0_el(const struct isl_surf *surf)
2557 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
2559 return isl_extent4d(DIV_ROUND_UP(surf->phys_level0_sa.w, fmtl->bw),
2560 DIV_ROUND_UP(surf->phys_level0_sa.h, fmtl->bh),
2561 DIV_ROUND_UP(surf->phys_level0_sa.d, fmtl->bd),
2562 surf->phys_level0_sa.a);
2569 isl_surf_get_row_pitch_B(const struct isl_surf *surf)
2571 return surf->row_pitch_B;
2578 isl_surf_get_row_pitch_el(const struct isl_surf *surf)
2580 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
2582 assert(surf->row_pitch_B % (fmtl->bpb / 8) == 0);
2583 return surf->row_pitch_B / (fmtl->bpb / 8);
2590 isl_surf_get_array_pitch_el_rows(const struct isl_surf *surf)
2592 return surf->array_pitch_el_rows;
2599 isl_surf_get_array_pitch_el(const struct isl_surf *surf)
2601 return isl_surf_get_array_pitch_el_rows(surf) *
2602 isl_surf_get_row_pitch_el(surf);
2609 isl_surf_get_array_pitch_sa_rows(const struct isl_surf *surf)
2611 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
2612 return fmtl->bh * isl_surf_get_array_pitch_el_rows(surf);
2619 isl_surf_get_array_pitch(const struct isl_surf *surf)
2621 return isl_surf_get_array_pitch_sa_rows(surf) * surf->row_pitch_B;
2633 isl_surf_get_image_offset_sa(const struct isl_surf *surf,
2651 isl_surf_get_image_offset_el(const struct isl_surf *surf,
2673 isl_surf_get_image_offset_B_tile_sa(const struct isl_surf *surf,
2693 isl_surf_get_image_offset_B_tile_el(const struct isl_surf *surf,
2715 isl_surf_get_image_range_B_tile(const struct isl_surf *surf,
2728 * It is safe to call this function with surf == image_surf.
2736 const struct isl_surf *surf,
2756 * different isl_surf::dim from surf and uncompressed_view may or may not have
2761 * It is safe to call this function with surf == uncompressed_surf and
2766 const struct isl_surf *surf,
2887 * @pre surf->usage has ISL_SURF_USAGE_DEPTH_BIT
2888 * @pre surf->format must be a valid format for depth surfaces
2892 const struct isl_surf *surf);