30 Commits

Author SHA1 Message Date
Saurabh Shah
727d46f18b Use reserved[4] field for storing fps
Use reserved[4] field for storing fps, since reserved[3]
is used by HDMI

Change-Id: I4cc94eb0359b71bf15ae025e30fdad3fc96ae1fd
2011-06-23 15:35:05 -06:00
Omprakash Dhyade
2a93efd233 hardware/msm7k: Add an api to copy bypass buffer.
Add an api to copy bypass buffer. De-couple
comp. bypass functions from HDMI feature defines.

Change-Id: I743a80518c29a04bcf61e48d189b07636026afc7
CRs-fixed: 288992
2011-06-17 12:12:17 -07:00
Saurabh Shah
16722a86d7 Remove FPS calculations from userspace.
The FPS is stored in reserved[3] field of fb_var_screeninfo
structure. Read directly from this field.

Change-Id: I052dc3c20a8a38995881cd4d743c13d9522f9246
CRs-fixed: 283750
2011-06-10 21:30:17 -06:00
Naseer Ahmed
16e6f7da94 Revert "libgralloc-qsd8k: Align the framebuffer only for GPU or C2D composition"
This reverts commit 80df10595720594cf661b8812507ba75b2bafd1e.

Revert "libgralloc-qsd8k: Set the framebuffer offsets correctly"

This reverts commit 09a31858f42978c29e0c7014713748d413b3c587.

It is no longer a requirement for GPU to be 4k aligned, hence
reverting these 2 changes.

Change-Id: I39e6f6324353a3c19bfdf523f8862408ef9a4093
2011-06-10 12:29:15 +05:30
Saurabh Shah
ff8d4b30ae Implement ActionSafe ratios in OverlayOrigRes class
Implement ActionSafe ratios in OverlayOrigRes class
Change class internal design.

Change-Id: I42a7f9b00dfd3e760b2162a1f7f36d679440363f
CRs-fixed: 285165
2011-06-06 18:18:01 -07:00
Saurabh Shah
dd6c395b86 Fix Tearing, stuttering for Original resolution surface.
Design now uses OverlayUI class. Flow goes through gralloc
to avoid race conditions with mirroring, when video is
played via Gallery.

Change-Id: If18c1f84a99aae38a6a4a20da7dff804ae05b8be
CRs-fixed: 285186, 286930, 286596
2011-05-26 13:28:00 -07:00
Saurabh Shah
9c9680462d Simplify call flow for action safe parameters.
Observed overscan in case of videos and UI
This change fixes all the paths and eliminates overscan
Adds a class to save user specified action safe parameters

Change-Id: I8c65b1142b086f5ff0d568c5f5c87fcde9642d5b
CRs-fixed: 285165
2011-05-17 04:34:14 -06:00
Naomi Luis
f7856412a3 libgralloc-qsd8k: Align the framebuffer only for GPU or C2D composition
Change-Id: Iba334eb14d5af3eadf88534faaa86d2ae613f037
2011-05-04 13:13:54 -07:00
Naomi Luis
32a41ee5dc libgralloc-qsd8k: Set the framebuffer offsets correctly
The offsets for the framebuffer needs to start at a 4K aligned address.
Calculate the additional delta for the yoffset, the virtual address for flipping
as well as the total framebuffer size required to achieve this

Change-Id: Idfd70be10a24ac464ec820494b66d506a03a983b
CRs-fixed: 273888
2011-04-28 13:03:56 -07:00
Arun Kumar K.R
b88364eaa3 hardware/msm7k: Remove ioctl call from getOrientation
- The ioctl call from getOrientation is removed.
- In gralloc use getOrientation instead of storing the
  orientation.

Change-Id: Idb08568ff5d46ce99e0a9a8c6f492b90bb666f0c
2011-04-08 05:17:46 -06:00
Omprakash Dhyade
218ece992e gralloc-qsd8k: Add comp. bypass feature
Add comp. bypass post API. This api uses OverlayUI
class to post application surface to MDP.

Change-Id: I2b3d4caeee2681a189059dcac4ead85d17722379
2011-04-07 16:30:53 -07:00
Arun Kumar K.R
d46e0e1b44 liboverlay: Always use rotator for UI mirroring on HDMI
- Use rotator buffer for UI mirroring on HDMI
- Avoid ioctl calls on getPosition

CRs-fixed: 278858
Change-Id: Id390e2b85fe939d8388ed17f5f9c7fcd30499755
2011-04-04 12:46:52 -07:00
Harshad Bhutada
f87ee7db28 libgralloc-qsd8k: disable framebuffer state related error reporting when swapinterval set to 0
Change-Id: I916408280dc155e4448de9303272dfbd5dc1c423
2011-03-25 13:55:37 -06:00
Arun Kumar K.R
8897354c61 gralloc: Avoid multiple signals from videoOverlayStarted
Signal hdmi_ui_loop from fb_videoOverlayStarted only if there is a
state change

