[Mesa-dev] [PATCH 06/21] intel/isl: Expose isl_tiling_get_info
Jason Ekstrand
jason at jlekstrand.net
Fri Feb 23 07:06:46 UTC 2018
---
src/intel/isl/isl.c | 7 +++++--
src/intel/isl/isl.h | 7 +++++++
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 46aff46..95c1271 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -154,9 +154,11 @@ isl_device_get_sample_counts(struct isl_device *dev)
/**
* @param[out] info is written only on success
*/
-static void
+void
isl_tiling_get_info(enum isl_tiling tiling,
+ enum isl_surf_dim dim,
uint32_t format_bpb,
+ uint32_t samples,
struct isl_tile_info *tile_info)
{
const uint32_t bs = format_bpb / 8;
@@ -1585,7 +1587,8 @@ isl_surf_get_tile_info(const struct isl_surf *surf,
struct isl_tile_info *tile_info)
{
const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
- isl_tiling_get_info(surf->tiling, fmtl->bpb, tile_info);
+ isl_tiling_get_info(surf->tiling, surf->dim, fmtl->bpb,
+ surf->samples, tile_info);
}
bool
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index cdc76fe..aa5bfed 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -1572,6 +1572,13 @@ isl_tiling_is_std_y(enum isl_tiling tiling)
return (1u << tiling) & ISL_TILING_STD_Y_MASK;
}
+void
+isl_tiling_get_info(enum isl_tiling tiling,
+ enum isl_surf_dim dim,
+ uint32_t format_bpb,
+ uint32_t samples,
+ struct isl_tile_info *tile_info);
+
uint32_t
isl_tiling_to_i915_tiling(enum isl_tiling tiling);
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list