summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-27 13:29:45 -0700
committerEric Anholt <[email protected]>2010-08-27 13:59:36 -0700
commit41e75cde2605e62ab691fd725a8a7259f40f5122 (patch)
treebb311477481b89a1258d0d60236e1d9de92c26b1 /src/mesa/drivers
parent31c9f468f35637ce3b82e59a43c49c949d59ee9e (diff)
i965: Add translation for RNDD and RNDZ.
Fixes: glsl-fs-any. glsl1-integer division with uniform var
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp7
1 files changed, 7 insertions, 0 deletions
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]);