Mesa (master): nir: Remove fsin_reduced/fcos_reduced.

Matt Turner mattst88 at kemper.freedesktop.org
Mon Apr 6 17:20:40 UTC 2015


Module: Mesa
Branch: master
Commit: d131630c0825f199768965c504b6fa1e593d03d5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d131630c0825f199768965c504b6fa1e593d03d5

Author: Matt Turner <mattst88 at gmail.com>
Date:   Wed Apr  1 18:25:02 2015 -0700

nir: Remove fsin_reduced/fcos_reduced.

Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

---

 src/glsl/nir/nir_opcodes.py              |    2 --
 src/mesa/drivers/dri/i965/brw_fs_nir.cpp |    2 --
 2 files changed, 4 deletions(-)

diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py
index f96424f..264806f 100644
--- a/src/glsl/nir/nir_opcodes.py
+++ b/src/glsl/nir/nir_opcodes.py
@@ -191,8 +191,6 @@ unop("fround_even", tfloat, "_mesa_roundevenf(src0)")
 
 unop("fsin", tfloat, "sinf(src0)")
 unop("fcos", tfloat, "cosf(src0)")
-unop("fsin_reduced", tfloat, "sinf(src0)")
-unop("fcos_reduced", tfloat, "cosf(src0)")
 
 
 # Partial derivatives.
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index e9692aa..a874337 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -895,13 +895,11 @@ fs_visitor::nir_emit_alu(nir_alu_instr *instr)
       unreachable("not reached: should be handled by ir_explog_to_explog2");
 
    case nir_op_fsin:
-   case nir_op_fsin_reduced:
       inst = emit_math(SHADER_OPCODE_SIN, result, op[0]);
       inst->saturate = instr->dest.saturate;
       break;
 
    case nir_op_fcos:
-   case nir_op_fcos_reduced:
       inst = emit_math(SHADER_OPCODE_COS, result, op[0]);
       inst->saturate = instr->dest.saturate;
       break;




More information about the mesa-commit mailing list