gralloc: Back out hacks now that Mali-derping is fixed

Two reverts squashed, due to Mali-derping being fixed
in frameworks/native:

Revert "gralloc: avoid using framebuffer"

This reverts commit 5125ccc5b6.

Revert "gralloc:  Send first 2 FB buffers to carveout and next to UMP"

This reverts commit d288deb284.

Change-Id: I530dc255b7543e03d0e8277d3ad12ed11d6649ab
tirimbino
Andrew Dodd 12 years ago
parent 6aab55a059
commit 19e59a77d9
  1. 13
      exynos4/hal/libgralloc_ump/alloc_device.cpp

@ -445,21 +445,10 @@ static int alloc_device_alloc(alloc_device_t* dev, int w, int h, int format,
} }
int err; int err;
private_module_t* m = reinterpret_cast<private_module_t*>(dev->common.module);
const uint32_t bufferMask = m->bufferMask;
const uint32_t numBuffers = m->numBuffers;
pthread_mutex_lock(&l_surface); pthread_mutex_lock(&l_surface);
if (usage & GRALLOC_USAGE_HW_FB)
// Remove the hardware framebuffer flag to avoid lags
usage = usage & ~GRALLOC_USAGE_HW_FB;
/*
* Using the framebuffer causes lags, so don't use it at all ;-)
*
if (usage & GRALLOC_USAGE_HW_FB && (bufferMask < ((1LU << numBuffers) - 1)))
err = gralloc_alloc_framebuffer(dev, size, usage, pHandle, w, h, format, 32); err = gralloc_alloc_framebuffer(dev, size, usage, pHandle, w, h, format, 32);
else else
*/
err = gralloc_alloc_buffer(dev, size, usage, pHandle, w, h, format, 0, (int)stride_raw, (int)stride); err = gralloc_alloc_buffer(dev, size, usage, pHandle, w, h, format, 0, (int)stride_raw, (int)stride);
pthread_mutex_unlock(&l_surface); pthread_mutex_unlock(&l_surface);

Loading…
Cancel
Save