summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2019-03-08 08:50:13 -0700
committerBrian Paul <[email protected]>2019-03-08 10:23:11 -0700
commit0de83bacf09c20b05b4ac67fdfb3e8e8f2e0108b (patch)
treeecf20fbd46d8a9aaf0dfd551cd116604e13b4dc5 /src/intel/compiler
parentb5ea56e411b3bab17ef0d4658f2c0bf23e8b91dc (diff)
intel/compiler: silence unitialized variable warning in opt_vector_float()
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_vec4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp
index fe368518fba..2e9de29b4f2 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,