intel/blorp: Expose surf_fake_interleaved_msaa internally
authorJason Ekstrand <jason@jlekstrand.net>
Sun, 1 Sep 2019 14:07:38 +0000 (09:07 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 6 Sep 2019 23:35:09 +0000 (23:35 +0000)
src/intel/blorp/blorp_blit.c
src/intel/blorp/blorp_priv.h

index 53efe0d78ec8d7f37509cb7e4b0823411533ef53..a43aa88d0db22e62e8fc7e993e418f46c1b421f5 100644 (file)
@@ -1609,9 +1609,9 @@ blorp_surf_convert_to_single_slice(const struct isl_device *isl_dev,
    info->z_offset = 0;
 }
 
-static void
-surf_fake_interleaved_msaa(const struct isl_device *isl_dev,
-                           struct brw_blorp_surface_info *info)
+void
+blorp_surf_fake_interleaved_msaa(const struct isl_device *isl_dev,
+                                 struct brw_blorp_surface_info *info)
 {
    assert(info->surf.msaa_layout == ISL_MSAA_LAYOUT_INTERLEAVED);
 
@@ -1639,7 +1639,7 @@ blorp_surf_retile_w_to_y(const struct isl_device *isl_dev,
     */
    if (isl_dev->info->gen > 6 &&
        info->surf.msaa_layout == ISL_MSAA_LAYOUT_INTERLEAVED) {
-      surf_fake_interleaved_msaa(isl_dev, info);
+      blorp_surf_fake_interleaved_msaa(isl_dev, info);
    }
 
    if (isl_dev->info->gen == 6) {
@@ -1881,7 +1881,7 @@ try_blorp_blit(struct blorp_batch *batch,
       params->x1 = ALIGN(params->x1, 2) * px_size_sa.width;
       params->y1 = ALIGN(params->y1, 2) * px_size_sa.height;
 
-      surf_fake_interleaved_msaa(batch->blorp->isl_dev, &params->dst);
+      blorp_surf_fake_interleaved_msaa(batch->blorp->isl_dev, &params->dst);
 
       wm_prog_key->use_kill = true;
       wm_prog_key->need_dst_offset = true;
index 5ec8d62553e95a4d61c62ca5d21162f6e2f67fbe..ddd118f134944d222d027eaae0f0a2e2cce072e0 100644 (file)
@@ -84,6 +84,9 @@ blorp_surf_convert_to_uncompressed(const struct isl_device *isl_dev,
                                    uint32_t *x, uint32_t *y,
                                    uint32_t *width, uint32_t *height);
 void
+blorp_surf_fake_interleaved_msaa(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);