summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2015-07-30 00:20:40 -0700
committerSamuel Iglesias Gonsálvez <[email protected]>2016-05-10 11:25:08 +0200
commita644b0939dd8284bca25042bccd2439c173dd7d7 (patch)
tree73984a5d55e783eaffd4d08c0cc7ded75d7c3ec7 /src
parent9e1b3ea199c3bd01fe89e6ab3eee4cae3da92264 (diff)
i965/fs: add support for f2d and d2f
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 3772ff623bb..24b37822d31 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -723,6 +723,8 @@ fs_visitor::nir_emit_alu(const fs_builder &bld, nir_alu_instr *instr)
if (optimize_extract_to_float(instr, result))
return;
+ case nir_op_f2d:
+ case nir_op_d2f:
inst = bld.MOV(result, op[0]);
inst->saturate = instr->dest.saturate;
break;