Mesa (master): glsl: Rebuild builtins for any() change.

Eric Anholt anholt at kemper.freedesktop.org
Mon Aug 23 20:07:07 UTC 2010


Module: Mesa
Branch: master
Commit: b75645d8adf88ef237c3f835b6190e8113452b09
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b75645d8adf88ef237c3f835b6190e8113452b09

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Aug 23 12:54:55 2010 -0700

glsl: Rebuild builtins for any() change.

---

 src/glsl/builtin_function.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/glsl/builtin_function.cpp b/src/glsl/builtin_function.cpp
index 517a6ad..5471ba6 100644
--- a/src/glsl/builtin_function.cpp
+++ b/src/glsl/builtin_function.cpp
@@ -143,17 +143,17 @@ static const char *builtin_any =
    "   (signature bool\n"
    "     (parameters\n"
    "       (declare (in) bvec2 arg0))\n"
-   "     ((return (expression bool || (swiz x (var_ref arg0))(swiz y (var_ref arg0))))))\n"
+   "     ((return (expression bool any (var_ref arg0)))))\n"
    "\n"
    "   (signature bool\n"
    "     (parameters\n"
    "       (declare (in) bvec3 arg0))\n"
-   "     ((return (expression bool || (expression bool || (swiz x (var_ref arg0))(swiz y (var_ref arg0))) (swiz z (var_ref arg0))))))\n"
+   "     ((return (expression bool any (var_ref arg0)))))\n"
    "\n"
    "   (signature bool\n"
    "     (parameters\n"
    "       (declare (in) bvec4 arg0))\n"
-   "     ((return (expression bool || (expression bool || (expression bool || (swiz x (var_ref arg0))(swiz y (var_ref arg0))) (swiz z (var_ref arg0))) (swiz w (var_ref arg0))))))\n"
+   "     ((return (expression bool any (var_ref arg0)))))\n"
    "))\n"
    ""
 ;




More information about the mesa-commit mailing list