summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis2018-09-26 16:51:51 -0500
committerAndrew F. Davis2018-09-26 16:51:51 -0500
commit2de6f83e975ae02e51d8cd087b643a99063b2e99 (patch)
tree7e3aa25528a5d5cf7c1e259b3d66a3306d2f5356
parentb9687c951b4da2a80237fadf07441e5246d1dae8 (diff)
downloadhardware-ti-am65x-d-oreo-mr1-core-release.tar.gz
hardware-ti-am65x-d-oreo-mr1-core-release.tar.xz
hardware-ti-am65x-d-oreo-mr1-core-release.zip
libhwcomposer: Do not reassign first plane pitch for NV12 layerd-oreo-mr1-core-release
NV12 uses 8bit pixels, this means the plane pitch is already correct and does not need reassigned. Signed-off-by: Andrew F. Davis <afd@ti.com>
-rw-r--r--libhwcomposer/drmfb.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/libhwcomposer/drmfb.cpp b/libhwcomposer/drmfb.cpp
index 04c41dd..c0bcc07 100644
--- a/libhwcomposer/drmfb.cpp
+++ b/libhwcomposer/drmfb.cpp
@@ -51,10 +51,7 @@ DRMFramebuffer::DRMFramebuffer(int drm_fd, buffer_handle_t handle, bool is_overl
51 switch (this->format) { 51 switch (this->format) {
52 case DRM_FORMAT_NV12: 52 case DRM_FORMAT_NV12:
53 this->bo[1] = gem_handle; 53 this->bo[1] = gem_handle;
54
55 this->pitches[0] = ALIGN(img_hnd->iWidth, HW_ALIGN);
56 this->pitches[1] = this->pitches[0]; 54 this->pitches[1] = this->pitches[0];
57
58 this->offsets[1] = this->pitches[0] * img_hnd->iHeight; 55 this->offsets[1] = this->pitches[0] * img_hnd->iHeight;
59 break; 56 break;
60 case DRM_FORMAT_ARGB8888: 57 case DRM_FORMAT_ARGB8888: