[PATCH] drm: omapdrm: reduce clang stack usage
Arnd Bergmann
arnd at arndb.de
Thu Jun 12 15:19:56 UTC 2025
On Thu, Jun 12, 2025, at 16:37, Tomi Valkeinen wrote:
> On 12/06/2025 15:40, Arnd Bergmann wrote:
> static u16 DISPC_OVL_BASE(enum omap_plane_id plane)
> {
> static const u16 bases[] = {0x0080, 0x00BC, 0x014C, 0x0300, 0x0500};
> return bases[plane];
> }
>
> In any case, I'll apply this with a small comment.
Thanks!
I've also opened an issue against llvm at
https://github.com/llvm/llvm-project/issues/143908
Hopefully we can pinpoint something in llvm that can be fixed
to improve similar issues in other code.
It does seem fairly obscure, as even changing the code
slightly seems to completely avoid the problem, e.g. if the
one of the loops grows too big to be unrolled.
Arnd
More information about the dri-devel
mailing list