OSDN Git Service

minigbm: cros_gralloc: make HW_FB a no-op
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 15 Mar 2017 22:14:56 +0000 (15:14 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 16 Mar 2017 18:25:47 +0000 (11:25 -0700)
GRALLOC_USAGE_HW_FB is a legacy flag, and doesn't make
sense in our setup.

BUG=chromium:616275
TEST=compiles

Change-Id: If39634a12ad325b4d28afbd3db335e6ee9e287f6
Reviewed-on: https://chromium-review.googlesource.com/455282
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
cros_gralloc/cros_gralloc_helpers.cc

index 6a6bc2c..0d38e16 100644 (file)
@@ -35,7 +35,7 @@ uint64_t cros_gralloc_convert_flags(int flags)
        /* HWC wants to use display hardware, but can defer to OpenGL. */
                usage |= BO_USE_SCANOUT | BO_USE_RENDERING;
        if (flags & GRALLOC_USAGE_HW_FB)
-               usage |= BO_USE_SCANOUT | BO_USE_RENDERING;
+               usage |= BO_USE_NONE;
        if (flags & GRALLOC_USAGE_EXTERNAL_DISP)
        /* We're ignoring this flag until we decide what to with display link */
                usage |= BO_USE_NONE;