i965/mt: Declare some functions as static
authorChad Versace <chad.versace@intel.com>
Thu, 1 Oct 2015 14:31:31 +0000 (07:31 -0700)
committerChad Versace <chad.versace@intel.com>
Mon, 5 Oct 2015 18:10:11 +0000 (11:10 -0700)
intel_tiling_supports_non_msrt_mcs() and
intel_miptree_is_fast_clear_capable() are not used outside of
intel_mipmap_tree.c.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h

index ffc356c9240ea55df9e962f6c1ed7806762f76cb..05dc291d847d149d503c603c0f194a122000ca0f 100644 (file)
@@ -160,7 +160,7 @@ intel_get_non_msrt_mcs_alignment(struct intel_mipmap_tree *mt,
    }
 }
 
-bool
+static bool
 intel_tiling_supports_non_msrt_mcs(struct brw_context *brw, unsigned tiling)
 {
    /* From the Ivy Bridge PRM, Vol2 Part1 11.7 "MCS Buffer for Render
@@ -193,7 +193,7 @@ intel_tiling_supports_non_msrt_mcs(struct brw_context *brw, unsigned tiling)
  *     - MCS buffer for non-MSRT is supported only for RT formats 32bpp,
  *       64bpp, and 128bpp.
  */
-bool
+static bool
 intel_miptree_is_fast_clear_capable(struct brw_context *brw,
                                     struct intel_mipmap_tree *mt)
 {
index 486e5c6f43b7b3accde8e753a0aa56b5a7254e3f..805cd714d882e64511478e9d877c8da682d459ec 100644 (file)
@@ -658,11 +658,7 @@ struct intel_mipmap_tree
 void
 intel_get_non_msrt_mcs_alignment(struct intel_mipmap_tree *mt,
                                  unsigned *width_px, unsigned *height);
-bool
-intel_tiling_supports_non_msrt_mcs(struct brw_context *brw, unsigned tiling);
-bool
-intel_miptree_is_fast_clear_capable(struct brw_context *brw,
-                                    struct intel_mipmap_tree *mt);
+
 bool
 intel_miptree_alloc_non_msrt_mcs(struct brw_context *brw,
                                  struct intel_mipmap_tree *mt);