From 6403efbe7458d05cf117adb41c8a152ed6e28bdd Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 8 May 2015 12:55:00 -0700 Subject: glsl: Remove ir_binop_greater and ir_binop_lequal expressions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NIR does not have these instructions. TGSI and Mesa IR both implement them using < and >=, repsectively. Removing them deletes a bunch of code and means I don't have to add code to the SPIR-V generator for them. v2: Rebase on 2+ years of change... and fix a major bug added in the rebase. text data bss dec hex filename 8255291 268856 294072 8818219 868e2b 32-bit i965_dri.so before 8254235 268856 294072 8817163 868a0b 32-bit i965_dri.so after 7815339 345592 420592 8581523 82f193 64-bit i965_dri.so before 7813995 345560 420592 8580147 82ec33 64-bit i965_dri.so after Signed-off-by: Ian Romanick Reviewed-by: Nicolai Hähnle --- src/compiler/glsl/ir_validate.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/compiler/glsl/ir_validate.cpp') diff --git a/src/compiler/glsl/ir_validate.cpp b/src/compiler/glsl/ir_validate.cpp index e368224a9ba..aa07f8aea64 100644 --- a/src/compiler/glsl/ir_validate.cpp +++ b/src/compiler/glsl/ir_validate.cpp @@ -647,8 +647,6 @@ ir_validate::visit_leave(ir_expression *ir) break; case ir_binop_less: - case ir_binop_greater: - case ir_binop_lequal: case ir_binop_gequal: case ir_binop_equal: case ir_binop_nequal: -- cgit v1.2.3