| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
At first all the devices were using libagl. The issue is that
certain applications like browsers based on Gecko didn't work
as the OpenGL implementation wasn't complete enough.
Then all devices were switched to llvmpipe, however the OMAP4
devices had a black screen at boot.
Some attempts were made to enable specific devices to override
the OpenGL implementation without much success. Since that
didn't work, it would probably have required to move the
OpenGL implementation in devices or common devices repositories
and require changes in too much repositories.
To avoid that, the following commit was made in framework/native
to rid of the black screen of the OMAP4 devices at boot:
108a3f6c45c354116578f2d4bf6979c3b8aa0fb8
108a3f6c4 Enable llvmpipe on the Samsung devices with an OMAP4 SOC
The real effect of that commit was to disable the ti_hwc and make
the devices fall back on the default implementation which worked
with llvmpipe.
The issue is that, with that change, for some reasons graphics
were painfully slow: On the Galaxy Tab 2, and the Galaxy Nexus,
there was barely enough speed to enable users to go in the
settings, enable root, and run a shell script to activate back the
old libagl implementation.
I then tried to force EGL_SLOW_CONFIG but it didn't work anymore
with the default implementation as it failed to be selected.
This made me conclude that the correct solution was probably to
enable ti_hwc to use llvmpipe somehow.
As this probably requires more work, and that work is ongoing to
make Replicant use a kernel closely based on upstream Linux, it
makes more sense for me to find a quick workaround here to have
more time to work on Replicant versions that will have a kernel
closely based on upstream Linux.
This workaround was found in device/generic/qemu/ in
init.ranchu.rc:
# Disable GPU support
setprop ro.kernel.qemu 1
setprop ro.kernel.qemu.gles 0
It appears to disable OpenGL somehow as running the tor-browser 10.0.5
resulted in the tor-browser crashing when clicking on the URL bar,
and the following log:
I Gecko : Can't find symbol 'eglGetNativeClientBufferANDROID'.
I Gecko : Can't find symbol 'eglQuerySurfacePointerANGLE'.
I Gecko : Can't find symbol 'eglDupNativeFenceFDANDROID'.
I Gecko : Can't find symbol 'eglQueryDisplayAttribEXT'.
I Gecko : Can't find symbol 'eglQueryDeviceAttribEXT'.
I Gecko : Can't find symbol 'eglStreamConsumerGLTextureExternalAttribsNV'.
I Gecko : Can't find symbol 'eglCreateStreamProducerD3DTextureANGLE'.
I Gecko : Can't find symbol 'eglStreamPostD3DTextureANGLE'.
I Gecko : Can't find symbol 'eglSwapBuffersWithDamageEXT'.
However the graphics speed is now similar to the speed we had with libagl.
So it is probably similar to reverting to libagl, without having to modify
too much repositories.
There is also some more background information on that bug in
the Replicant bugtracker[1][2].
[1]https://redmine.replicant.us/issues/2171
[2]https://redmine.replicant.us/issues/1994
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
- fixes images cropped to square when shooting in portrait
Change-Id: I533ab769f61baebbf7f1eedc9b41c85425aacb9f
|
| | |
| |
| |
| | |
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
|
| | |
| |
| |
| | |
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
|
| | |
| |
| |
| | |
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
|
| |/
|
|
| |
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
|
| |
|
|
|
|
| |
Note that TARGET_BOARD_OMAP_CPU needs to be set first.
Change-Id: I638f7af527b3724098d7379b58e30c7550aa1f16
|
| |
|
|
| |
Change-Id: Ib186601622cda38536dff4ac4d404dce31697c4f
|
| |
|
|
| |
Change-Id: I7c3dc8abfd9367b1b983b696d7357a27f9350b60
|
| |
|
|
|
|
|
|
| |
Since newer DDKs may expect more generic UM prebuilt names, link
against the symlinks prepared in vendor/ti, rather than matching
against TARGET_BOARD_OMAP_CPU every time.
Change-Id: Ibc6a3b4f92984f787ddbe9eba596875b9fbd7c26
|
| |
|
|
| |
Change-Id: I31b4139e3607a8bd7b4d024f6e80b2bb3d03c66f
|
| |
|
|
|
|
| |
LOCAL_LDLIBS isn't working below Lollipop for some reason.
Change-Id: I5ade9b46634fdfd6ecc30b1a351a99e75159da23
|
| |
|
|
| |
Change-Id: I9fb13a110e80b8775ec7f1319641638b6fc908b3
|
| |
|
|
|
|
| |
But allow devices to override it.
Change-Id: I540096b29249c9f834b22da7497f3d5f589f51af
|
| |
|
|
|
|
|
|
|
|
| |
When build.prop doesn't exist (pretty much the case always), have a
fallback by extracting the needed platform variable from build/core/
version_defaults.mk. This is necessary since this build information
doesn't permeate here, and we would like to avoid re-including the
whole core makefile.
Change-Id: Ia98e0a4e6b060ad8ace8b947e6c93741a875c05d
|
| |
|
|
|
|
|
|
| |
Devices can still use their own build targets (traditionally called
SGX_MODULES), or can simply include pvr-km.mk into their BoardConfig
(or call inherit-product in other device MK).
Change-Id: I3e201e6e0bee0c1eec9f52c36922e66937f9f57f
|
| |
|
|
|
|
| |
In preparation for commonizing KM build targets and init insmod.
Change-Id: If3d1a1c9a3510ea7ce4ab23c569c06ff5671a5ec
|
| |
|
|
|
|
|
| |
Adapted from http://review.omapzoom.org/#/c/38080
Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>
Change-Id: Ibe9beaf46c5236fc5ab477aa49e2f397000c2d6e
|
| |
|
|
| |
Change-Id: I6fa45d7ad29eefff2c6f2ed426843b9b94fa4c92
|
| |
|
|
| |
Change-Id: I36c95e3c5eacaac3f5cc0480381cd582092aac8d
|
| |
|
|
| |
Change-Id: I3b401e237ceb0dde1ff038fdd58a020aec1b3134
|
| |
|
|
|
|
| |
Based on the OMAP PowerHAL from omapzoom.org.
Change-Id: Ibc6c6779c9004dc442db436f8b68cbb191b16662
|
| |
|
|
|
|
| |
Simplify some variable names too.
Change-Id: I4b48d00c60a3ea5b0ed14170e5e5bc4cef43ef5e
|
| |
|
|
| |
Change-Id: Ica4f022ebfd484d31d7848b68462e752e60ec520
|
| |
|
|
| |
Change-Id: I52375bf7c3a9cecc148c2d1d168169fd0546a9ce
|
| |
|
|
| |
Change-Id: I411c1d957d5b011e922a5c1791712717997b3462
|
| |
|
|
|
| |
Change-Id: I5602bfe642ed1c3bae9b5209e43362f2b6c37852
(cherry picked from commit 453e2165e3dcba2274b21b5c0a395c8624d5a354)
|
| |
|
|
| |
Change-Id: I494bf541737d66e88d6daa035c0b3398eadd536b
|
| |
|
|
| |
Change-Id: I1cde19085f5624d9fa80043be93c119f66e3ab3c
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CMA-enabled kernel for tuna devices will unload Ducati firmware when it's not
in use to free extra memory for applications.
On the first access to /dev/rpmsg-omx1 it will reload the firmware. However, in
the process of this reloading device drivers will be reset, therefore causing
errors when either opening the device or performing the first operation on it.
Moreover, the previously opened handle will be invalidated in this case.
Therefore, the connection loop is modified to retry both open() and first
ioctl()calls instead of just open() and to reopen the device on retries.
Also, because the reload can happen relatively fast when there are not too many
pages to migrate, we use smaller waiting period but increased number of retries
to improve camera start latency.
Change-Id: I4b919f457c0e3bc43f99381c405e364b3326f583
|
| |
|
|
|
|
|
|
| |
This should fix large (>10M) tiler memory leakages that often occur when
the camera is closed. There are still smaller leaks left (several 4K pages
per run), but these are much less damaging.
Change-Id: Icc442407d357eeff4a1bce9edeff0f186f5646d1
|
| |
|
|
|
|
|
| |
The 'dcc_loaded' local static variable was never reset properly.
Change-Id: Id4ceddea6153d897456e0f845f3818be5dfbae36
(cherry picked from commit 881a349f9721837f2556b6ed8214fecbf7a19f27)
|
| |
|
|
|
|
| |
Add 'import init.omap4.rc' to the device init file to use it.
Change-Id: Ic0b8257b66b2d82bf9171ff7644a5689e0ab030d
|
| |
|
|
| |
Change-Id: Id08f4e07439763f6d5069dfbb82fab15648fd80e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commit 5e398ba changes how the initial frequency limit is selected: instead of
selecting the highest avaliable one, it hardcodes it to SYS_SGX_CLOCK_SPEED,
which is defined as 307200000 Hz for SGX540_120. However, omap4460/4470 devices
use 384000000 Hz, so we end up underclocking them.
Instead of hardcoding these frequencies, let's just use them as a reference
frequency, and use the first frequency that is less than or equal to the correct
reference frequency. This way, we can ensure a safe frequency set on kernels
with custom SGX clock frequencies enabled.
Change-Id: Ic55be55dbb5c9d4a3807096209cdf07bbbdca719
|
| |
|
|
|
|
|
| |
This uses the color phase rotation hardware of Omap4 to set RGB
calibration values.
Change-Id: I101953fbac46235a178824f9d94470b4fe558b76
|
| |
|
|
|
|
|
| |
Disable the GRALLOC_USAGE_CURSOR-flag when gralloc.h is included
as our gralloc-blob can not handle it.
Change-Id: I88baf92de9a74939b65f89e9628b62be88cfaede
|
| |
|
|
|
|
|
|
| |
These tags are needed by the CM13 camera to not crop images to square
when shooting portrait. As the camera HAL already rotated the picture,
always set orientation to 0.
Change-Id: Id8b6aac5369ae3adfdfec0ec7528edc849bd3b10
|
| |
|
|
|
| |
Change-Id: Ibdf65581caca78b2daa41ac9898383f4c3d38097
(cherry picked from commit e57f2b6f67a2b87da5b9c2f2b82e6cc28eef819b)
|
| |
|
|
|
|
|
|
|
|
| |
Frameworks/native commit e2806cb4456e3815e979f333ed23ec7df591a9ff made
SensorManager(const android::String16&) private.
Let's use SensorManager& getInstanceForPackage(const String16& packageName)
instead.
Change-Id: I15a582a7a6919c341958188da0c9168045de57e7
|
| |
|
|
|
|
|
| |
If extra GPU frequencies available (because of overclock), we have to
limit it to default value on boot. We can set to higher value later
Change-Id: Ibd6962a71fab7790f3dadfe2a4b31b849b9c3424
|
| |
|
|
|
|
|
|
|
|
| |
Thanks to Kyle Repinski <repinski23@gmail.com> for pinpointing the issue,
I just ifdef'd it and modified the return value to OMX_ErrorNotImplemented.
Since OMX_IndexParamConsumerUsageBits is fairly new, we're
assuming none of the current omap4 ducatis implement it.
Change-Id: Ib1e26c8be36d90ef1624699a5d4107ae25794951
|
| |
|
|
| |
Change-Id: I4b2f8b72601aae7c4baedd91ddfb6d6437de73f7
|
| |
|
|
|
|
|
|
|
| |
Utilize all in kernel GPU frequencies but we can limit it to spesific
value. Replacement for the old in kernel gpu_oc sysfs interface to
verclock the GPU, have no harm to non-overclocked kernel
Change-Id: I2d9d1f05b0306de074ffdd327e9bf2a23c9d973f
(cherry picked from commit b401521a4f1f8fad4daf3e261c27177873346cf4)
|
| |
|
|
| |
Change-Id: I1bdd4510dc54517e70b2bc196b6e371520665661
|
| |
|
|
| |
Change-Id: I0a17b1fd55aa1488e7b8c4cdde4d8aebc02bc6b5
|
| |
|
|
|
|
| |
Adds support for camera on the Galaxy Tab 2.
Change-Id: I8580dac218593b31e789f372ebb1f294d66cd5c3
|
| |
|
|
| |
Change-Id: I5d055f7da992c9c0fd71823c6ca0f18c95fc3be8
|
| |
|
|
|
|
|
| |
Missed this bit when migrating to hardware/ti/omap4. Without it,
the front-facing camera can't be used.
Change-Id: I1a47d2991afa71840225f0cab9f27a155eaed780
|