intel/compiler: CSEL can do saturate
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 29 Oct 2019 23:56:39 +0000 (16:56 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 17 Apr 2020 15:21:46 +0000 (08:21 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4582>

src/intel/compiler/brw_shader.cpp

index 5ae0f9080adee8080279b01825c9aaea2da9748d..b0a75f067a6dfe60ab75c84b3c46e3b284f86440 100644 (file)
@@ -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: