nouveau/mme: Don't dereference an empty vector

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30033>
This commit is contained in:
Faith Ekstrand 2024-07-05 14:28:02 -05:00 committed by Marge Bot
parent 60c3c272ec
commit 7173ae1130

View file

@ -50,7 +50,7 @@ mme_tu104_sim_test::test_macro(const mme_builder *b,
.size = DATA_BO_SIZE,
};
mme_tu104_sim(insts.size(), &insts[0],
params.size(), &params[0],
params.size(), params.size() ? &params[0] : NULL,
1, &sim_mem);
/* Now run the macro on the GPU */