OSDN Git Service

minigbm: remove BO_USE_RENDERING from certain formats
[android-x86/external-minigbm.git] / cros_gralloc / cros_gralloc_helpers.cc
index 280e5f8..6504b10 100644 (file)
@@ -33,7 +33,7 @@ uint64_t cros_gralloc_convert_flags(int flags)
                usage |= BO_USE_RENDERING;
        if (flags & GRALLOC_USAGE_HW_COMPOSER)
                /* HWC wants to use display hardware, but can defer to OpenGL. */
-               usage |= BO_USE_SCANOUT | BO_USE_RENDERING;
+               usage |= BO_USE_SCANOUT | BO_USE_TEXTURE;
        if (flags & GRALLOC_USAGE_HW_FB)
                usage |= BO_USE_NONE;
        if (flags & GRALLOC_USAGE_EXTERNAL_DISP)