From 381fac274054784e4cbd152168653aecb9f1e5dd Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 29 May 2018 14:50:46 -0700 Subject: intel/eu: Add some brw_get_default_ helpers This is much cleaner than everything that wants a default value poking at the bits of p->current directly. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_eu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/intel/compiler/brw_eu.h') diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index 84d5a6f86be..d709d12b671 100644 --- a/src/intel/compiler/brw_eu.h +++ b/src/intel/compiler/brw_eu.h @@ -106,6 +106,9 @@ struct brw_codegen { void brw_pop_insn_state( struct brw_codegen *p ); void brw_push_insn_state( struct brw_codegen *p ); +unsigned brw_get_default_exec_size(struct brw_codegen *p); +unsigned brw_get_default_group(struct brw_codegen *p); +unsigned brw_get_default_access_mode(struct brw_codegen *p); void brw_set_default_exec_size(struct brw_codegen *p, unsigned value); void brw_set_default_mask_control( struct brw_codegen *p, unsigned value ); void brw_set_default_saturate( struct brw_codegen *p, bool enable ); -- cgit v1.2.3