aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tilcdc/tilcdc_drv.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <[email protected]>2019-11-07 16:30:48 +0100
committerPatrik Jakobsson <[email protected]>2019-11-19 21:41:49 +0100
commitfd1a5e521c3c083bb43ea731aae0f8b95f12b9bd (patch)
tree398e69dcbf4bb616f378eb1399bec3559491425c /drivers/gpu/drm/tilcdc/tilcdc_drv.c
parentf597c2089da4dd55133546b1255493579a295bff (diff)
drm/gma500: Fixup fbdev stolen size usage evaluation
psbfb_probe performs an evaluation of the required size from the stolen GTT memory, but gets it wrong in two distinct ways: - The resulting size must be page-size-aligned; - The size to allocate is derived from the surface dimensions, not the fb dimensions. When two connectors are connected with different modes, the smallest will be stored in the fb dimensions, but the size that needs to be allocated must match the largest (surface) dimensions. This is what is used in the actual allocation code. Fix this by correcting the evaluation to conform to the two points above. It allows correctly switching to 16bpp when one connector is e.g. 1920x1080 and the other is 1024x768. Signed-off-by: Paul Kocialkowski <[email protected]> Signed-off-by: Patrik Jakobsson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_drv.c')
0 files changed, 0 insertions, 0 deletions