Re: [Mesa-dev] [PATCH 09/13] i965/vec4: Return float from spill_cost_for_type()

2017-08-11 Thread Iago Toral
Oops, sorry about that!

Reviewed-by: Iago Toral Quiroga 

On Thu, 2017-08-10 at 18:02 -0400, Matt Turner wrote:
> ---
>  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

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH 09/13] i965/vec4: Return float from spill_cost_for_type()

2017-08-10 Thread Matt Turner
---
 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
-- 
2.13.0

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev