intel: Mark some file-local code as static.
authorEric Anholt <eric@anholt.net>
Fri, 21 Sep 2012 08:36:22 +0000 (10:36 +0200)
committerEric Anholt <eric@anholt.net>
Thu, 27 Sep 2012 19:52:53 +0000 (12:52 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_batchbuffer.h
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h
src/mesa/drivers/dri/intel/intel_screen.c

index 1b509c05a801c1a72c039db10dcc2445d2fc56a1..54545c0df74db1dd3273f55f7bef0e6f2513ccfd 100644 (file)
@@ -62,7 +62,7 @@ brw_new_shader_program(struct gl_context *ctx, GLuint name)
  * what non-orthogonal state will be set, in the hope that it reflects
  * the eventual NOS used, and thus allows us to produce link failures.
  */
-bool
+static bool
 brw_shader_precompile(struct gl_context *ctx, struct gl_shader_program *prog)
 {
    struct brw_context *brw = brw_context(ctx);
index 48dd4ba76bb4e3cb945a24e239c1389938034b6b..deaef0e157af2b9648f8ebeec83ad023d5820907 100644 (file)
@@ -217,11 +217,6 @@ void gen7_set_surface_mcs_info(struct brw_context *brw,
 void gen7_check_surface_setup(struct gen7_surface_state *surf,
                               bool is_render_target);
 void gen7_init_vtable_surface_functions(struct brw_context *brw);
-void gen7_create_constant_surface(struct brw_context *brw,
-                                 drm_intel_bo *bo,
-                                 uint32_t offset,
-                                 int width,
-                                 uint32_t *out_offset);
 
 /* brw_wm_sampler_state.c */
 uint32_t translate_wrap_mode(GLenum wrap, bool using_nearest);
index ec0f765635b7d3c69e373c903b35bcf4085652ea..5b3930a3769c53f0ecb8216ee16bc7fb2c3806ea 100644 (file)
@@ -179,7 +179,7 @@ static const struct brw_tracked_state *gen6_atoms[] =
    &brw_vertices,
 };
 
-const struct brw_tracked_state *gen7_atoms[] =
+static const struct brw_tracked_state *gen7_atoms[] =
 {
    &brw_wm_input_sizes,
    &brw_vs_prog,
index dd7b0d4cfe10fb181ca2a450a6278957d0ba625e..466a038a9cc4396c18ae7561300b98ac070a93da 100644 (file)
@@ -400,7 +400,7 @@ gen7_update_texture_surface(struct gl_context *ctx,
  * Create the constant buffer surface.  Vertex/fragment shader constants will
  * be read from this buffer with Data Port Read instructions/messages.
  */
-void
+static void
 gen7_create_constant_surface(struct brw_context *brw,
                             drm_intel_bo *bo,
                             uint32_t offset,
index 06cbaecc74da99758ed6dc55688dbfa7e53befe7..d36dacc6109ecde81283afdfe608e7e74f822f33 100644 (file)
@@ -32,6 +32,9 @@
 #include "intel_bufmgr.h"
 #include "intel_buffers.h"
 
+static void
+intel_batchbuffer_reset(struct intel_context *intel);
+
 struct cached_batch_item {
    struct cached_batch_item *next;
    uint16_t header;
@@ -67,7 +70,7 @@ intel_batchbuffer_init(struct intel_context *intel)
    }
 }
 
-void
+static void
 intel_batchbuffer_reset(struct intel_context *intel)
 {
    if (intel->batch.last_bo != NULL) {
index b8b60cd862ba206cb5a785c4c849dee5692ab2b6..bae65553d08b05004df84e68b1bc1e93da9bd87b 100644 (file)
@@ -26,7 +26,6 @@ extern "C" {
 struct intel_batchbuffer;
 
 void intel_batchbuffer_init(struct intel_context *intel);
-void intel_batchbuffer_reset(struct intel_context *intel);
 void intel_batchbuffer_free(struct intel_context *intel);
 void intel_batchbuffer_save_state(struct intel_context *intel);
 void intel_batchbuffer_reset_to_saved(struct intel_context *intel);
index ca9aa03136b00ee26c51cbf82c58a8f57625bba0..feac7024583e98fabad15a5e8d6a0361750c924a 100644 (file)
@@ -220,7 +220,7 @@ intel_quantize_num_samples(struct intel_screen *intel, unsigned num_samples)
  * Called via glRenderbufferStorageEXT() to set the format and allocate
  * storage for a user-created renderbuffer.
  */
-GLboolean
+static GLboolean
 intel_alloc_renderbuffer_storage(struct gl_context * ctx, struct gl_renderbuffer *rb,
                                  GLenum internalFormat,
                                  GLuint width, GLuint height)
index 6574f0faf22628c73c6f9301c7624e75deb31030..3db80de7cd177f747afa7e3f0f6d55c732e92f09 100644 (file)
@@ -140,12 +140,6 @@ intel_create_wrapped_renderbuffer(struct gl_context * ctx,
                                  int width, int height,
                                  gl_format format);
 
-GLboolean
-intel_alloc_renderbuffer_storage(struct gl_context * ctx,
-                                struct gl_renderbuffer *rb,
-                                 GLenum internalFormat,
-                                 GLuint width, GLuint height);
-
 extern void
 intel_fbo_init(struct intel_context *intel);
 
index e3a442c2a275edda3896062ab8362807785f16b5..50959b72af2808ff9516ff497a1e2cbebe1ebaa1 100644 (file)
@@ -190,7 +190,7 @@ static const struct __DRI2flushExtensionRec intelFlushExtension = {
     dri2InvalidateDrawable,
 };
 
-struct intel_image_format intel_image_formats[] = {
+static struct intel_image_format intel_image_formats[] = {
    { __DRI_IMAGE_FOURCC_ARGB8888, __DRI_IMAGE_COMPONENTS_RGBA, 1,
      { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } },