i965/fs/nir: Use emit_math for nir_op_fpow
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 27 Feb 2015 22:17:50 +0000 (14:17 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 28 Feb 2015 02:47:04 +0000 (18:47 -0800)
It appears that all the other instructions that need it already use it.
This one just got missed.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Cc: "10.5" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 388e63601611d9fd7e33118f36bb9db64b0bab7a..f15d82f94d16c21736cdcdd45a938f47775aaf50 100644 (file)
@@ -1090,7 +1090,7 @@ fs_visitor::nir_emit_alu(nir_alu_instr *instr)
       break;
 
    case nir_op_fpow:
-      inst = emit(SHADER_OPCODE_POW, result, op[0], op[1]);
+      inst = emit_math(SHADER_OPCODE_POW, result, op[0], op[1]);
       inst->saturate = instr->dest.saturate;
       break;