Permalink
Browse files

cleanup vectorize pass; constants are handled as rvalues right above

  • Loading branch information...
1 parent 9d391b9 commit ef4da122d74b8d873d5afceff09e64d270a48290 @aras-p committed Feb 19, 2014
Showing with 7 additions and 5 deletions.
  1. +7 −0 Changelog.md
  2. +0 −5 src/glsl/opt_vectorize.cpp
View
@@ -1,6 +1,13 @@
GLSL optimizer Change Log
=========================
+2014 02
+-------
+
+Fixes:
+
+* Fixed vectorize pass introduced last month going wrong with dot products.
+
2014 01
-------
@@ -156,11 +156,6 @@ rewrite_swizzle(ir_instruction *ir, void *data)
expr->operands[i] = new(ir) ir_swizzle(rval, 0, 0, 0, 0,
mask->num_components);
}
- ir_constant *cns = expr->operands[i]->as_constant();
- if (cns && cns->type->is_scalar()) {
- expr->operands[i] = new(ir) ir_swizzle(cns, 0, 0, 0, 0,
- mask->num_components);
- }
}
}
break;

0 comments on commit ef4da12

Please sign in to comment.