Mesa (master): pan/bi: Handle SEL with vec3 16-bit

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 3 17:45:45 UTC 2020


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

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Tue Jun  2 19:27:47 2020 -0400

pan/bi: Handle SEL with vec3 16-bit

Otherwise we end up with a missing argument.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5307>

---

 src/panfrost/bifrost/bi_lower_combine.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/panfrost/bifrost/bi_lower_combine.c b/src/panfrost/bifrost/bi_lower_combine.c
index c2d9c51ffef..6eb6da7699b 100644
--- a/src/panfrost/bifrost/bi_lower_combine.c
+++ b/src/panfrost/bifrost/bi_lower_combine.c
@@ -77,6 +77,10 @@ bi_combine_sel16(bi_context *ctx, bi_instruction *parent, unsigned comp, unsigne
                 } }
         };
 
+        /* In case we have a combine from a vec3 */
+        if (!sel.src[1])
+                sel.src[1] = BIR_INDEX_ZERO;
+
         bi_emit_before(ctx, parent, sel);
 }
 



More information about the mesa-commit mailing list