diff options
author | Jason Ekstrand <[email protected]> | 2015-08-15 09:58:32 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-08-18 17:48:53 -0700 |
commit | f01bdb0484dd5224b183526d020ee3f2888cac45 (patch) | |
tree | 220dd0d240197461455409e39a94284803ccaafd /src/util/register_allocate.h | |
parent | c3b21f2d56d77c8c11115bf110a5e25e9dd7e3d5 (diff) |
util/ra: Make allocating conflict lists optional
Since i965 is now using make_reg_conflicts_transitive and doesn't need
q-value computations, they are disabled on i965. They are enabled
everywhere else so that they get the old behavior. This reduces the time
spent in eglInitialize() on BDW by around 10-15%.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util/register_allocate.h')
-rw-r--r-- | src/util/register_allocate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/register_allocate.h b/src/util/register_allocate.h index ed3854cec7d..628d2bbbced 100644 --- a/src/util/register_allocate.h +++ b/src/util/register_allocate.h @@ -44,7 +44,8 @@ struct ra_regs; * registers, such as aligned register pairs that conflict with the * two real registers from which they are composed. */ -struct ra_regs *ra_alloc_reg_set(void *mem_ctx, unsigned int count); +struct ra_regs *ra_alloc_reg_set(void *mem_ctx, unsigned int count, + bool need_conflict_lists); void ra_set_allocate_round_robin(struct ra_regs *regs); unsigned int ra_alloc_reg_class(struct ra_regs *regs); void ra_add_reg_conflict(struct ra_regs *regs, |