Commit Graph

14 Commits

Author SHA1 Message Date
Andrew Sutherland
7493d7c6cc libqcomui: convert *FormatInHW to a switch and ifdef it
caf removed this hack when the mdp driver was updated
for the YAMATO format. We dont have that yet so keep it around
but make it optional.
depends on BOARD_ADRENO_DECIDE_TEXTURE_TARGET
enable with BOARD_ADRENO_AVOID_EXTERNAL_TEXTURE:= true

Change-Id: I99b9a60d76d4515682db9717e3cb68bc17aff800
2012-06-04 22:08:52 -05:00
Andrew Sutherland
3c6ccbef6d qcomui: ifdef decideTextureTarget
caf removed the decideTextureTarget function, however it is still useful for
old devices (8x50)

Change-Id: I8d5c7a821b1f2f75819cbcd6d7c65e17f1c1b0b1
2012-06-03 02:54:58 -05:00
Andrew Sutherland
d0ec96adaa qcomui: remove BYPASS_EGLIMAGE
this should have been removed when adding isGPUSupportedFormatInHW

Change-Id: I8dd60fb7837a7c3075bee0562355f9c399e1f6aa
2012-06-03 02:54:58 -05:00
Sudhir Sharma
7d978483ed libhwcomposer: Implement idletimeout fallback for MDP composition .
Background: On MDP compositon, MDP keeps reading contents from the
pipes even on Idle Screen i.e. even when HWC is not queueing any new
buffers to MDP. Above data traffic leads to high power consumption.

Implementation: This change introduces a timer in HWC which will
timeout if there are no updates in bypass composition path for
the period specified via debug.bypass.idletime. Also SurfaceFlinger
will be notified to redraw the current frame which will be composed
into FB.

Conflicts:

	libhwcomposer/hwcomposer.cpp

Change-Id: Ic3a467596068fa553271b5cd8c2831e544e3211d
(cherry picked from commit ad1d9a019234ab03dbc79b1ddb73c86e560e3e74)

Conflicts:

	libhwcomposer/hwcomposer.cpp
2012-06-02 20:52:29 -07:00
Jeykumar Sankaran
6d56f14dff libqcomUI: Add utils folder to libqcomUI
-Introduce utils folder in qcomUI lib for all Qcom
 implemented utility classes.
-Move FPS calculation profiler class into utils
 folder.

CRs-Fixed: 342060
(cherry picked from commit e9469022741642cfd8483839de96e809f4d94f1e)

Change-Id: Ie0af0c0cc10b5304814b4f26aed581ea93ce7f5f
2012-05-22 17:03:47 -05:00
Andrew Sutherland
ab071af114 libqcomui: qsd8k: enable BYPASS_EGLIMAGE CHECK_FOR_EXTERNAL_FORMAT
these work arounds are originally for msm7x27a but seem to work ok on qsd8k

Change-Id: Ie903598ff0d532d5a6d8ee4725977117ec1bfb36
2012-03-30 20:34:23 -05:00
Mathew Karimpanal
0f6ca9f6c9 libQcomUI/libhwcomposer: Log and dump layers of screen frames.
Log a frame-by-frame succession of HWComposer layers' data and write
their buffers, if any, into raw or png files based on system property
values.

CRs-fixed: 339748

Change-Id: I171a9891a0867548b34d45c0561f25f66cf0580c
(cherry picked from commit 8166b062df4765af0b0d9f95d55fa14dd4b75b8d)
2012-03-30 20:34:06 -05:00
Rajulu Ponnada
e17722b895 hardware/qcom/display: Add debug feature to display FPS for both bypass,fb
Change-Id: Ib4991200db9bc64c823c57ed1fba43f836142957
(cherry picked from commit cc57c2f34b936636e9c52dc43689d9386bcd0e35)

Conflicts:

	libgralloc/Android.mk
	libhwcomposer/Android.mk
	libqcomui/Android.mk
2012-03-16 20:51:30 -05:00
Neti Ravi Kumar
c616c48fc5 libqcomui: Do not create EGL image for 420 SP formats in 7x27A
This change is done to reduce the CPU utilization by SurfaceFlinger
thread. This feature may be turned On/Off using a compile time flag

(cherry picked from commit 9691e73556e5c0b66553aa55eb504b9ebb0fd400)

Change-Id: I1cb5b5c8abef135bc520c6e39c6ccf236b2270c3

Conflicts:

	libqcomui/Android.mk
2012-03-16 20:41:12 -05:00
Harshad Bhutada
23f2ec2103 libqcomui: add function to find if GPU supports a format in hardware
This is a helper function that will return false if the given format is
supported by adreno drivers but not supported in GPU HW. For these
formats, adreno will use software color conversion routines to convert
them to acceptable format by the GPU HW. This may be required if we
want to avoid creating texture for certain formats when not absolutely
necessary. Could be defaulted to return true depending on a compile
time flag.

Change-Id: Idb2200b5ed13bb8c184288d44340ed1aefeaa8df
2012-02-27 01:56:28 -06:00
toastcfh
0cba1f7659 libgralloc: libqcomui: add QCOM_HARDWARE CFLAG
Change-Id: Idff9fb871f418c590da46aac7b00706946d2cf9b
2012-01-01 17:57:26 -05:00
Naomi Luis
4438e2f942 libQcomUI: Implement clearRegion for C2D/MDP/CPU composition.
Implement clearRegion for C2D/MDP/CPU composition. This prevents
glClear and therefore the glFinish from being called, thus
improving performance.

Change-Id: I03d9230e03cce11d9fe7e2bd34e4df8328ad2e00
2011-12-26 16:46:02 -05:00
Naomi Luis
be32078a40 libQcomUI: Add support for updating the buffer geometry
Add support for updating the buffer geometry without any reallocation
of memory. The buffer geometry is updated in the GraphicBuffer as well
as in the buffer handle.

Change-Id: I3fdb4f6a737277ab63fcbdb42e9c955ea7471760
2011-12-10 21:52:41 -08:00
Naomi Luis
18e73bc5c7 Display: Add libQcomUI
Add libQComUI which is used to perform operations specified by
SurfaceTextures.
The operation currently supported by this library is SET_BUFFER_SIZE
which deallocates and reallocates memory if the size allocated for the
buffer does not match the size requested by the client.

Change-Id: I370b94a91f5acf373f7040742aad7c2e7bb586fe
2011-12-10 21:52:29 -08:00