[Mesa-dev] [PATCH 4/6] st/mesa: add support for new double opcodes
Ilia Mirkin
imirkin at alum.mit.edu
Thu Feb 19 15:52:23 PST 2015
Not having SQRT is assumed to tacitly mean that RSQ is available.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index f57e76b..63b779d 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -849,7 +849,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);
@@ -862,6 +862,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;
}
--
2.0.5
More information about the mesa-dev
mailing list