From d7c0a08bc576deb07df6c3f91f393ca8edd0c4bf Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 9 Dec 2014 22:00:58 +0200 Subject: modetest: Allocate dumb buffers with the correct bpp The modetest application uses libkms to allocate dumb buffers, leading to overallocation due to the hardcoded 32 bpp value. This can even cause failures in drivers when the resulting pitch is too large for the hardware to handle and gets rejected by the driver when creating the frame buffer. Fix this by computing the required bpp value and allocating dumb buffers directly without going through libkms. Signed-off-by: Laurent Pinchart --- tests/modetest/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/modetest/Android.mk') diff --git a/tests/modetest/Android.mk b/tests/modetest/Android.mk index 0a32b5fa..aee35649 100644 --- a/tests/modetest/Android.mk +++ b/tests/modetest/Android.mk @@ -9,6 +9,6 @@ LOCAL_MODULE := modetest LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libdrm -LOCAL_SHARED_LIBRARIES := libdrm libkms +LOCAL_SHARED_LIBRARIES := libdrm include $(BUILD_EXECUTABLE) -- cgit v1.2.3