From: Ilia Mirkin Date: Fri, 25 Jul 2014 21:12:42 +0000 (-0400) Subject: st/mesa: add support for new double opcodes X-Git-Tag: upstream/17.1.0~20637 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e556bfc8ff7abd51eacb5a1810964e3d28123b8c;p=platform%2Fupstream%2Fmesa.git st/mesa: add support for new double opcodes Signed-off-by: Ilia Mirkin Reviewed-by: Dave Airlie --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index e3f79ed..4d8ce11 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -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; }