Commit Graph

655 Commits

Author SHA1 Message Date
Simon Shields d3e5b2f802 exynos4: hwc: fix FIMC colour format selection
Change-Id: I67bc79f57cc85f428dea7d16ffccb70a1ae646ac
2019-02-06 16:12:23 +03:00
Simon Shields 5a7136339c exynos4: hwc: debug improvements
Change-Id: If19d10308dfe2578018a5f5cdf6c14d40561d777
2019-02-06 16:12:23 +03:00
Simon Shields 188028e3ca exynos4: hwc: fix stride when using G2D
Change-Id: I52677b41d1753fad405124c90477fa71c9dd255b
2019-02-06 16:12:23 +03:00
Simon Shields a2b4252873 exynos4: hwc: fix FIMC transform with cropped buffer
s_fmt_pix_out wants the width/height of the original buffer, not the
width/height of the cropped area.

Change-Id: Iff2b4b2b89af6a68aac23b5766cf76cdf822af99
2019-02-06 16:12:23 +03:00
Simon Shields 3a77385a70 exynos4: hwc: try FIMG if FIMC composition is already used
Change-Id: I08f6241388e9a8e7436b2bf68869f523eb969c48
2019-02-06 16:12:23 +03:00
Simon Shields 418331950b exynos4: hwc: fix typo
Change-Id: I7dcbccfa1d5911e3935b6525d277efc831655d79
2019-02-06 16:12:23 +03:00
Simon Shields 20802225e8 exynos4: hwc: prefer FIMC in transformed contiguous cases
FIMC seems to be more reliable than FIMG.
TODO: use all four FIMCs

Change-Id: I1d34f8b3daae6dac609d141e78d3629433097cdb
2019-02-06 16:12:23 +03:00
Simon Shields 5edee1cbfc exynos4: hwc: refill fimg_cmd struct on each perform_fimg
Change-Id: Ic47bf13dabab841149d3fe9566687b30ec3be2af
2019-02-06 16:12:23 +03:00
Simon Shields e86377015e exynos4: hwc: ignore alpha on window 0
Change-Id: I9bbeb8b2ec06f08b070a8eda02c0322ede1c62f7
2019-02-06 16:12:23 +03:00
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 d68cbd8111 ril
Change-Id: I7dc6ecf180cb4ee16c14ee8e116241419060cf69
2018-11-24 16:13:35 +03:00
Paul Keith fea277e034 AdvancedDisplay: Rename Negative to Accessibility
* Samsung now supports many more modes than just inverted colors
* Add strings for these extra modes while we're at it

Change-Id: If2a469c994658d521d98b91adec1a19badb8092f
2018-11-22 12:13:02 +03:00
Michael Bestas bc84a21d29 Automatic translation import
Change-Id: I0913447dca830307d41286499ed69cd3e1e197c4
2018-11-22 12:08:45 +03:00
Michael Bestas 711e72b4ed Automatic translation import
Change-Id: Idc62dba34bdbe82a70e3b0e53755348a48659334
2018-11-22 12:08:40 +03:00
Bruno Martins 822af67683 AdvancedDisplay: Restore back button to the action bar
Change-Id: I7ae2d1ccbb0a55fc28c31d4791aaae1169b8221f
2018-11-22 12:08:14 +03:00
micky387 7ad3859afe AdvancedDisplay: cyanogenmod -> lineageos
Change-Id: Ie6d64f0995f266d2dbe3e16c8032820cc5164c1f
2018-11-22 12:04:36 +03:00
Shilin Victor 8f78bc5275 AdvancedDisplay: reset to cm-14.1
Change-Id: I4b989728bdd238865195dcadd5c16aa05a09ccae
2018-11-22 12:04:10 +03:00
Shilin Victor 68679c2253 Revert "AdvancedDisplay: Remove temporary for Pie bringup"
This reverts commit 0df2edccea.

Change-Id: Ic48a897db0b33afea13a5a12bb729407259a252a
2018-11-22 11:35:44 +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
DarkLord1731 605937f3b3 libril: Force static radio capability
Force the ril to return REQUEST_NOT_SUPPORTED error on getRadioCapability request.
Android handles the error and makes static radio capability for us, based on our config_radio_access_family overlay.

* Fixes network mode switch
2018-11-22 11:34:23 +03:00
olivieer c2d7884f73 libril: Send fake event for manual network registration to unblock UI 2018-11-22 11:34:23 +03:00