[Mesa-dev] [PATCH 3/3] i965/vs: Remove scalar-only assertion in emit_bool_to_cond_code.

Kenneth Graunke kenneth at whitecape.org
Tue Aug 30 12:34:15 PDT 2011


This was cut and pasted from the FS backend, where everything is
a scalar.  However, looking at the emit_if_gen6 code, it looks like this
should all just work.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 04c49da..2d739f6 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -472,8 +472,6 @@ vec4_visitor::emit_bool_to_cond_code(ir_rvalue *ir)
 
       assert(expr->get_num_operands() <= 2);
       for (unsigned int i = 0; i < expr->get_num_operands(); i++) {
-	 assert(expr->operands[i]->type->is_scalar());
-
 	 expr->operands[i]->accept(this);
 	 op[i] = this->result;
       }
-- 
1.7.6



More information about the mesa-dev mailing list