[Mesa-dev,v2,7/9] glsl: Add support for do_minmax_prune in test_optpass

Submitted by Iago Toral Quiroga on Oct. 1, 2014, 6:35 a.m.

Details

Message ID 1412145345-3974-8-git-send-email-itoral@igalia.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Iago Toral Quiroga Oct. 1, 2014, 6:35 a.m.
From: Petri Latvala <petri.latvala@intel.com>

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 src/glsl/test_optpass.cpp | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/glsl/test_optpass.cpp b/src/glsl/test_optpass.cpp
index 24c06f1..d88a904 100644
--- a/src/glsl/test_optpass.cpp
+++ b/src/glsl/test_optpass.cpp
@@ -131,6 +131,8 @@  do_optimization(struct exec_list *ir, const char *optimization,
       return lower_quadop_vector(ir, int_0 != 0);
    } else if (strcmp(optimization, "optimize_redundant_jumps") == 0) {
       return optimize_redundant_jumps(ir);
+   } else if (strcmp(optimization, "do_minmax_prune") == 0) {
+      return do_minmax_prune(ir);
    } else {
       printf("Unrecognized optimization %s\n", optimization);
       exit(EXIT_FAILURE);