i965: Add translation for RNDD and RNDZ.
authorEric Anholt <eric@anholt.net>
Fri, 27 Aug 2010 20:29:45 +0000 (13:29 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 Aug 2010 20:59:36 +0000 (13:59 -0700)
Fixes:
glsl-fs-any.
glsl1-integer division with uniform var

src/mesa/drivers/dri/i965/brw_fs.cpp

index bb6c456eed90bce11c96bccd21f0611947e83226..cf02b214f5cf083cef90be4cce804998cac29758 100644 (file)
@@ -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]);