summaryrefslogtreecommitdiff
path: root/cros_gralloc
diff options
context:
space:
mode:
authorDavid Stevens <stevensd@chromium.org>2021-02-26 16:00:54 +0900
committerCommit Bot <commit-bot@chromium.org>2021-03-04 11:28:33 +0000
commit8d62cdf032ce2e63d0524702837bdd7af6c62d02 (patch)
treece06e90c249faed1f767cec947416d67a2433124 /cros_gralloc
parent7129e5366357cac95d95bf1db4514ede9d1d2b7f (diff)
downloadminigbm-8d62cdf032ce2e63d0524702837bdd7af6c62d02.tar.gz
cros_gralloc: allow tiled NV12 buffers
BUG=b:79682290 TEST=Verify that YouTube videos display correctly Change-Id: Icf16e94320b6685936374a8fdf191895b57fac65 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2721388 Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: David Stevens <stevensd@chromium.org> Commit-Queue: David Stevens <stevensd@chromium.org>
Diffstat (limited to 'cros_gralloc')
-rw-r--r--cros_gralloc/cros_gralloc_driver.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/cros_gralloc/cros_gralloc_driver.cc b/cros_gralloc/cros_gralloc_driver.cc
index bf86b47..107f153 100644
--- a/cros_gralloc/cros_gralloc_driver.cc
+++ b/cros_gralloc/cros_gralloc_driver.cc
@@ -170,14 +170,6 @@ int32_t cros_gralloc_driver::allocate(const struct cros_gralloc_buffer_descripto
resolved_format = drv_resolve_format(drv_, descriptor->drm_format, descriptor->use_flags);
use_flags = descriptor->use_flags;
- /*
- * TODO(b/79682290): ARC++ assumes NV12 is always linear and doesn't
- * send modifiers across Wayland protocol, so we or in the
- * BO_USE_LINEAR flag here. We need to fix ARC++ to allocate and work
- * with tiled buffers.
- */
- if (resolved_format == DRM_FORMAT_NV12)
- use_flags |= BO_USE_LINEAR;
/*
* This unmask is a backup in the case DRM_FORMAT_FLEX_IMPLEMENTATION_DEFINED is resolved