i965/gen8: Expose state base address setup

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
Topi Pohjolainen 2015-03-02 11:29:05 +02:00
parent fea168f495
commit d7e49fba9a
2 changed files with 5 additions and 2 deletions

View 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

View 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
};