From: Eric Anholt Date: Fri, 27 Aug 2010 21:09:05 +0000 (-0700) Subject: i965: Add missing handling for BRW_OPCODE_SEL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0aa2d6118b1af7434b7551227cd72c588568e65;p=mesa.git i965: Add missing handling for BRW_OPCODE_SEL. Fixes 4 piglit tests about min, max, and clamp. --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 3f41a553315..63f3cd08162 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1513,6 +1513,10 @@ fs_visitor::generate_code() case BRW_OPCODE_CMP: brw_CMP(p, dst, inst->conditional_mod, src[0], src[1]); break; + case BRW_OPCODE_SEL: + brw_SEL(p, dst, src[0], src[1]); + break; + case BRW_OPCODE_IF: assert(if_stack_depth < 16); if_stack[if_stack_depth] = brw_IF(p, BRW_EXECUTE_8);