diff options
author | Matt Turner <mattst88@gmail.com> | 2015-04-14 12:40:34 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-04-21 09:24:48 -0700 |
commit | dd5c8250537640f92dbc1ee63d516c6e3e2aaf77 (patch) | |
tree | 8329be3ef9aba9b6a2cc31c9839579d3af124fc3 /src/mesa/drivers/dri/i965/brw_eu.h | |
parent | 3b4abdae041802183fa7d3792a21bf9ca10df96e (diff) | |
download | external_mesa3d-dd5c8250537640f92dbc1ee63d516c6e3e2aaf77.zip external_mesa3d-dd5c8250537640f92dbc1ee63d516c6e3e2aaf77.tar.gz external_mesa3d-dd5c8250537640f92dbc1ee63d516c6e3e2aaf77.tar.bz2 |
i965: Replace guess_execution_size with something simpler.
guess_execution_size() does two things:
1. Cope with small destination registers.
2. Cope with SIMD8 vs SIMD16 mode.
This patch replaces the first with a simple if block in brw_set_dest: if
the destination register width is less than 8, you probably want the
execution size to match. (I didn't put this in the 3src block because
it doesn't seem to matter.)
Since only the FS compiler cares about SIMD16 mode, it's easy to just
set the default execution size there.
This pattern was already been proven in the Gen8+ generator, but we
didn't port it back to the existing generator when we combined the two.
This is based on a patch from Ken from about a year ago. I've rebased it
and and fixed a few bugs.
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h index f8fd155..31c1492 100644 --- a/src/mesa/drivers/dri/i965/brw_eu.h +++ b/src/mesa/drivers/dri/i965/brw_eu.h @@ -99,6 +99,7 @@ struct brw_compile { void brw_pop_insn_state( struct brw_compile *p ); void brw_push_insn_state( struct brw_compile *p ); +void brw_set_default_exec_size(struct brw_compile *p, unsigned value); void brw_set_default_mask_control( struct brw_compile *p, unsigned value ); void brw_set_default_saturate( struct brw_compile *p, bool enable ); void brw_set_default_access_mode( struct brw_compile *p, unsigned access_mode ); |