nouveau/mme: Allow ZERO as the destinatio nof mme_load_to

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand 2023-01-30 20:12:00 -06:00 committed by Marge Bot
parent 052bbd65c9
commit c88e10dc2f

View file

@ -311,7 +311,8 @@ mme_tu104_alu64_to(struct mme_builder *b,
void
mme_tu104_load_to(struct mme_builder *b, struct mme_value dst)
{
assert(dst.type == MME_VALUE_TYPE_REG);
assert(dst.type == MME_VALUE_TYPE_REG ||
dst.type == MME_VALUE_TYPE_ZERO);
struct mme_tu104_alu alu = {
.dst = mme_value_alu_reg(dst),