• Home
  • Raw
  • Download

Lines Matching refs:fmtl

1863    const struct isl_format_layout *fmtl = isl_format_get_layout(fmt);  in isl_format_is_compressed()  local
1865 return fmtl->txc != ISL_TXC_NONE; in isl_format_is_compressed()
1899 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt); in isl_format_is_mcs() local
1901 return fmtl->txc == ISL_TXC_MCS; in isl_format_is_mcs()
1916 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt); in isl_format_is_yuv() local
1918 return fmtl->colorspace == ISL_COLORSPACE_YUV; in isl_format_is_yuv()
1924 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt); in isl_format_block_is_1x1x1() local
1926 return fmtl->bw == 1 && fmtl->bh == 1 && fmtl->bd == 1; in isl_format_block_is_1x1x1()
1943 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt); in isl_format_is_rgb() local
1945 return fmtl->channels.r.bits > 0 && in isl_format_is_rgb()
1946 fmtl->channels.g.bits > 0 && in isl_format_is_rgb()
1947 fmtl->channels.b.bits > 0 && in isl_format_is_rgb()
1948 fmtl->channels.a.bits == 0; in isl_format_is_rgb()
1954 const struct isl_format_layout *fmtl = isl_format_get_layout(fmt); in isl_format_is_rgbx() local
1956 return fmtl->channels.r.bits > 0 && in isl_format_is_rgbx()
1957 fmtl->channels.g.bits > 0 && in isl_format_is_rgbx()
1958 fmtl->channels.b.bits > 0 && in isl_format_is_rgbx()
1959 fmtl->channels.a.bits > 0 && in isl_format_is_rgbx()
1960 fmtl->channels.a.type == ISL_VOID; in isl_format_is_rgbx()
2438 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format); in isl_surf_get_image_alignment_sa() local
2440 return isl_extent3d(fmtl->bw * surf->image_alignment_el.w, in isl_surf_get_image_alignment_sa()
2441 fmtl->bh * surf->image_alignment_el.h, in isl_surf_get_image_alignment_sa()
2442 fmtl->bd * surf->image_alignment_el.d); in isl_surf_get_image_alignment_sa()
2451 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format); in isl_surf_get_logical_level0_el() local
2453 return isl_extent4d(DIV_ROUND_UP(surf->logical_level0_px.w, fmtl->bw), in isl_surf_get_logical_level0_el()
2454 DIV_ROUND_UP(surf->logical_level0_px.h, fmtl->bh), in isl_surf_get_logical_level0_el()
2455 DIV_ROUND_UP(surf->logical_level0_px.d, fmtl->bd), in isl_surf_get_logical_level0_el()
2465 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format); in isl_surf_get_phys_level0_el() local
2467 return isl_extent4d(DIV_ROUND_UP(surf->phys_level0_sa.w, fmtl->bw), in isl_surf_get_phys_level0_el()
2468 DIV_ROUND_UP(surf->phys_level0_sa.h, fmtl->bh), in isl_surf_get_phys_level0_el()
2469 DIV_ROUND_UP(surf->phys_level0_sa.d, fmtl->bd), in isl_surf_get_phys_level0_el()
2488 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format); in isl_surf_get_row_pitch_el() local
2490 assert(surf->row_pitch_B % (fmtl->bpb / 8) == 0); in isl_surf_get_row_pitch_el()
2491 return surf->row_pitch_B / (fmtl->bpb / 8); in isl_surf_get_row_pitch_el()
2519 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format); in isl_surf_get_array_pitch_sa_rows() local
2520 return fmtl->bh * isl_surf_get_array_pitch_el_rows(surf); in isl_surf_get_array_pitch_sa_rows()
2764 const struct isl_format_layout *fmtl = isl_format_get_layout(format); in isl_tiling_get_intratile_offset_sa() local
2770 assert(total_x_offset_sa % fmtl->bw == 0); in isl_tiling_get_intratile_offset_sa()
2771 assert(total_y_offset_sa % fmtl->bh == 0); in isl_tiling_get_intratile_offset_sa()
2772 assert(total_z_offset_sa % fmtl->bd == 0); in isl_tiling_get_intratile_offset_sa()
2773 const uint32_t total_x_offset_el = total_x_offset_sa / fmtl->bw; in isl_tiling_get_intratile_offset_sa()
2774 const uint32_t total_y_offset_el = total_y_offset_sa / fmtl->bh; in isl_tiling_get_intratile_offset_sa()
2775 const uint32_t total_z_offset_el = total_z_offset_sa / fmtl->bd; in isl_tiling_get_intratile_offset_sa()
2777 isl_tiling_get_intratile_offset_el(tiling, dim, msaa_layout, fmtl->bpb, in isl_tiling_get_intratile_offset_sa()
2787 *x_offset_sa *= fmtl->bw; in isl_tiling_get_intratile_offset_sa()
2788 *y_offset_sa *= fmtl->bh; in isl_tiling_get_intratile_offset_sa()
2789 *z_offset_sa *= fmtl->bd; in isl_tiling_get_intratile_offset_sa()