Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4eb92fc0 authored by Sultan Alsawaf's avatar Sultan Alsawaf Committed by Razziell
Browse files

msm: kgsl: Avoid dynamically allocating small command buffers



Most command buffers here are rather small (fewer than 256 words); it's
a waste of time to dynamically allocate memory for such a small buffer
when it could easily fit on the stack.

Conditionally using an on-stack command buffer when the size is small
enough eliminates the need for using a dynamically-allocated buffer most
of the time, reducing GPU command submission latency.

Signed-off-by: default avatarSultan Alsawaf <sultan@kerneltoast.com>
parent a8699724
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