i965: Make gen7_upload_ps_state static
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 25 Jun 2015 17:45:34 +0000 (10:45 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 3 Aug 2015 18:05:00 +0000 (11:05 -0700)
It is only ever called from within the same file.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen7_wm_state.c

index a99bbbd30ca23fa8d1f37914e820e1e49cb01a84..cf3a96c7bee5f932410df8b267fee0f1099d00a8 100644 (file)
@@ -266,15 +266,6 @@ void brw_update_renderbuffer_surfaces(struct brw_context *brw,
                                       uint32_t render_target_start,
                                       uint32_t *surf_offset);
 
-/* gen7_wm_state.c */
-void
-gen7_upload_ps_state(struct brw_context *brw,
-                     const struct gl_fragment_program *fp,
-                     const struct brw_stage_state *stage_state,
-                     const struct brw_wm_prog_data *prog_data,
-                     bool enable_dual_src_blend, unsigned sample_mask,
-                     unsigned fast_clear_op);
-
 /* gen7_wm_surface_state.c */
 uint32_t gen7_surface_tiling_mode(uint32_t tiling);
 uint32_t gen7_surface_msaa_bits(unsigned num_samples, enum intel_msaa_layout l);
index ea11ae845e3adf3f9fd2bec5b19aa0a59d64a2a8..d7be58dd0f7169b058d4e11c68013c0e10bc607d 100644 (file)
@@ -127,7 +127,7 @@ const struct brw_tracked_state gen7_wm_state = {
    .emit = upload_wm_state,
 };
 
-void
+static void
 gen7_upload_ps_state(struct brw_context *brw,
                      const struct gl_fragment_program *fp,
                      const struct brw_stage_state *stage_state,