Mesa (master): intel/compiler: CSEL can do saturate

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 17 15:32:59 UTC 2020


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

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Tue Oct 29 16:56:39 2019 -0700

intel/compiler: CSEL can do saturate

Reviewed-by: Matt Turner <mattst88 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4582>

---

 src/intel/compiler/brw_shader.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/compiler/brw_shader.cpp b/src/intel/compiler/brw_shader.cpp
index 5ae0f9080ad..b0a75f067a6 100644
--- a/src/intel/compiler/brw_shader.cpp
+++ b/src/intel/compiler/brw_shader.cpp
@@ -941,6 +941,7 @@ backend_instruction::can_do_saturate() const
    case BRW_OPCODE_ADD:
    case BRW_OPCODE_ASR:
    case BRW_OPCODE_AVG:
+   case BRW_OPCODE_CSEL:
    case BRW_OPCODE_DP2:
    case BRW_OPCODE_DP3:
    case BRW_OPCODE_DP4:



More information about the mesa-commit mailing list