Commit deecc0e1 authored by Karol Herbst's avatar Karol Herbst 🐧
Browse files

nouveau: skip kicking empty push buffers

parent b222a9ae
Pipeline #372435 waiting for manual action with stages
in 8 seconds
......@@ -75,6 +75,9 @@ PUSH_DATAf(struct nouveau_pushbuf *push, float f)
static inline void
PUSH_KICK(struct nouveau_pushbuf *push)
{
if (unlikely(push->cur == push->end))
return;
struct nouveau_pushbuf_priv *ppush = push->user_priv;
simple_mtx_lock(&ppush->screen->fence.lock);
nouveau_pushbuf_kick(push, push->channel);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment