[PATCH] drm: fixed bug regarding minimal buffer size

Kevin Murphy kemurphy.cmu at gmail.com
Wed May 9 12:43:35 PDT 2012


If we ask for a buffer of size 0 when testing for 32bpp framebuffer
support, we trigger a condition in the kernel that will cause the
test to fail, ultimately causing a fallback to the framebuffer
driver.

See http://lxr.free-electrons.com/source/drivers/gpu/drm/ttm/ttm_bo.c#L1193
for the block of code that gets triggered.  Compiz ran into a similar
issue at some point and they just forced each minimum dimension to 2
if it detected it was about to ask for a 0, so that's the approach I
took.

Thanks,
Kevin Murphy


More information about the plymouth mailing list