summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2012-06-13 12:26:54 +0800
committerAndy Green <andy.green@linaro.org>2012-06-13 12:26:54 +0800
commita165150561e560a59adb2a03d6a3beec55eea8ef (patch)
tree75bd892238b494b30c80e6402c2e41b6cd87a44d
parent950455ab95efb9f697a287259d23fd30bc7b0a02 (diff)
downloadpanda-linaro-tilt-android-3.3.tar.gz
omapdrm: android: (hack) Enable double bufferinglinaro-tilt-android-3.3
Adapated by AG to only overallocate if CONFIG_ANDROID Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org> Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--drivers/staging/omapdrm/omap_fbdev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/omapdrm/omap_fbdev.c b/drivers/staging/omapdrm/omap_fbdev.c
index 11acd4c35ed..95244660276 100644
--- a/drivers/staging/omapdrm/omap_fbdev.c
+++ b/drivers/staging/omapdrm/omap_fbdev.c
@@ -23,7 +23,7 @@
#include "drm_fb_helper.h"
MODULE_PARM_DESC(ywrap, "Enable ywrap scrolling (omap44xx and later, default 'y')");
-static bool ywrap_enabled = true;
+static bool ywrap_enabled = false;
module_param_named(ywrap, ywrap_enabled, bool, 0644);
/*
@@ -177,7 +177,11 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
/* allocate backing bo */
gsize = (union omap_gem_size){
+#ifdef CONFIG_ANDROID
+ .bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height * 2),
+#else
.bytes = PAGE_ALIGN(mode_cmd.pitches[0] * mode_cmd.height),
+#endif
};
DBG("allocating %d bytes for fb %d", gsize.bytes, dev->primary->index);
fbdev->bo = omap_gem_new(dev, gsize, OMAP_BO_SCANOUT | OMAP_BO_WC);