st/mesa: add support for new double opcodes
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 25 Jul 2014 21:12:42 +0000 (17:12 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 20 Feb 2015 00:32:55 +0000 (19:32 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index e3f79edf08d09339292b1f348900b6987c411f69..4d8ce11eeeaf62d1bc6e73f5e4dba86623af7b49 100644 (file)
@@ -848,7 +848,7 @@ glsl_to_tgsi_visitor::get_opcode(ir_instruction *ir, unsigned op,
 
       case2iu(ISHR, USHR);
 
-      case2fi(SSG, ISSG);
+      case3fid(SSG, ISSG, DSSG);
       case3fid(ABS, IABS, DABS);
 
       case2iu(IBFE, UBFE);
@@ -861,6 +861,10 @@ glsl_to_tgsi_visitor::get_opcode(ir_instruction *ir, unsigned op,
       case3fid(RSQ, RSQ, DRSQ);
 
       case3fid(FRC, FRC, DFRAC);
+      case3fid(TRUNC, TRUNC, DTRUNC);
+      case3fid(CEIL, CEIL, DCEIL);
+      case3fid(FLR, FLR, DFLR);
+      case3fid(ROUND, ROUND, DROUND);
 
       default: break;
    }