summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-07-06 17:33:20 -0700
committerMatt Turner <[email protected]>2017-08-21 14:45:44 -0700
commita77d5b28ac11c6bff4c1e0439b45961bd2e0da6f (patch)
tree1577bac636761111852bd42aaefe8e89ac872432 /src/intel/compiler
parent76f36607b06cec7e18df361a3e644687d3eb80ac (diff)
i965/vec4: Return float from spill_cost_for_type()
Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_vec4_reg_allocate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_vec4_reg_allocate.cpp b/src/intel/compiler/brw_vec4_reg_allocate.cpp
index a0ba77b867c..bbad46ee6c0 100644
--- a/src/intel/compiler/brw_vec4_reg_allocate.cpp
+++ b/src/intel/compiler/brw_vec4_reg_allocate.cpp
@@ -369,7 +369,7 @@ can_use_scratch_for_source(const vec4_instruction *inst, unsigned i,
return prev_inst_read_scratch_reg;
}
-static inline unsigned
+static inline float
spill_cost_for_type(enum brw_reg_type type)
{
/* Spilling of a 64-bit register involves emitting 2 32-bit scratch