Commit graph

195 commits

Author SHA1 Message Date
Simon Shields
08f414bb62 exynos4: hwc: fix FIMC colour order
Change-Id: Ifb03e9cce404a42f33447afce129bbd13f012135
2019-02-06 16:12:23 +03:00
Simon Shields
a94b20c9b8 exynos4: gralloc: always try and allocate in ION
FIMD can display ION buffers, and UMP can import ION buffers.
FIMD cannot display UMP-only buffers (since they're not necessarily
contiguous). If ION allocation fails (because the carveout is full),
fall back to UMP-only allocation.

Change-Id: Ie5aa266f8e8e6ccd7b6df37f31983ba82e54011e
2019-02-06 16:12:23 +03:00
Simon Shields
806287a676 exynos4: hwc: add handle address to dump output
Change-Id: I3a7dcabf1b4a5f6a7c48687aeebee23e54d340a3
2019-02-06 16:12:23 +03:00
Simon Shields
9a63ab5ec6 exynos4: hwc: correct stride for FIMD, probably
Change-Id: I02e8f5c696715ef45521e355b47aff051ff83522
2019-02-06 16:12:23 +03:00
Simon Shields
bd1460c2fe exynos4: remove strange window logic
causes layers to disappear in usecases with a lot of layers (e.g.
multi-window)

Change-Id: I8e1d3fc76f2cb231d64de78b174c619d3d33cd53
2019-02-06 16:12:23 +03:00
Simon Shields
18ed295fd1 exynos4: hwc: allow hw compos on geometry changed
Change-Id: Ia79220488a821e5c076c902d2665a9fa9e37823e
2019-02-06 16:12:23 +03:00
Simon Shields
b364191e2a exynos4: hwc: draw contiguous layers directly to FIMD
If a layer is contiguously allocated in gralloc (i.e. in ION or FIMC),
it has a non-zero paddr, and as long as it doesn't require FIM[CG] for some
other reason (scaling, rotating) FIMD can render it directly.

This seems to be the intended use of gsc_map_t::NONE.

Also update hwc_dump to show some relevant information about hw win to
layer mapping, window mode, and paddr of the memory.

Change-Id: I4c86655131cc859ee789fb37fa30a352376cf8cf
2019-02-06 16:12:23 +03:00
Simon Shields
d45cb2ba1d exynos4: hal: optionally allow using multiple fimg layers
this isn't stable enough to enable by default, but the performance
benefits are quite noticable, and the negative side effects of doing
this don't exist in the majority of usecases, so add a prop:
persist.sys.hwc.multi_fimg to enable it

Change-Id: I5dd5560900e2cf91c2a23ce96fa14409236922e0
2019-02-06 16:12:22 +03:00
Simon Shields
973abf09e8 exynos4: gralloc: declare 4210 FIMC0 devnode
Change-Id: I9da3140f2e8904a12b695d0f2d6eaf67c0836dd5
2019-02-06 16:12:22 +03:00
Simon Shields
3f66e0b551 exynos4: hwc: don't use FIMG on 4210
libfimg3x ABI is incompatible with libfimg4x

Change-Id: I922b54f19be095063d2ba82d168066d7036bf7fb
2019-02-06 16:12:22 +03:00
Simon Shields
80999cda6e exynos4: hwc: implement hwc_dump
show info about whether or not we're forcing GLES compisition

Change-Id: I1121488d2378a25db8dc50de51286eb72f2d23b2
2019-02-06 16:12:22 +03:00
Simon Shields
b3cb1b1682 exynos4: hwc: allow multiple FIMG layers
Change-Id: I35353ced1c2be21117e40f557d27bb38c32cb796
2019-02-06 16:12:22 +03:00
Simon Shields
a4886de3eb sec_utils: fix header include
Change-Id: I94b006e666f0da3670ca15210af3a52a1cdc8f30
2019-02-06 16:12:22 +03:00
Javier Ferrer
e982de8303 exynos4: gralloc changes for oss hwcomposer
Change-Id: I7b3ac2404fed7d07ef672c99f47bb36f8b80dafd
2019-02-06 16:12:22 +03:00
Javier Ferrer
a0a48f9689 exynos4: add oss hwcomposer
It depends on f1c6163ac1

