i965: Declare intel_miptree_create_layout() as static
authorChad Versace <chad.versace@intel.com>
Mon, 6 Apr 2015 14:13:53 +0000 (07:13 -0700)
committerChad Versace <chad.versace@intel.com>
Mon, 13 Apr 2015 14:32:02 +0000 (07:32 -0700)
It's not used outside intel_mipmap_tree.c.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h

index f766b96b8c4c7dae10a00e948f0dbabe377da362..a90646038ba7c2b2d2d928944d84af49f20b23e0 100644 (file)
@@ -226,7 +226,7 @@ intel_depth_format_for_depthstencil_format(mesa_format format) {
  *        intel_miptree_create_for_bo(). If true, then do not create
  *        \c stencil_mt.
  */
-struct intel_mipmap_tree *
+static struct intel_mipmap_tree *
 intel_miptree_create_layout(struct brw_context *brw,
                             GLenum target,
                             mesa_format format,
index e3e21276fcc610e9916f63b5267112dd947b66e4..3c41893212ae374b53b70d273244caadab1eb953 100644 (file)
@@ -529,19 +529,6 @@ struct intel_mipmap_tree *intel_miptree_create(struct brw_context *brw,
                                                enum intel_miptree_tiling_mode,
                                                bool force_all_slices_at_each_lod);
 
-struct intel_mipmap_tree *
-intel_miptree_create_layout(struct brw_context *brw,
-                            GLenum target,
-                            mesa_format format,
-                            GLuint first_level,
-                            GLuint last_level,
-                            GLuint width0,
-                            GLuint height0,
-                            GLuint depth0,
-                            bool for_bo,
-                            GLuint num_samples,
-                            bool force_all_slices_at_each_lod);
-
 struct intel_mipmap_tree *
 intel_miptree_create_for_bo(struct brw_context *brw,
                             drm_intel_bo *bo,