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); }