Change-Id: I26456fc469b8d488fb931a53f32d75c91a5e70c5
2019-02-06 16:12:22 +03:00
Dheeraj CVR
495c1cc3b5 libhwconverter: adapt for libfimc changes
Change-Id: I04da4e76fcee1a116fc32b6899d71affcd434c67
2019-02-06 16:12:22 +03:00
Dheeraj CVR
55898bf061 libfimc: update for hwcomposer compatibility
Change-Id: I9fe15f12c59cbabae9a79fec6873a006e9dd10e6
2019-02-06 16:12:22 +03:00
Javier Ferrer
23a07a3c6b libfimg: add CMD_SET_DBUFFER, lock and boostup
Depends on https://gerrit.nameless-rom.org/#/c/18058/

Change-Id: Ic6fccd408b48d094a8b0cba48a1f96e84cee59d6
2019-02-06 16:12:22 +03:00
Dheeraj CVR
baaf7a8ad0 libfimg: don't propogate BLIT_OP_SOLID_FILL operation
Change-Id: Iad5592b863e35c5914167741bb32a2b81aebc911
2019-02-06 16:12:22 +03:00
Simon Shields
2ae665aff5 exynos4: fix hwcomposer
Change-Id: Id656a09b2d7e2da2de05d3075818ce14efe09416
2019-02-06 16:12:22 +03:00
Simon Shields
be4c4b22c2 exynos4: hal: always use our videodev2.h
Change-Id: I1a68a3345565cd88f36045dbdc838a17d558d77e
2019-02-06 16:12:22 +03:00
Simon Shields
ac17f4326d exynos4: gralloc: build fixes
Change-Id: If5095647796e05c908d7bfe80ff35b76879cb75c
2019-02-06 16:12:22 +03:00
Javi Ferrer
07950da91b Update s3cfb constants
Change-Id: I7e24e65e708b425d92ffbd3cc20cb4cf4703cf5d
2019-02-06 16:12:22 +03:00
Javi Ferrer
4f1fe71d4b Switch FIMC1 and ION
hardware/samsung/exynos4/hal/libcamera/SecCameraHWInterface.cpp  left intentionally as is, since I think it has the proper meaning

	#ifdef USE_EGL
	#ifdef BOARD_USE_V4L2_ION
	    if (w->set_usage(w, GRALLOC_USAGE_SW_WRITE_OFTEN | GRALLOC_USAGE_HW_ION)) {
	#else
	    if (w->set_usage(w, GRALLOC_USAGE_SW_WRITE_OFTEN)) {
	#endif
	        ALOGE("%s: could not set usage on gralloc buffer", __func__);
	        return INVALID_OPERATION;
	    }
	#else
	#ifdef BOARD_USE_V4L2_ION
	    if (w->set_usage(w, GRALLOC_USAGE_SW_WRITE_OFTEN
	        | GRALLOC_USAGE_HWC_HWOVERLAY | GRALLOC_USAGE_HW_ION)) {
	#else
	    if (w->set_usage(w, GRALLOC_USAGE_SW_WRITE_OFTEN
	        | GRALLOC_USAGE_HW_FIMC1 | GRALLOC_USAGE_HWC_HWOVERLAY)) {
	#endif
	        ALOGE("%s: could not set usage on gralloc buffer", __func__);
	        return INVALID_OPERATION;
	    }
	#endif

Change-Id: Ieca2c717314bda5ca94a013df3cf8e23d68f74f8
2019-02-06 16:12:22 +03:00
Javi Ferrer
b59b75cde2 gralloc: move logic to add extra flags
Change-Id: Iffd52718841fa0ae03eadc94482a94cdd4989668
2019-02-06 16:12:22 +03:00
Javi Ferrer
025b44c305 gralloc: fixes for N7100 kernel rebase
gralloc_alloc_buffer()
gralloc_lock()
gralloc_unlock()

Change-Id: Ib935c94f1d216b6a57b300f5afb1c44724d2b05b
2019-02-06 16:12:22 +03:00
Javi Ferrer
1ea41aa4b3 gralloc: fix find_last_rect()
Change-Id: I4850a0a848c0c859be1e0b3b0ff8e280ba63af0b
2019-02-06 16:12:22 +03:00
Javi Ferrer
2624dc13ae gralloc: Use ION instead of FIMC
Made also changes to match XXUUMK6.

Needs https://gerrit.nameless-rom.org/#/c/12177/ for video playback and possibly https://gerrit.nameless-rom.org/#/c/12178/

Change-Id: I4a8fa5ee28d83c4bac822e4f8769ebce593b33cc
2019-02-06 16:12:22 +03:00
Dominggoes Isakh
4a405a462b Revert "hwcomposer: (WIP) Implement HWC 1.1"
This reverts commit d93aed8e16fc8b500ac5cd49f4813e26b962c1ab.
2018-12-23 05:48:58 +03:00
Dominggoes Isakh
aca172100c hwcomposer: (WIP) Implement HWC 1.1 2018-12-23 05:48:58 +03:00
Shilin Victor
e2733b095b Revert "HardwareConverter: Temporary remove OMX_SEC-formats for Pie bringup"
This reverts commit 46996ee4d4.

Change-Id: I12bd4e3c4f9d898424fa2ee5f11cd4de561b6885
2018-11-22 11:35:24 +03:00
Shilin Victor
d2ec13c4b2 Revert "exynos4: android.hardware.graphics.allocator@2.0 for Exynos4"
This reverts commit 3134d2eea5bc6b2a29de2faec067aea5e5d0a44e.

Change-Id: I2f80b912bbecfd2b72e668c2db0701c3e7008aa1
2018-11-22 11:34:15 +03:00
Shilin Victor
23331bcc02 libhwjpeg: fix build
Change-Id: I86b47caf8ca498b943ffea6556816c5ac75c137f
2018-11-22 11:34:15 +03:00
Dominggoes Isakh
b31f428d60 Resolve compiler errors
* remove all unused variables
* remove all unused functions
* build with -no-error

Change-Id: I8cdf30b9e650b4905c6c122122cd3630bf153275
2018-08-14 22:26:31 +02:00
Dominggoes Isakh
46996ee4d4 HardwareConverter: Temporary remove OMX_SEC-formats for Pie bringup
Change-Id: Ie9e665d7fc5b1124ecb662cfb4fcedc18d22021b
2018-08-13 19:49:53 +02:00
Dominggoes Isakh
58db5d59b0 exynos4: android.hardware.graphics.mapper@2.0 for Exynos4
Change-Id: Ic3156237063e72b3a3745491685d3e5cbedd908d
2018-08-12 22:05:06 +02:00
Dominggoes Isakh
d50cd57a75 libgralloc: Move to vendor
Change-Id: I2db8ee6330ee2fa41f725e3004cca321b3b176b6
2018-08-08 06:26:10 +02:00
Dominggoes Isakh
7a739e098a libhwcomposer: Move to vendor
Change-Id: Ib4cc446beaec71134061a97353dcd5b13dcc5901
2018-08-08 06:26:10 +02:00
Dominggoes Isakh
94482bf33b exynos4: android.hardware.graphics.allocator@2.0 for Exynos4
* Buffer got corrupt because of the mNumFlexPlanes member.
  Use fixed value of 4 instead and exclude the member.
* Usage bits were not filtered properly

Change-Id: I7ee9fa73f896c505403447ae118a76d9f53e00a8
2018-08-08 06:26:10 +02:00
Dominggoes Isakh
08c95948f7 exynos4: Fix GRALLOC_USAGE_YUV_ADDR for hardware decoders
Change-Id: I07206502e9dcdd731ce19eaf1e14ac519afab01e
2018-08-08 06:26:10 +02:00
Dominggoes Isakh
763999dd87 exynos: Temporary remove getphys
Change-Id: Ia64dae7e838b32cfb1ed0c45b3c88d961e21e5d5
2018-08-08 06:26:10 +02:00
Dominggoes Isakh
4ff5df4584 exynos4: gralloc: Add support gralloc1-adapter
Change-Id: I6df76e2c0b7d5fad0316ddb2305a7fc8142d6d89
2018-08-08 06:26:10 +02:00
Dominggoes Isakh
9b21248cd4 Use TARGET_NEEDS_EXYNOS4_ENHANCEMENTS
Change-Id: I3072e938eeff0d1ada0760f77c71782366da1e57
2018-08-08 06:26:10 +02:00
Dominggoes Isakh
09604e974d Fix compiler errors
Change-Id: Ic0193e81edae8ee46c53865133ce42fda9f69d5d
2018-08-08 06:26:10 +02:00
Simon Shields
fc68d3abb8 exynos4x12: use common samsung liblights
Change-Id: I5615413d5427177af0d161cfac24e98e18bf017b
2017-02-06 03:02:48 +00:00
Simon Shields
28bf1cc919 exynos4: allow using SLSI stack
Change-Id: I6201fb7b513f0b0d771460be133a7f32691b5070
2017-01-10 13:25:38 +00:00
Dominggoes Isakh
cb48f297ff exynos4: Fix libfimc build
* Expected return type is an address, not a boolean.

Change-Id: I454c23b66388fe06fc6d630b7b510ae85bd94c4a
2016-12-18 13:06:03 -08:00
Simon Shields
fe32c93da2 exynos4: hwc: GLES/gl.h is needed regardless of HWC_HWOVERLAY
Change-Id: I83108ba3d2442fbc0a252bd98c988235bafe7dc8
2016-11-20 21:37:16 -08:00
Arnab Chaudhuri
a958e7e7ac liblights: Add BLN support
Change-Id: I859416c484777fcf08b5bf8f72ba9f9838e4c1b3
2016-05-09 21:50:55 +05:30
Simon Shields
05326f499d exynos4: gralloc: we have an ALIGN macro, use it
Change-Id: I1ef089b004d1d1e3f2ae525638954536ca881c7a
2016-04-15 10:10:36 -07:00
deadman96385
a6d5bd701d Move Advanced Display so exynos5/7 can use it
Change-Id: Idc255301f30cff6b41d04db6f14fa421ee9eddb5
2016-03-22 19:24:20 +01:00
Javi Ferrer
cc48856905 exynos4: squash opensource libUMP
commit f40eeecbe44ee3ca5f4406e8881f6ffe1507d87c
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:41:30 2014 +0530

    exynos4: libUMP: fix headers for newer mali driver

    Change-Id: Ia81fa1949d04d809b4c5045269a70d7bab758f4a

commit 8c3792c590c0591647ab5ab59ff74d11e5f8afdd
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:38:51 2014 +0530

    exynos4: libUMP: use relative include paths

    Change-Id: If46c68512d0404df0d46734531a6160eb18b7ce5

commit feb6f2c45d4f87655a2f391114946933a128e60c
Author: Javi Ferrer <javi.f.o@gmail.com>
Date:   Fri Nov 21 04:05:51 2014 +0530

    exynos4: open source libUMP

    - Deleted unneeded include ion.h
    - Correct libsecion build
    - Correct gralloc build and bring back ump_ref_drv_ion_import

Change-Id: I1da602ec77d78e5056ea0c37f328c6c1b0e60e00
2016-03-21 11:09:30 -07:00
Simon Shields
9b5063f0ed exynos4: commonize AdvancedDisplay [1/3]
* show in settings
* drop support lib
* drop unnecessary viewpager/tab bar
* drop unused strings/resources

Change-Id: I90c62d7b106ad744ae698044f6f17a759fcbf8a3
2016-03-21 22:45:04 +11:00
Caio Schnepper
e48f7860b9 libgralloc: Fix refresh rate calculation
Calculated refresh rate can be 3% off
Reference: https://code.google.com/p/android/issues/detail?id=69391

Change-Id: I3b4efefcc0aef695ba48abdfb61f6d38b9d0a79c
2015-11-30 11:05:10 -02:00
rogersb11
dbf394e847 samsung: Compilation fixes
* Add missing headers
* Cast values to correct types

Change-Id: Iaf621c562e884daeb22f6ec700d6989ba6ba1aef
2015-11-09 14:07:55 -08:00
Caio Schnepper
2f04f84366 exynos4: Fix build of hwc and gralloc
HAL_PIXEL_FORMAT_RGBA_5551 and HAL_PIXEL_FORMAT_RGBA_4444 are used
by our hwc and gralloc, but they no longer exist in /system/core/include,
so we are moving these two formats to the hardware specific repo

Change-Id: I1c214af3b9819290173d2d60122d45a8ac635faf
2015-10-19 21:13:45 -02:00
Caio Schnepper
d126ce64b4 libgralloc_ump: Fix build
Included legacy <pixelflinger/format.h> to continue
using "GGL_PIXEL_FORMAT_L_8" pixel format

Change-Id: If08f90333bbcd9857f0dbcb462aaf6e8ad4d689f
2015-10-19 14:36:14 -02:00
Caio Schnepper
dd9ce7d335 libfimg3x: Remove android_pmem.h include
Change-Id: I514e96676578a97b9481643e58a0e49a8d017678
2015-04-27 13:55:08 -03:00
Ricardo Cerqueira
518d1720da lights: Clean up light priorities and dedupe code
Attention > Notification > Battery

Change-Id: Ie3d17aced31673b281d718b76973d5774707a21d
2015-01-03 19:30:06 +01:00
Howard Su
a42023004b libcamera: fix camera.
Change-Id: I8992ec58b0254c73075e5e1a7b08227958179c0e
2014-11-28 07:51:44 +00:00
sbrissen
99008c2002 Exynos4: Fix build
Change-Id: Idb327b37156e2014a34a8831ce6d60769e3217af
2014-11-19 08:28:43 -05:00
Ricardo Cerqueira
bf4502e660 Exclude generic camera implementation if TARGET_PROVIDES_CAMERA_HAL
Change-Id: I91066dfa3d271aa7f909fc8751adb74b622173d2
2014-05-20 10:09:52 +01:00
Flamefire
5d0cdb761c Fix crash on boot
There is a race condition where the sysfs-vsync thread accesses a value
(in particular a function ptr) that may not have been set yet as this
is done externally.

Change-Id: If1afb1533344e994398b9b6f5bd3dfb125313416
2014-01-28 17:21:20 +01:00
Ketut Putu Kumajaya
e1b1ffd5fc exynos4x12: liblights: Fix tablets with button backlight
Also, respect the lights API and return errors when attempting to
configure an absent light ID.

Change-Id: Ida430fba2fbfaf646f7e02ce2bd7d9134ae8d917
2014-01-15 15:30:32 -05:00
Ricardo Cerqueira
0ae0edd95a gralloc: Attribute buffer ownership to last caller
Switch buffer management from creator to latest registrant

Change-Id: If6b1ab1a553f701e4a1038c089f2b2ecb02c2e8b
2014-01-02 16:01:26 +00:00
Ricardo Cerqueira
73ef2c14bf Revert "gralloc: Allow unmapping concurrent handles"
This reverts commit a3a9aaa5bb.
2014-01-02 16:01:22 +00:00
herna
598179bcb2 Fixed Light Exynos 4 sensor not working
Change-Id: I0a59d8ca08e210d879350df42e75acd4365326a3
2013-11-15 20:29:24 +04:00
sbrissen
52466f81e2 Exynos: fix gralloc build
Change-Id: Iae8c7cf947aacb6ec5c952a10a14b9d41c397ed2
2013-11-06 13:28:15 -05:00
Ricardo Cerqueira
a3a9aaa5bb gralloc: Allow unmapping concurrent handles
If we allow registering those buffers, we need to let them go, too

Change-Id: I6c2dc862e1e783e2b0d3c7d37d60ebe2290173fa
2013-10-27 19:51:25 +00:00
Ricardo Cerqueira
946eb02095 gralloc: Allow any process to have multiple buffer handles
Change-Id: I670ff7e03b19c07094b506a4422f99c30f06db0e
2013-10-25 23:38:52 +01:00
Humberto Borba
cce0d5b49e add exynos tablet flag
Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Id2a5ce769af9b87d7fbdb415ff7869f593601dc3
2013-09-23 00:12:16 -03:00
sbrissen
898047abc2 Add Red/Blue LED notification support
This will allow the use of the red/blue led's on the sph-d710
Uses BOARD_HAS_LED_NOTIF in boardconfig.

Change-Id: Ic217ed5b0ec673d03bb596fbde0ac725a5ca0887
2013-08-30 21:03:31 -07:00
Daniel Hillenbrand
0189eda6e8 exynos4x12: liblights: generic button backlight implementation
http://review.cyanogenmod.org/#/c/48922/

Change-Id: I929fcb4f1c2a912e026328cb09f9be527adbaea9
2013-08-23 22:12:45 +02:00
Daniel Hillenbrand
ebc06142fd exynos4210: liblights: big cleanup
http://review.cyanogenmod.org/#/c/48922/

Change-Id: I5fa9602649c5d0e902dfc9ba9e50e8197d0dfb76
2013-08-23 22:08:04 +02:00
Daniel Hillenbrand
f3bf842bd6 liblights: exynos4210: fix button off value
since we're writing to the command interface the correct values are:

1 - on
2 - off

Change-Id: I4e61b0eedd1dcfba32319b26cd9e29202f66fcaa
2013-08-21 20:49:48 +02:00
XpLoDWilD
81366768f2 exynos4: gralloc: Remove non-trivial initializers to fix build
Change-Id: Id21a3506132b2be1ff5a606858d1be2dd897338d
2013-07-26 12:00:13 +02:00
Qaweck
20dd0df8e3 NFC refactoring
Change-Id: Id239eae364b7e1eddc512acb3516be1c62a726d1
2013-07-22 20:31:23 +02:00
Daniel Hillenbrand
c0e536a0d0 samsung: move ril client out of exynos4
Change-Id: I8aa0470652c060a531d2cc7f2d8c68d3c40f5f95
2013-07-08 17:11:45 +02:00
sbrissen
6b226ad645 Exynos4x12: liblights: ifdef exynos4x12 tabs
Change-Id: I3461a6569bf7d3c65e72cc911282bb3ee8e52bc5
2013-06-21 09:08:25 -04:00
Daniel Hillenbrand
41e1d1a242 exynos4: SecBuffer: add missing c++ ifdefs
Change-Id: I6c07d14675e5c6f835401d2660f208db8e757a71
2013-06-15 11:14:35 +02:00
Daniel Hillenbrand
09e7e82747 exynos4412: update fimg4x
http://git.insignal.co.kr/insignal/origen_quad-jb_mr1.1/android/hardware/samsung_slsi/exynos4/log/?h=origen_quad-jb_mr1.1

Change-Id: Idbcc372285b168fa171e195eed43e20c27182fab
2013-06-14 16:18:47 +02:00
ghepeu
cfaad78bbb exynos4: hal: include: Exif.h: always keep two decimal places in macros
The APEX macros always rounded to int, losing too much precision. Ensure
that we always keep at least two decimal digits.

The more precise F-number comes from the value recorded by the camera
closed source driver.

Added a new macro APEX_SHUTTER_TO_EXPOSURE(x) (credit to tryptophane).

Change-Id: Ief43c15c6517d8dc48d4d4bc9e93df9eb01e6b91
2013-05-10 14:27:52 +02:00
codeworkx
7800b3bc1b exynos4210: lights: add missing brightness check
Change-Id: I7d307fbfe7581bfa76e7f4f6ce50f759683bf9dc
2013-03-02 18:23:50 +00:00
angelsl
ee21f4bdd1 exynos4: Add open source libsecion.
This libsecion is reverse engineered from the libsecion.so blob and then
written based on the Exynos 5 libion available in AOSP.

Change-Id: Ibe69047c78491e3c7f3173b18fcabdf327fcfbd0
Signed-off-by: angelsl <hidingfromhidden@gmail.com>
2013-02-24 14:29:28 +08:00
codeworkx
79b8917c20 exynos4: update media headers
Change-Id: Ia6221554d290c46f11c68e276dda41c8ebe3a7ab
2013-02-17 15:24:50 +00:00
Andrew Dodd
a7d49af0a9 gralloc: Remove hacks
Stock gralloc doesn't have these alignment hacks.  In fact
they currently do nothing and won't until we fix HWC.

Change-Id: I3427cf3fed84a023ba6ed69b0e0fe0b63ea00886
2013-01-15 20:09:06 -05:00
Andrew Dodd
f9f985d6ba gralloc: Add missing GRALLOC_USAGE_HW_FIMC1 logic
This caused the ION pointer to get clobbered with a UMP
pointer when FIMC1 memory was requested.

After a while, camera would be unable to allocate buffers
due to ION memory not being freed properly.

Change-Id: I1ba1d27da924a0bb81631548e83c7f3e5789f319
2012-12-18 17:13:24 -05:00
Daniel Hillenbrand
d052b701d2 Merge "hwc: Pull in updates from exynos3 hwc" into mr1-staging 2012-12-11 04:57:03 -08:00
Andrew Dodd
e6a23d7713 hwc: Pull in updates from exynos3 hwc
Change-Id: I61e1556da3e2d1e9a8b9c22163f4f11982bda7dc
2012-12-11 13:45:31 +01:00
Daniel Hillenbrand
04470b7fa8 Merge "gralloc: Back out hacks now that Mali-derping is fixed" into mr1-staging 2012-12-10 22:41:07 -08:00
codeworkx
6ab6c16999 exynos4: libhwcomposer: disable debugging
Change-Id: Iead8beee1c2c40b3c7ce1277c84dc180fb96ecb8
2012-12-09 09:51:22 +01:00
Andrew Dodd
19e59a77d9 gralloc: Back out hacks now that Mali-derping is fixed
Two reverts squashed, due to Mali-derping being fixed
in frameworks/native:

Revert "gralloc: avoid using framebuffer"

This reverts commit 5125ccc5b6.

Revert "gralloc:  Send first 2 FB buffers to carveout and next to UMP"

This reverts commit d288deb284.

Change-Id: I530dc255b7543e03d0e8277d3ad12ed11d6649ab
2012-12-08 18:22:52 -05:00
codeworkx
6aab55a059 exynos4: gralloc: fix fimc1/ion logic
Change-Id: I0d125275e4d9ec3b6368572b9c0aa1033969c98d
2012-12-07 20:51:05 +01:00
Andrew Dodd
3e73708c2e exynos4: gralloc: Do FIMC1 memory allocations from ION instead of FIMC1
Mobile's blobs behave this way, except they don't do the
4k alignment done by the FIMC1 allocs.

The 4k alignment should fix issues such as NHK World Live TV,
but fails to do so.

Change-Id: I1ee4cd13e23f9f2f6c6616ee9eed1096b571a82c
2012-12-07 17:21:00 +01:00
Andrew Dodd
2f662dd093 gralloc_priv: Remove unused yaddr member
Mobile's blobs don't appear to have been compiled with this
present in their headers, and none of the Insignal sources
actually use this.

Change-Id: Ib8611f6da90ea78aa8eec451c76f56ddb32b45a4
2012-12-06 01:41:45 -05:00
Andrew Dodd
3fc2ca9f38 gralloc: Let } rejoin its people
This is the story of poor }.  It is a painful saga.

Samsung left } floating inside the galaxy of framebuffer_alloc,
unable to join its brethren on the planet of STANDARD_LINUX_SCREEN
when they were shifted out of the #ifdef dimension.

codeworkx brutally eliminated poor } from the galaxy, it was
nowhere to be seen.  codeworkx then took pity on the } and
placed it back on the planet of STANDARD_LINUX_SCREEN, but
placed it on a continent where it was all alone, unable to
ever see its mate {

Take pity on poor }, let it rejoin its people on the correct
continent of the planet STANDARD_LINUX_SCREEN, so they may
all shift out of the #ifdef dimension together.

Change-Id: I7a700b73ccd2c91f91d9af3704930759f46978c7
2012-12-05 00:47:48 -05:00
codeworkx
1400c151aa gralloc: add HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED for video
Change-Id: I340b2bc065490797889aa17c5396cf40e0e7d6ff
2012-12-03 22:21:46 +01:00
codeworkx
5125ccc5b6 gralloc: avoid using framebuffer
Change-Id: I216b4b67f09729d00d337512ab17ff378f218a33
2012-12-03 21:22:06 +01:00
codeworkx
00b0625388 gralloc: do it the android way
Change-Id: I54d7cfcbf39a97a340cf5b807537c39584c0e50a
2012-12-03 18:15:06 +01:00
codeworkx
c5b109bede gralloc: hello }, welcome back at your new home
Change-Id: I86f80b78325f37f2d46b0c3b08818ab1274242e9
2012-12-03 18:11:28 +01:00