Mesa (master): lima/ppir: add missing handling of min/max ops for vec4 add slot

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 6 04:41:24 UTC 2019


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

Author: Vasily Khoruzhick <anarsoul at gmail.com>
Date:   Tue Jun  4 08:56:38 2019 -0700

lima/ppir: add missing handling of min/max ops for vec4 add slot

Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
Reviewed-by: Qiang Yu <yuq825 at gmail.com>

---

 src/gallium/drivers/lima/ir/pp/codegen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/drivers/lima/ir/pp/codegen.c b/src/gallium/drivers/lima/ir/pp/codegen.c
index 73763218d4b..2501ddccc6f 100644
--- a/src/gallium/drivers/lima/ir/pp/codegen.c
+++ b/src/gallium/drivers/lima/ir/pp/codegen.c
@@ -328,6 +328,12 @@ static void ppir_codegen_encode_vec_add(ppir_node *node, void *code)
    case ppir_op_select:
       f->op = ppir_codegen_vec4_acc_op_sel;
       break;
+   case ppir_op_max:
+      f->op = ppir_codegen_vec4_acc_op_max;
+      break;
+   case ppir_op_min:
+      f->op = ppir_codegen_vec4_acc_op_min;
+      break;
    default:
       break;
    }




More information about the mesa-commit mailing list