From: Eric Anholt Date: Fri, 27 Aug 2010 20:29:45 +0000 (-0700) Subject: i965: Add translation for RNDD and RNDZ. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41e75cde2605e62ab691fd725a8a7259f40f5122;p=mesa.git i965: Add translation for RNDD and RNDZ. Fixes: glsl-fs-any. glsl1-integer division with uniform var --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index bb6c456eed9..cf02b214f5c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1483,9 +1483,16 @@ fs_visitor::generate_code() case BRW_OPCODE_MUL: brw_MUL(p, dst, src[0], src[1]); break; + case BRW_OPCODE_FRC: brw_FRC(p, dst, src[0]); break; + case BRW_OPCODE_RNDD: + brw_RNDD(p, dst, src[0]); + break; + case BRW_OPCODE_RNDZ: + brw_RNDZ(p, dst, src[0]); + break; case BRW_OPCODE_AND: brw_AND(p, dst, src[0], src[1]);