Skip to content

kms/impl-device/atomic: Fix stack overflow

Sebastian Wick requested to merge swick/mutter:wip/gamma-stack-overflow into main

Intel has started to advertise big gamma LUT sizes on some hardware because the hardware supports segmented LUTs. This means they have a lot more precision at certain segments then others. The uAPI can't expose this functionality meaningfully so they chose to expose a huge number of TAPs to sample from to their segmented LUT.

This increase in uAPI LUT size resulted in stack overflows because we allocated the LUT on the stack. This commit moves it to the heap instead.

Closes: #3064 (closed)

Merge request reports