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>
Thu, 21 Apr 2016 05:35:45 +0000 (08:35 +0300)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen8_misc_state.c

index 9a2d1adcd7993b71eb4aa5a06197980ae7264dfe..34b57a7719f8bd34d0141e625778064fd7327b5e 100644 (file)
@@ -204,6 +204,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 a46b252277ec61f2a25a2d075a1c6c9d6c759db6..b20038eaacfc0ee84683faf46ca85ef6b2b9d3e2 100644 (file)
@@ -29,8 +29,7 @@
 /**
  * Define the base addresses which some state is referenced from.
  */
-static void
-gen8_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;