Re: [Mesa-dev] [PATCH 2/2] intel/compiler: silence unitialized variable warning in opt_vector_float()

2019-03-08 Thread Lionel Landwerlin

Reviewed-by: Lionel Landwerlin 

Thanks!

On 08/03/2019 15:52, Brian Paul wrote:

---
  src/intel/compiler/brw_vec4.cpp | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp
index fe36851..2e9de29 100644
--- a/src/intel/compiler/brw_vec4.cpp
+++ b/src/intel/compiler/brw_vec4.cpp
@@ -414,7 +414,7 @@ vec4_visitor::opt_vector_float()
  
foreach_inst_in_block_safe(vec4_instruction, inst, block) {

   int vf = -1;
- enum brw_reg_type need_type;
+ enum brw_reg_type need_type = BRW_REGISTER_TYPE_LAST;
  
   /* Look for unconditional MOVs from an immediate with a partial

* writemask.  Skip type-conversion MOVs other than integer 0,



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

[Mesa-dev] [PATCH 2/2] intel/compiler: silence unitialized variable warning in opt_vector_float()

2019-03-08 Thread Brian Paul
---
 src/intel/compiler/brw_vec4.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp
index fe36851..2e9de29 100644
--- a/src/intel/compiler/brw_vec4.cpp
+++ b/src/intel/compiler/brw_vec4.cpp
@@ -414,7 +414,7 @@ vec4_visitor::opt_vector_float()
 
   foreach_inst_in_block_safe(vec4_instruction, inst, block) {
  int vf = -1;
- enum brw_reg_type need_type;
+ enum brw_reg_type need_type = BRW_REGISTER_TYPE_LAST;
 
  /* Look for unconditional MOVs from an immediate with a partial
   * writemask.  Skip type-conversion MOVs other than integer 0,
-- 
1.8.5.6

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