Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleanup vectorize pass; constants are handled as rvalues right above

  • Loading branch information...
commit ef4da122d74b8d873d5afceff09e64d270a48290 1 parent 9d391b9
@aras-p authored
Showing with 7 additions and 5 deletions.
  1. +7 −0 Changelog.md
  2. +0 −5 src/glsl/opt_vectorize.cpp
View
7 Changelog.md
@@ -1,6 +1,13 @@
GLSL optimizer Change Log
=========================
+2014 02
+-------
+
+Fixes:
+
+* Fixed vectorize pass introduced last month going wrong with dot products.
+
2014 01
-------
View
5 src/glsl/opt_vectorize.cpp
@@ -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.
Something went wrong with that request. Please try again.