summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/compiler
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-08-15 09:58:32 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-08-18 17:48:53 -0700
commitf01bdb0484dd5224b183526d020ee3f2888cac45 (patch)
tree220dd0d240197461455409e39a94284803ccaafd /src/gallium/drivers/r300/compiler
parentc3b21f2d56d77c8c11115bf110a5e25e9dd7e3d5 (diff)
downloadexternal_mesa3d-f01bdb0484dd5224b183526d020ee3f2888cac45.zip
external_mesa3d-f01bdb0484dd5224b183526d020ee3f2888cac45.tar.gz
external_mesa3d-f01bdb0484dd5224b183526d020ee3f2888cac45.tar.bz2
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 <eric@anholt.net>
Diffstat (limited to 'src/gallium/drivers/r300/compiler')
-rw-r--r--src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c b/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c
index 14f93fb..e8f4087 100644
--- a/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c
+++ b/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c
@@ -693,7 +693,8 @@ void rc_init_regalloc_state(struct rc_regalloc_state *s)
};
/* Allocate the main ra data structure */
- s->regs = ra_alloc_reg_set(NULL, R500_PFS_NUM_TEMP_REGS * RC_MASK_XYZW);
+ s->regs = ra_alloc_reg_set(NULL, R500_PFS_NUM_TEMP_REGS * RC_MASK_XYZW,
+ true);
/* Create the register classes */
for (i = 0; i < RC_REG_CLASS_COUNT; i++) {