66017ae4a6
The only reason why this did not crash until now is because NVKMD_ENGINE_3D and NVKMD_ENGINE_COMPUTE are always set in the only queue we returned. With the addition of a video queue, where no state must be submitted, the logic would try to push an empty push_buffer. This is wrong and the first place where it fails is when it tries to allocate a BO of size 0 for the push data. Reviewed-by: Mel Henning <mhenning@darkrefraction.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36651>