CRs-fixed: 279095
Change-Id: I43bc87b4d78fae139bcfc0318ad8b271a6a325c7
2011-03-16 15:01:34 -07:00
Arun Kumar K.R
e9a3d5793c gralloc: Avoid unnecessary overlay set calls for HDMI
Call setPosition and setParameter for HDMI only when there is a
change in the rotation or position.

Change-Id: Id11b58408607c2f9799bb332c30d52f52957ec4e
2011-03-10 16:39:29 -08:00
Harshad Bhutada
d372f2aa4c libgralloc-qsd8k: Add support for triple buffering
Change-Id: I15c0a2c76f4ee1a87a8b2be369c24ab8d4c38101
2011-02-07 17:53:26 -07:00
Saurabh Shah
70c9b67847 hardware/msm7k: Fix aspect ratio in HDMI UI
For portrait mode: Actionsafe width depends on actionsafe
height, thus maintaining the  aspect ratio.
User entered value for actionsafe width doesn't matter.

For landscape mode: Both, user entered actionsafe width
and height matter. Aspect ratio may change, in an attempt to fill
up the TV screen till the edges to avoid overscan/underscan.

Picks actionsafe rectangle as the final rectangle.

Change-Id: I4e16a2d57978d3443283e9311c2efdc6494f8a94
CRs-fixed: 271567
2011-01-19 13:57:40 -08:00
Saurabh Shah
de03d0ec9f hardware/msm7k: Fix position, aspect ratio on HDMI UI
Fix position, aspect ratio of HDMI UI when the
primary panel type is MIPI, 8660 Panel or 7x30 Panel

Change-Id: I8e9824520317e3facb4ef25bc25dd9b1de60b4ce
CRs-fixed: 263690, 269433
2011-01-04 09:18:06 -08:00
Naomi Luis
68827e74ed libgralloc-qsd8k: Close the gralloc module
Close the gralloc module in the fb_device_open api.

CRs-fixed: 269234

Change-Id: Ifcb1909e0cf8bf40f2b505716cb624531309556b
2011-01-03 12:54:05 -08:00
Naomi Luis
736092e772 libgralloc-qsd8k: Update the gralloc HAL for Gingerbread
Update the gralloc HAL to match commit:
    commit 4d3c9ca6fabf2b0111ef6b567df7d244e124b9c2
    Author: Arun Kumar K.R <akkr@codeaurora.org>
    Date:   Fri Dec 17 13:14:58 2010 -0800

        libgralloc-qsd8k: Add support for non-aligned width on HDMI

        While creating overlay channel for HDMI consider the aligned
        width and set the crop rectangle to the actual width and height.

Change-Id: I36183bf1fa68e5c8ed80f1efbb5c535a060e0db0
2010-12-20 16:36:01 +05:30
Dima Zavin
42230c70df gralloc-qsd8k: If using gpu composition, request rgba8888 instead of rgbx8888
Change-Id: Ic41d4854d6acbc21c85a03e82bd63af234273886
Signed-off-by: Dima Zavin <dima@android.com>
2009-12-04 20:22:41 -08:00
Dima Zavin
deee91ac9f gralloc-qsd8k: Change composition_complete being a glfinish from stopship to a TODO
We really need to fix this eventually, but it's not a ship blocker.

Change-Id: I35f66988e7adba13e47c2a86e13a7425cc5aada3
Signed-off-by: Dima Zavin <dima@android.com>
2009-12-04 15:41:54 -08:00
Dima Zavin
427b3ce634 libgralloc-qsd8k: Do not use the physical address of surfaces/framebuffer
The GPU now correctly maps everything throug hthe MMU so physical addresses
are no longer needed.

Change-Id: Id16a690f63d7141c8ee6694b246b1955f450b8ed
Signed-off-by: Dima Zavin <dima@android.com>
2009-12-02 21:15:33 -08:00
Mathias Agopian
c73e6963a9 part of fix [2186418] switch qsd8k devices to 24-bits framebuffer
Add support for 32 bits framebuffers
2009-11-23 23:19:54 -08:00
Dima Zavin
373ca4b021 gralloc-qsd8k: Call glFinish on composition complete.
Change-Id: I09c8287bcaf89f3f8bcaa4108631641a0fcc397b
Signed-off-by: Dima Zavin <dima@android.com>
2009-10-08 01:13:51 -07:00
Mathias Agopian
a6ea6c0955 reenabled partial updates in msm7k/qsd8k 2009-08-19 13:45:02 -07:00
Mathias Agopian
2c911dc5b8 make gralloc-qsd8k closer to the generic gralloc so it's easier to maintain 2009-08-19 13:14:55 -07:00
Dima Zavin
3e49b7a81f gralloc8k: make sure to set the physical address of the framebuffer
Signed-off-by: Dima Zavin <dima@android.com>
2009-08-13 16:43:21 -07:00
Dima Zavin
8b9940f048 gralloc8k: fix partial updates, some cleanups
Signed-off-by: Dima Zavin <dima@android.com>
2009-08-13 16:43:19 -07:00
Dima Zavin
463408155c qsd8k: add gralloc for 8k
Signed-off-by: Dima Zavin <dima@android.com>
2009-08-13 16:43:18 -07:00