mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
panfrost: Fix stack shift calculation
Fixes flickering in Neverwinter Nights. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3789 Fixes:e6152091ca("panfrost: Use canonical characterization of tls_size") Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7613> (cherry picked from commit12dec2004e)
This commit is contained in:
parent
b37d613da5
commit
4de41dea58
2 changed files with 2 additions and 2 deletions
|
|
@ -1030,7 +1030,7 @@
|
|||
"description": "panfrost: Fix stack shift calculation",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "e6152091ca99c3d8491ac48baa1f301da6f4a4c3"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue