Skip to content
Commit 47ac26f8 authored by Lepton Wu's avatar Lepton Wu Committed by Dylan Baker
Browse files

virgl: Fix flush in virgl_encoder_inline_write.



The current code is buggy: if there are only 12 dwords left in cbuf,
we emit a zero data length command which will be rejected by virglrenderer.
Fix it by calling flush in this case.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
(cherry picked from commit 04e278f7)
parent 92e544d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment