summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis2019-06-11 16:12:13 -0500
committerPraneeth Bajjuri2019-06-25 17:50:46 -0500
commit7755584e40779fb76154e3f29685ecc7913dc5a9 (patch)
tree4e6a0862d2f48157c955dc5a90d03cbd41a553a9
parent89abff5cd123dc6af7dc5619bb96b50f0410eab9 (diff)
downloadhardware-ti-am57x-7755584e40779fb76154e3f29685ecc7913dc5a9.tar.gz
hardware-ti-am57x-7755584e40779fb76154e3f29685ecc7913dc5a9.tar.xz
hardware-ti-am57x-7755584e40779fb76154e3f29685ecc7913dc5a9.zip
libhwcomposer: Do not reassign first plane pitch for NV12 layer
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 0421050..17ff42e 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: