i965: Make gen8_upload_state_base_address static
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 19 Aug 2015 20:54:21 +0000 (13:54 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 2 Sep 2015 23:24:17 +0000 (16:24 -0700)
All of the other state upload functions are static because the only use
is in the brw_tracked_state structure.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen8_misc_state.c

index 7ae9a5c33b3a8403857f93e50175aebbabaab587..b6f565702cb79cbe821cb4ffdb1180c2fe195d37 100644 (file)
@@ -178,10 +178,6 @@ void brw_upload_invariant_state(struct brw_context *brw);
 uint32_t
 brw_depthbuffer_format(struct brw_context *brw);
 
-/* gen8_misc_state.c */
-void gen8_upload_state_base_address(struct brw_context *brw);
-
-
 /***********************************************************************
  * brw_state.c
  */
index b20038eaacfc0ee84683faf46ca85ef6b2b9d3e2..a46b252277ec61f2a25a2d075a1c6c9d6c759db6 100644 (file)
@@ -29,7 +29,8 @@
 /**
  * Define the base addresses which some state is referenced from.
  */
-void gen8_upload_state_base_address(struct brw_context *brw)
+static void
+gen8_upload_state_base_address(struct brw_context *brw)
 {
    uint32_t mocs_wb = brw->gen >= 9 ? SKL_MOCS_WB : BDW_MOCS_WB;
    int pkt_len = brw->gen >= 9 ? 19 : 16;