From caa786e02948e9acc1a6fac224c84c0ab26b4cf9 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 3 Feb 2018 11:46:04 -0800 Subject: [PATCH] intel/blorp: Expose surf_retile_w_to_y internally Reviewed-by: Kenneth Graunke Reviewed-by: Lionel Landwerlin --- src/intel/blorp/blorp_blit.c | 10 +++++----- src/intel/blorp/blorp_priv.h | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index 323e94e3d28..53efe0d78ec 100644 --- a/src/intel/blorp/blorp_blit.c +++ b/src/intel/blorp/blorp_blit.c @@ -1623,9 +1623,9 @@ surf_fake_interleaved_msaa(const struct isl_device *isl_dev, info->surf.msaa_layout = ISL_MSAA_LAYOUT_NONE; } -static void -surf_retile_w_to_y(const struct isl_device *isl_dev, - struct brw_blorp_surface_info *info) +void +blorp_surf_retile_w_to_y(const struct isl_device *isl_dev, + struct brw_blorp_surface_info *info) { assert(info->surf.tiling == ISL_TILING_W); @@ -1942,7 +1942,7 @@ try_blorp_blit(struct blorp_batch *batch, params->y1 = ALIGN(params->y1, y_align) / 2; /* Retile the surface to Y-tiled */ - surf_retile_w_to_y(batch->blorp->isl_dev, ¶ms->dst); + blorp_surf_retile_w_to_y(batch->blorp->isl_dev, ¶ms->dst); wm_prog_key->dst_tiled_w = true; wm_prog_key->use_kill = true; @@ -1968,7 +1968,7 @@ try_blorp_blit(struct blorp_batch *batch, * * TODO: what if this makes the texture size too large? */ - surf_retile_w_to_y(batch->blorp->isl_dev, ¶ms->src); + blorp_surf_retile_w_to_y(batch->blorp->isl_dev, ¶ms->src); wm_prog_key->src_tiled_w = true; wm_prog_key->need_src_offset = true; diff --git a/src/intel/blorp/blorp_priv.h b/src/intel/blorp/blorp_priv.h index 02c33c6bac5..5ec8d62553e 100644 --- a/src/intel/blorp/blorp_priv.h +++ b/src/intel/blorp/blorp_priv.h @@ -83,6 +83,9 @@ blorp_surf_convert_to_uncompressed(const struct isl_device *isl_dev, struct brw_blorp_surface_info *info, uint32_t *x, uint32_t *y, uint32_t *width, uint32_t *height); +void +blorp_surf_retile_w_to_y(const struct isl_device *isl_dev, + struct brw_blorp_surface_info *info); struct brw_blorp_coord_transform -- 2.30.2