Skip to content

Commit

Permalink
Upgrade to Android14
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Stratiienko <[email protected]>
  • Loading branch information
rsglobal committed Nov 16, 2023
1 parent b367774 commit f142d32
Show file tree
Hide file tree
Showing 10 changed files with 118 additions and 515 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Android 13 for the PinePhone based on the GloDroid project
# Android 14 for the PinePhone based on the GloDroid project

[![GloDroid](https://img.shields.io/badge/GLODROID-PROJECT-blue)](https://github.com/GloDroid/glodroid_manifest)
[![ProjectStatus](https://img.shields.io/badge/PROJECT-STATUS-yellowgreen)](https://github.com/GloDroidCommunity/pine64-pinephone/issues/2)
Expand Down
10 changes: 4 additions & 6 deletions manifests/glodroid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
<remove-project name="platform/external/drm_hwcomposer" />

<project path="glodroid" remote="glodroid" name="glodroid_configuration.git" groups="glodroid" revision="refs/tags/basedir-v0.9.0" />
<project path="glodroid/configuration" remote="glodroid" name="glodroid_configuration.git" groups="glodroid" revision="1ba92aede3fccf6fb07ef3787a7bdd55f58e03fc" />
<project path="glodroid/configuration" remote="glodroid" name="glodroid_configuration.git" groups="glodroid" revision="fb1f27634251f71bcb097409a0bd73d796994d4b" />

<project path="glodroid/apks" remote="glodroid" name="glodroid_external_apks.git" groups="glodroid" revision="refs/tags/apps-v0.8.2" />

<!-- gpu+display components (vendor) -->
<project path="glodroid/vendor/minigbm" remote="aosp" name="platform/external/minigbm" groups="glodroid" revision="84b3a09ef0e620c1b2ec19c7626c327e68a847bc" />
<project path="glodroid/vendor/drm_hwcomposer" remote="aosp" name="platform/external/drm_hwcomposer" groups="glodroid" revision="2bf68c374976d0a7a0e71c1843cbeae2a3210b74" />
<project path="glodroid/vendor/mesa3d" remote="aosp" name="platform/external/mesa3d" groups="glodroid" revision="refs/tags/upstream-mesa-23.1.5" />
<project path="glodroid/vendor/mesa3d" remote="aosp" name="platform/external/mesa3d" groups="glodroid" revision="0976dfeca29527c2175c6925d46cba84391910c3" />

<!-- camera components (vendor) -->
<project path="glodroid/vendor/libcamera" remote="libcamera" name="libcamera.git" groups="glodroid" revision="ea8ae5afff226f9373c82c1a3185e532d5d6eda0" />
Expand All @@ -44,8 +44,8 @@
<project path="glodroid/vendor/glib/subprojects/proxy-libintl" remote="github" name="frida/proxy-libintl.git" groups="glodroid" revision="refs/tags/0.4" />

<!-- other components (vendor) -->
<project path="glodroid/vendor/aospext" remote="glodroid" name="aospext.git" groups="glodroid" revision="03accdcd9e5f4dd08b9d9ad05c7f57ef4137b579" />
<project path="glodroid/vendor/iio-sensors-hal" remote="glodroid" name="glodroid_forks.git" groups="glodroid" revision="refs/tags/iio-sensors-hal-v0.9.0" />
<project path="glodroid/vendor/aospext" remote="glodroid" name="aospext.git" groups="glodroid" revision="70b07b612d4311695bb18e7614069d1ff046ff4a" />
<project path="glodroid/vendor/iio-sensors-hal" remote="glodroid" name="glodroid_forks.git" groups="glodroid" revision="refs/tags/iio-sensors-hal-2023w46" />
<project path="glodroid/vendor/tinyhal" remote="github" name="CirrusLogic/tinyhal.git" groups="glodroid" revision="9c5df120b33ca51f05d4f997da659111ab63498e" />
<project path="glodroid/vendor/libudev-zero" remote="glodroid" name="glodroid_forks.git" groups="glodroid" revision="refs/tags/libudev_zero-v0.8.2" />

Expand All @@ -64,7 +64,5 @@
remote="glodroid" name="linaro_gcc_prebuilts.git" groups="glodroid" revision="refs/tags/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu" />
<project path="prebuilts/gcc/linux-x86/or1k/gcc-linux-or1k"
remote="glodroid" name="linaro_gcc_prebuilts.git" groups="glodroid" revision="refs/tags/openrisc--musl--stable-2020.08-1" />
<project path="glodroid/compilers/rust/1.65.0"
remote="glodroid" name="linaro_gcc_prebuilts.git" groups="glodroid" revision="refs/tags/rust-v1.65.0-linux-x86" />

</manifest>
2 changes: 1 addition & 1 deletion manifests/update_lineage_manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi

echo Init repo tree using LineageOS manifest
pushd ../aosptree
repo init -u https://github.com/LineageOS/android.git -b refs/heads/lineage-20.0
repo init -u https://github.com/LineageOS/android.git -b refs/heads/lineage-21.0
repo sync -c
repo manifest -r -o ../manifests/lineage-static.xml
popd
Expand Down
29 changes: 0 additions & 29 deletions patches-aosp/build/soong/0001-GLODROID-Don-t-use-clang-tidy.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
From 28c04d764e13884793d468fa74a3c35b6ee12736 Mon Sep 17 00:00:00 2001
From: Roman Stratiienko <[email protected]>
Date: Tue, 14 Nov 2023 03:47:47 +0200
Subject: [PATCH 3/3] Revert "HWUI: reset buffer state after MakeCurrent"

Causes OpenGL error with mesa3d/lima.

This reverts commit 4a012f5d3f630b2913df0163f79bf2f584c7c0f0.
Change-Id: I226197bf853b4fb8b617c855736d64d6dd089dfd
Signed-off-by: Roman Stratiienko <[email protected]>
---
.../hwui/pipeline/skia/SkiaOpenGLPipeline.cpp | 33 -------------------
1 file changed, 33 deletions(-)

diff --git a/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp b/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp
index c4d3f5cedfa8..2a8cb42f7675 100644
--- a/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp
+++ b/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp
@@ -53,8 +53,6 @@ SkiaOpenGLPipeline::~SkiaOpenGLPipeline() {
}

MakeCurrentResult SkiaOpenGLPipeline::makeCurrent() {
- bool wasSurfaceless = mEglManager.isCurrent(EGL_NO_SURFACE);
-
// In case the surface was destroyed (e.g. a previous trimMemory call) we
// need to recreate it here.
if (mHardwareBuffer) {
@@ -67,37 +65,6 @@ MakeCurrentResult SkiaOpenGLPipeline::makeCurrent() {
if (!mEglManager.makeCurrent(mEglSurface, &error)) {
return MakeCurrentResult::AlreadyCurrent;
}
-
- // Make sure read/draw buffer state of default framebuffer is GL_BACK. Vendor implementations
- // disagree on the draw/read buffer state if the default framebuffer transitions from a surface
- // to EGL_NO_SURFACE and vice-versa. There was a related discussion within Khronos on this topic.
- // See https://cvs.khronos.org/bugzilla/show_bug.cgi?id=13534.
- // The discussion was not resolved with a clear consensus
- if (error == 0 && wasSurfaceless && mEglSurface != EGL_NO_SURFACE) {
- GLint curReadFB = 0;
- GLint curDrawFB = 0;
- glGetIntegerv(GL_READ_FRAMEBUFFER_BINDING, &curReadFB);
- glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &curDrawFB);
-
- GLint buffer = GL_NONE;
- glBindFramebuffer(GL_FRAMEBUFFER, 0);
- glGetIntegerv(GL_DRAW_BUFFER0, &buffer);
- if (buffer == GL_NONE) {
- const GLenum drawBuffer = GL_BACK;
- glDrawBuffers(1, &drawBuffer);
- }
-
- glGetIntegerv(GL_READ_BUFFER, &buffer);
- if (buffer == GL_NONE) {
- glReadBuffer(GL_BACK);
- }
-
- glBindFramebuffer(GL_READ_FRAMEBUFFER, curReadFB);
- glBindFramebuffer(GL_DRAW_FRAMEBUFFER, curDrawFB);
-
- GL_CHECKPOINT(LOW);
- }
-
return error ? MakeCurrentResult::Failed : MakeCurrentResult::Succeeded;
}

--
2.39.2

This file was deleted.

Loading

0 comments on commit f142d32

Please sign in to comment.