summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-07-25 17:12:42 -0400
committerIlia Mirkin <[email protected]>2015-02-19 19:32:55 -0500
commite556bfc8ff7abd51eacb5a1810964e3d28123b8c (patch)
tree864a0cd96328ba79da7bfe298721905105293ff5 /src/mesa/state_tracker
parent924ee3f408cd2aef87d868b229e3e0b93ca0e086 (diff)
st/mesa: add support for new double opcodes
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index e3f79edf08d..4d8ce11eeea 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;
}