i965/gen8: Expose state base address setup
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Mon, 2 Mar 2015 09:29:05 +0000 (11:29 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 29 Apr 2015 21:28:48 +0000 (00:28 +0300)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-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 13d541b48ed884dfff89255ff6a4fffa458c6cbf..a2127d140845d0e40aaaaac374936b600103add9 100644 (file)
@@ -171,6 +171,9 @@ 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 88e425fa582be4b5b779cc78f5a5dbcc172f0e7e..b20038eaacfc0ee84683faf46ca85ef6b2b9d3e2 100644 (file)
@@ -29,7 +29,7 @@
 /**
  * Define the base addresses which some state is referenced from.
  */
-static void upload_state_base_address(struct brw_context *brw)
+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;
@@ -78,5 +78,5 @@ const struct brw_tracked_state gen8_state_base_address = {
       .brw = BRW_NEW_BATCH |
              BRW_NEW_PROGRAM_CACHE,
    },
-   .emit = upload_state_base_address
+   .emit = gen8_upload_state_base_address
 };