Commit 12dec200 authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

panfrost: Fix stack shift calculation

Fixes flickering in Neverwinter Nights.

Closes: #3789
Fixes: e6152091

 ("panfrost: Use canonical characterization of tls_size")
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <>
Part-of: <!7613>
parent 24c553c9
......@@ -67,7 +67,7 @@ unsigned
panfrost_get_stack_shift(unsigned stack_size)
if (stack_size)
return util_logbase2(DIV_ROUND_UP(stack_size, 16));
return util_logbase2_ceil(DIV_ROUND_UP(stack_size, 16));
return 0;
Supports Markdown
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