summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2015-03-02 11:29:05 +0200
committerTopi Pohjolainen <[email protected]>2016-04-21 08:35:45 +0300
commit4c526370ca9020ab2ca9ea533a8ccb2fe901fe78 (patch)
tree4ca04b9ec0e2da06cc8566d76f794dfb2c221f51
parent9949103756c19f8cbd37fb0ffb5b135cd24725ad (diff)
i965/gen8: Expose state base address setup
Signed-off-by: Topi Pohjolainen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_state.h3
-rw-r--r--src/mesa/drivers/dri/i965/gen8_misc_state.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h
index 9a2d1adcd79..34b57a7719f 100644
--- a/src/mesa/drivers/dri/i965/brw_state.h
+++ b/src/mesa/drivers/dri/i965/brw_state.h
@@ -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
*/
diff --git a/src/mesa/drivers/dri/i965/gen8_misc_state.c b/src/mesa/drivers/dri/i965/gen8_misc_state.c
index a46b252277e..b20038eaacf 100644
--- a/src/mesa/drivers/dri/i965/gen8_misc_state.c
+++ b/src/mesa/drivers/dri/i965/gen8_misc_state.c
@@ -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;