mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i965/fs: Don't do redundant RA setup on IVB+
Acked-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
0ac65abb46
commit
1bb339493c
1 changed files with 9 additions and 0 deletions
|
|
@ -79,6 +79,15 @@ brw_alloc_reg_set(struct brw_compiler *compiler, int dispatch_width)
|
|||
int base_reg_count = BRW_MAX_GRF;
|
||||
int index = (dispatch_width / 8) - 1;
|
||||
|
||||
if (dispatch_width > 8 && devinfo->gen >= 7) {
|
||||
/* For IVB+, we don't need the PLN hacks or the even-reg alignment in
|
||||
* SIMD16. Therefore, we can use the exact same register sets for
|
||||
* SIMD16 as we do for SIMD8 and we don't need to recalculate them.
|
||||
*/
|
||||
compiler->fs_reg_sets[index] = compiler->fs_reg_sets[0];
|
||||
return;
|
||||
}
|
||||
|
||||
/* The registers used to make up almost all values handled in the compiler
|
||||
* are a scalar value occupying a single register (or 2 registers in the
|
||||
* case of SIMD16, which is handled by dividing base_reg_count by 2 and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue