diff options
author | Jason Ekstrand <[email protected]> | 2018-02-03 11:46:04 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-09-06 23:35:09 +0000 |
commit | caa786e02948e9acc1a6fac224c84c0ab26b4cf9 (patch) | |
tree | 5f39c7a9ae8bf2fe727058d42dad9c3093cc3032 /src | |
parent | a90b1cbe73f8d842c04813755b34a4db4d03b7b9 (diff) |
intel/blorp: Expose surf_retile_w_to_y internally
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/blorp/blorp_blit.c | 10 | ||||
-rw-r--r-- | 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 |