[Mesa-dev] [PATCH 3/5] i965/vec4: Register spilling should never see registers with size != 1
Iago Toral Quiroga
itoral at igalia.com
Fri Jul 24 04:31:50 PDT 2015
Larger registers should have been moved to scratch (like GRF array access)
or split to size 1 by the split_virtual_grfs pass.
---
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
index cff5406..80ab813 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
@@ -271,7 +271,8 @@ vec4_visitor::evaluate_spill_costs(float *spill_costs, bool *no_spill)
for (unsigned i = 0; i < this->alloc.count; i++) {
spill_costs[i] = 0.0;
- no_spill[i] = alloc.sizes[i] != 1;
+ no_spill[i] = false;
+ assert(this->alloc.sizes[i] == 1);
}
/* Calculate costs for spilling nodes. Call it a cost of 1 per
--
1.9.1
More information about the mesa-dev
mailing list