Mesa (master): i965/vec4: Return float from spill_cost_for_type()
Matt Turner
mattst88 at kemper.freedesktop.org
Mon Aug 21 21:45:52 UTC 2017
Module: Mesa
Branch: master
Commit: a77d5b28ac11c6bff4c1e0439b45961bd2e0da6f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a77d5b28ac11c6bff4c1e0439b45961bd2e0da6f
Author: Matt Turner <mattst88 at gmail.com>
Date: Thu Jul 6 17:33:20 2017 -0700
i965/vec4: Return float from spill_cost_for_type()
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
---
src/intel/compiler/brw_vec4_reg_allocate.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/compiler/brw_vec4_reg_allocate.cpp b/src/intel/compiler/brw_vec4_reg_allocate.cpp
index a0ba77b867..bbad46ee6c 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
More information about the mesa-commit
mailing list