i965/vec4: Return float from spill_cost_for_type()
authorMatt Turner <mattst88@gmail.com>
Fri, 7 Jul 2017 00:33:20 +0000 (17:33 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 21 Aug 2017 21:45:44 +0000 (14:45 -0700)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_vec4_reg_allocate.cpp

index a0ba77b867cd75904fb69dfad04751d4ff4d0ecc..bbad46ee6c0d534f8c5e5f649c584176ebdeb591 100644 (file)
@@ -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