pan/bi: Handle SEL with vec3 16-bit

Otherwise we end up with a missing argument.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5307>
This commit is contained in:
Alyssa Rosenzweig 2020-06-02 19:27:47 -04:00 committed by Marge Bot
parent afc18c62d7
commit 9ed1ae4724

View file

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