summaryrefslogtreecommitdiff
path: root/opengl/libs
AgeCommit message (Collapse)Author
2021-06-15Avoid trying to disconnect twice with ANGLEJason Macnak
The Vulkan runtime makes all the native_window_* calls when running with ANGLE. Noticed while debugging b/184280023. Bug: b/154237217 Test: MixedDeviceOwnerTest on Cuttlefish w/ SwANGLE Change-Id: Ie7c5ebcedf6eb0c23fdd1223c0ef866d4a2d9944
2021-06-04eglSurfaceAttrib EGL_TIMESTAMPS_ANDROID non-window surface fix.rnlee
The spec says: "If attribute is EGL_TIMESTAMPS_ANDROID, then values specifies whether to enable/disable timestamp collection for this surface. A value of EGL_TRUE enables timestamp collection, while a value of EGL_FALSE disables it. The initial value is false. If surface is not a window surface this has no effect." Setting an error is considered a side effect, so return EGL_TRUE for EGL_TIMESTAMPS_ANDROID attribute. BUG: 174481138 Test: APK b/174481138#comment1, `adb logcat *:E -e egl` no error Change-Id: Ia6f04126bd3dead47648a1c71f7100224f28553d
2021-04-28Merge "Remove llndk_headers module" am: aaf8e170a6 am: b86e54d22b am: 4078d3da96Colin Cross
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1687409 Change-Id: I0e3816057ecd94461f7e291fc9033b98bc8b9dc3
2021-04-27Merge "Replace llndk_library with llndk clause in cc_library" am: b962746880 ↵Colin Cross
am: 6a34a736ab am: d4dfe6ffcb Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1684009 Change-Id: I25715d0af7d5cf74bd283947ba9378e2f27d4ef2
2021-04-26Remove llndk_headers moduleColin Cross
Use a cc_library_headers module with llndk.llndk_headers: true instead of an llndk_headers module. Bug: 170784825 Test: m checkbuild Test: compare out/soong/build.ninja Change-Id: I6717ab613adde20652f6e861ca7179e202e63a83
2021-04-22Replace llndk_library with llndk clause in cc_libraryColin Cross
Remove the vestigial llndk_library modules and replace them with properties in the llndk clause of the implementation cc_library. Bug: 170784825 Test: m checkbuild Test: compare out/soong/build.ninja Change-Id: Ic4a19a87c64e29c10c550e3b891859559bcb5324
2021-03-05Read ro.hardware.egl for ANGLE's filenameTim Van Patten
The ANGLE shared object filename is currently hardcoded to libGLESv2_angle.so, which prevents OEMs from specifying their own filename when using ANGLE as the default OpenGL ES driver. This CL updates initializeAnglePlatform() to build the ANGLE library filename using the suffix specified by ro.hardware.egl when loading ANGLE as the default OpenGL ES driver. The filename when loading ANGLE from an APK will remain libGLESv2_angle.so, for compatibilty reasons. This enforces naming conventions when loading ANGLE APKs on to the device, regardless of the name of the built-in version of ANGLE. Bug: 178871212 Test: Build and launch CF Merged-In: I462e076fc500d84fa2a27abfa491f82db4a9df80 Change-Id: I59805445fd101707bda867d29c23a25e24f173d8
2021-03-04Read ro.hardware.egl for ANGLE's filenameTim Van Patten
The ANGLE shared object filename is currently hardcoded to libGLESv2_angle.so, which prevents OEMs from specifying their own filename when using ANGLE as the default OpenGL ES driver. This CL updates initializeAnglePlatform() to build the ANGLE library filename using the suffix specified by ro.hardware.egl when loading ANGLE as the default OpenGL ES driver. The filename when loading ANGLE from an APK will remain libGLESv2_angle.so, for compatibilty reasons. This enforces naming conventions when loading ANGLE APKs on to the device, regardless of the name of the built-in version of ANGLE. Bug: 178871212 Test: Build and launch CF Change-Id: I462e076fc500d84fa2a27abfa491f82db4a9df80
2021-03-02Load ANGLEResetDisplayPlatform via dlsymJason Macnak
... which is slightly more defensive than loading the function via eglGetProcAddress. When loading the function via eglGetProcAdress, the returned function pointer will be one of the ext forwardering helpers (__glExtFwd0 in this observed case). The process can then crash if eglTerminate() is called on a new thread that has not yet called eglMakeCurrent() where the thread local gl_hooks_t is 0x0. Bug: b/181162754 Test: HeifWriterTest on Cuttlefish w/ SwANGLE Change-Id: Ieebea08184e63321abbeccf41d1fdaf10e62ca2b Merged-In: Ia8e55c899f9fde91215ce75313b33517f8440fee
2021-02-25Load ANGLEResetDisplayPlatform via dlsymJason Macnak
... which is slightly more defensive than loading the function via eglGetProcAddress. When loading the function via eglGetProcAdress, the returned function pointer will be one of the ext forwardering helpers (__glExtFwd0 in this observed case). The process can then crash if eglTerminate() is called on a new thread that has not yet called eglMakeCurrent() where the thread local gl_hooks_t is 0x0. Bug: b/181162754 Test: HeifWriterTest on Cuttlefish w/ SwANGLE Change-Id: Ia8e55c899f9fde91215ce75313b33517f8440fee
2021-02-17[LSC] Add LOCAL_LICENSE_KINDS to frameworks/nativeBob Badour
Added SPDX-license-identifier-Apache-2.0 to: cmds/atrace/Android.bp cmds/bugreport/Android.bp cmds/bugreportz/Android.bp cmds/cmd/Android.bp cmds/dumpstate/Android.bp cmds/dumpsys/Android.bp cmds/dumpsys/tests/Android.bp cmds/flatland/Android.mk cmds/idlcli/Android.bp cmds/installd/Android.bp cmds/installd/tests/Android.bp cmds/ip-up-vpn/Android.mk cmds/lshal/Android.bp cmds/lshal/libprocpartition/Android.bp cmds/rawbu/Android.bp cmds/rss_hwm_reset/Android.bp cmds/service/Android.bp cmds/servicemanager/Android.bp cmds/surfacereplayer/Android.bp cmds/surfacereplayer/replayer/Android.bp libs/adbd_auth/Android.bp libs/android_runtime_lazy/Android.bp libs/arect/Android.bp libs/binder/Android.bp libs/binder/ndk/Android.bp libs/binder/ndk/tests/Android.bp libs/binder/parcel_fuzzer/Android.bp libs/binder/rust/Android.bp libs/binder/rust/tests/Android.bp libs/binder/tests/Android.bp libs/binder/tests/fuzzers/Android.bp libs/binderdebug/Android.bp libs/binderdebug/tests/Android.bp libs/binderthreadstate/1.0/Android.bp libs/binderthreadstate/Android.bp libs/bufferqueueconverter/Android.bp libs/cputimeinstate/Android.bp libs/diskusage/Android.bp libs/dumputils/Android.bp libs/fakeservicemanager/Android.bp libs/gralloc/types/Android.bp libs/gralloc/types/fuzzer/Android.bp libs/gralloc/types/tests/Android.bp libs/graphicsenv/Android.bp libs/gui/Android.bp libs/gui/sysprop/Android.bp libs/gui/tests/Android.bp libs/incidentcompanion/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/math/Android.bp libs/math/tests/Android.bp libs/nativebase/Android.bp libs/nativedisplay/Android.bp libs/nativewindow/Android.bp libs/nativewindow/tests/Android.bp libs/renderengine/Android.bp libs/renderengine/tests/Android.bp libs/sensor/Android.bp libs/sensor/tests/Android.bp libs/sensorprivacy/Android.bp libs/ui/Android.bp libs/ui/tests/Android.bp libs/ui/tools/Android.bp libs/vibrator/Android.bp libs/vibrator/fuzzer/Android.bp libs/vr/libpdx/Android.bp libs/vr/libpdx/fuzz/Android.bp libs/vr/libvr_manager/Android.bp opengl/libs/Android.bp opengl/tests/EGLTest/Android.bp opengl/tests/fillrate/Android.bp opengl/tests/finish/Android.bp opengl/tests/gl2_basic/Android.bp opengl/tests/gl2_cameraeye/Android.bp opengl/tests/gl2_copyTexImage/Android.bp opengl/tests/gl2_java/Android.bp opengl/tests/gl2_jni/Android.bp opengl/tests/gl2_yuvtex/Android.bp opengl/tests/gl_jni/Android.bp opengl/tests/gl_perf/Android.bp opengl/tests/gl_perfapp/Android.bp opengl/tests/gl_yuvtex/Android.bp opengl/tests/gldual/Android.bp opengl/tests/gralloc/Android.bp opengl/tests/hwc/Android.bp opengl/tests/lib/Android.bp opengl/tests/lighting1709/Android.bp opengl/tests/linetex/Android.bp opengl/tests/swapinterval/Android.bp opengl/tests/testFramerate/Android.bp opengl/tests/testLatency/Android.bp opengl/tests/testPauseResume/Android.bp opengl/tests/testViewport/Android.bp opengl/tests/textures/Android.bp services/audiomanager/Android.bp services/automotive/display/Android.bp services/batteryservice/Android.bp services/displayservice/Android.bp services/gpuservice/Android.bp services/gpuservice/bpfprogs/Android.bp services/gpuservice/gpumem/Android.bp services/gpuservice/gpustats/Android.bp services/gpuservice/tests/unittests/Android.bp services/gpuservice/tracing/Android.bp services/inputflinger/Android.bp services/inputflinger/benchmarks/Android.bp services/inputflinger/dispatcher/Android.bp services/inputflinger/host/Android.bp services/inputflinger/reader/Android.bp services/inputflinger/reporter/Android.bp services/inputflinger/tests/Android.bp services/inputflinger/tests/fuzzers/Android.bp services/powermanager/Android.bp services/schedulerservice/Android.bp services/sensorservice/Android.bp services/sensorservice/hidl/Android.bp services/sensorservice/tests/Android.bp services/stats/Android.bp services/surfaceflinger/Android.bp services/surfaceflinger/CompositionEngine/Android.bp services/surfaceflinger/TimeStats/Android.bp services/surfaceflinger/TimeStats/timestatsproto/Android.bp services/surfaceflinger/layerproto/Android.bp services/surfaceflinger/sysprop/Android.bp services/surfaceflinger/tests/Android.bp services/surfaceflinger/tests/fakehwc/Android.bp services/surfaceflinger/tests/unittests/Android.bp services/surfaceflinger/tests/vsync/Android.bp services/surfaceflinger/tests/waitforvsync/Android.bp services/utils/Android.bp services/utils/tests/Android.bp services/vr/hardware_composer/Android.bp services/vr/virtual_touchpad/Android.bp vulkan/libvulkan/Android.bp vulkan/nulldrv/Android.bp vulkan/vkjson/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS legacy_notice to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/Android.bp opengl/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: libs/vr/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: headers/Android.bp services/vr/Android.bp vulkan/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS to: cmds/surfacereplayer/proto/Android.bp libs/vr/libbroadcastring/Android.bp libs/vr/libbufferhub/Android.bp libs/vr/libbufferhubqueue/Android.bp libs/vr/libbufferhubqueue/benchmarks/Android.bp libs/vr/libbufferhubqueue/tests/Android.bp libs/vr/libdisplay/Android.bp libs/vr/libdvr/Android.bp libs/vr/libdvr/tests/Android.bp libs/vr/libdvrcommon/Android.bp libs/vr/libpdx_default_transport/Android.bp libs/vr/libpdx_uds/Android.bp libs/vr/libperformance/Android.bp libs/vr/libvrflinger/Android.bp libs/vr/libvrflinger/tests/Android.bp libs/vr/libvrsensor/Android.bp opengl/tests/configdump/Android.bp opengl/tests/filter/Android.bp opengl/tests/gl_basic/Android.bp opengl/tests/tritex/Android.bp services/vr/bufferhubd/Android.bp services/vr/hardware_composer/aidl/Android.bp Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/tests/angeles/Android.bp Added SPDX-license-identifier-MIT to: services/vr/performanced/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ib1de8cd7b87446de45d79db15cd90b93a591846d Merged-in: Ib1de8cd7b87446de45d79db15cd90b93a591846d
2021-02-15[LSC] Add LOCAL_LICENSE_KINDS to frameworks/nativeBob Badour
Added SPDX-license-identifier-Apache-2.0 to: cmds/atrace/Android.bp cmds/bugreport/Android.bp cmds/bugreportz/Android.bp cmds/cmd/Android.bp cmds/dumpstate/Android.bp cmds/dumpsys/Android.bp cmds/dumpsys/tests/Android.bp cmds/flatland/Android.mk cmds/idlcli/Android.bp cmds/installd/Android.bp cmds/installd/tests/Android.bp cmds/ip-up-vpn/Android.mk cmds/lshal/Android.bp cmds/lshal/libprocpartition/Android.bp cmds/rawbu/Android.bp cmds/rss_hwm_reset/Android.bp cmds/service/Android.bp cmds/servicemanager/Android.bp cmds/surfacereplayer/Android.bp cmds/surfacereplayer/replayer/Android.bp libs/adbd_auth/Android.bp libs/android_runtime_lazy/Android.bp libs/arect/Android.bp libs/binder/Android.bp libs/binder/ndk/Android.bp libs/binder/ndk/tests/Android.bp libs/binder/parcel_fuzzer/Android.bp libs/binder/rust/Android.bp libs/binder/rust/tests/Android.bp libs/binder/tests/Android.bp libs/binder/tests/fuzzers/Android.bp libs/binderdebug/Android.bp libs/binderdebug/tests/Android.bp libs/binderthreadstate/1.0/Android.bp libs/binderthreadstate/Android.bp libs/bufferqueueconverter/Android.bp libs/cputimeinstate/Android.bp libs/diskusage/Android.bp libs/dumputils/Android.bp libs/fakeservicemanager/Android.bp libs/gralloc/types/Android.bp libs/gralloc/types/fuzzer/Android.bp libs/gralloc/types/tests/Android.bp libs/graphicsenv/Android.bp libs/gui/Android.bp libs/gui/sysprop/Android.bp libs/gui/tests/Android.bp libs/incidentcompanion/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/math/Android.bp libs/math/tests/Android.bp libs/nativebase/Android.bp libs/nativedisplay/Android.bp libs/nativewindow/Android.bp libs/nativewindow/tests/Android.bp libs/renderengine/Android.bp libs/renderengine/tests/Android.bp libs/sensor/Android.bp libs/sensor/tests/Android.bp libs/sensorprivacy/Android.bp libs/ui/Android.bp libs/ui/tests/Android.bp libs/ui/tools/Android.bp libs/vibrator/Android.bp libs/vibrator/fuzzer/Android.bp libs/vr/libpdx/Android.bp libs/vr/libpdx/fuzz/Android.bp libs/vr/libvr_manager/Android.bp opengl/libs/Android.bp opengl/tests/EGLTest/Android.bp opengl/tests/fillrate/Android.bp opengl/tests/finish/Android.bp opengl/tests/gl2_basic/Android.bp opengl/tests/gl2_cameraeye/Android.bp opengl/tests/gl2_copyTexImage/Android.bp opengl/tests/gl2_java/Android.bp opengl/tests/gl2_jni/Android.bp opengl/tests/gl2_yuvtex/Android.bp opengl/tests/gl_jni/Android.bp opengl/tests/gl_perf/Android.bp opengl/tests/gl_perfapp/Android.bp opengl/tests/gl_yuvtex/Android.bp opengl/tests/gldual/Android.bp opengl/tests/gralloc/Android.bp opengl/tests/hwc/Android.bp opengl/tests/lib/Android.bp opengl/tests/lighting1709/Android.bp opengl/tests/linetex/Android.bp opengl/tests/swapinterval/Android.bp opengl/tests/testFramerate/Android.bp opengl/tests/testLatency/Android.bp opengl/tests/testPauseResume/Android.bp opengl/tests/testViewport/Android.bp opengl/tests/textures/Android.bp services/audiomanager/Android.bp services/automotive/display/Android.bp services/batteryservice/Android.bp services/displayservice/Android.bp services/gpuservice/Android.bp services/gpuservice/bpfprogs/Android.bp services/gpuservice/gpumem/Android.bp services/gpuservice/gpustats/Android.bp services/gpuservice/tests/unittests/Android.bp services/gpuservice/tracing/Android.bp services/inputflinger/Android.bp services/inputflinger/benchmarks/Android.bp services/inputflinger/dispatcher/Android.bp services/inputflinger/host/Android.bp services/inputflinger/reader/Android.bp services/inputflinger/reporter/Android.bp services/inputflinger/tests/Android.bp services/inputflinger/tests/fuzzers/Android.bp services/powermanager/Android.bp services/schedulerservice/Android.bp services/sensorservice/Android.bp services/sensorservice/hidl/Android.bp services/sensorservice/tests/Android.bp services/stats/Android.bp services/surfaceflinger/Android.bp services/surfaceflinger/CompositionEngine/Android.bp services/surfaceflinger/TimeStats/Android.bp services/surfaceflinger/TimeStats/timestatsproto/Android.bp services/surfaceflinger/layerproto/Android.bp services/surfaceflinger/sysprop/Android.bp services/surfaceflinger/tests/Android.bp services/surfaceflinger/tests/fakehwc/Android.bp services/surfaceflinger/tests/unittests/Android.bp services/surfaceflinger/tests/vsync/Android.bp services/surfaceflinger/tests/waitforvsync/Android.bp services/utils/Android.bp services/utils/tests/Android.bp services/vr/hardware_composer/Android.bp services/vr/virtual_touchpad/Android.bp vulkan/libvulkan/Android.bp vulkan/nulldrv/Android.bp vulkan/vkjson/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS legacy_notice to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/Android.bp opengl/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: libs/vr/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: headers/Android.bp services/vr/Android.bp vulkan/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS to: cmds/surfacereplayer/proto/Android.bp libs/vr/libbroadcastring/Android.bp libs/vr/libbufferhub/Android.bp libs/vr/libbufferhubqueue/Android.bp libs/vr/libbufferhubqueue/benchmarks/Android.bp libs/vr/libbufferhubqueue/tests/Android.bp libs/vr/libdisplay/Android.bp libs/vr/libdvr/Android.bp libs/vr/libdvr/tests/Android.bp libs/vr/libdvrcommon/Android.bp libs/vr/libpdx_default_transport/Android.bp libs/vr/libpdx_uds/Android.bp libs/vr/libperformance/Android.bp libs/vr/libvrflinger/Android.bp libs/vr/libvrflinger/tests/Android.bp libs/vr/libvrsensor/Android.bp opengl/tests/configdump/Android.bp opengl/tests/filter/Android.bp opengl/tests/gl_basic/Android.bp opengl/tests/tritex/Android.bp services/vr/bufferhubd/Android.bp services/vr/hardware_composer/aidl/Android.bp Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/tests/angeles/Android.bp Added SPDX-license-identifier-MIT to: services/vr/performanced/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ib1de8cd7b87446de45d79db15cd90b93a591846d Merged-in: I61e7702e6b36f218bebc7c87853001861a92741e Merged-in: I9d9d5fb32033c08cfb517f6cfc0ecb4cf1eee2fe Merged-in: I10f45547b1161e3768a134b38bf40d77a3a82f09
2021-01-06OpenGL: allow to expose EGL_NV_context_priority_realtimeYiwei Zhang
Bug: 168740533 Test: manual test Change-Id: I296cc531b1299a925494776c42ddb6fb8536b6b3
2020-12-22Merge "Rearrange opengl llndk libraries to be next to implementations" am: ↵Colin Cross
64618017e4 am: 1fd5529a5f am: 3cd6312b91 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1532114 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I10b8edbebc93e28c58ec77743d0d0cd6da652aba
2020-12-17Rearrange opengl llndk libraries to be next to implementationsColin Cross
As an intermediate step towards removing llndk_library modules in favor of using llndk properties in the cc_library directly, move the llndk_library modules next to the cc_library modules so that the paths in the llndk_library properites are correct when Soong copies the properties into the cc_library module. Bug: 170784825 Test: m checkbuild Change-Id: I41674ad253b009d1cf528dc7b480676fb29edabd
2020-11-13Vulkan/OpenGL: log dlerror for loading updatable gfx driverYiwei Zhang
Test: build Change-Id: Ifcb57266f5d93767ba911f70695e0bbbeace98e6
2020-10-23Merge "Make the connection between implementation and llndk_library ↵Colin Cross
explicit" am: 1aba8aec4a am: 11bead39fb am: a59e1fdbad am: c6ed0c9d99 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1466883 Change-Id: I633c5b7517ba5ad0be846b0367de4f8f31774e1f
2020-10-19Make the connection between implementation and llndk_library explicitColin Cross
Instead of assuming a module with the .llndk suffix exists, add an llndk_stubs property to every cc_library module that has a corresponding llndk_library. Also rename the llndk_library to have an explicit .llndk suffix. Bug: 170784825 Test: no changes to build.ninja (excluding comments) or Android-${TARGET_PRODUCT}.mk Change-Id: Ic4fa093f126490394909867a08448ed886bc5955
2020-10-13OpenGL: fix initializeAnglePlatform with built-in ANGLE driverYiwei Zhang
When ANGLE namespace doesn't exist and initializeAnglePlatform is called, ANGLE driver is loaded as built-in gl driver in sphal namespace. This change fixes the fallback path here. Bug: 154237217 Test: atest CtsAngleIntegrationHostTestCases Change-Id: I0e4ecf65fac0d91b5542d475439e1e6f9541b629 Merged-In: I0e4ecf65fac0d91b5542d475439e1e6f9541b629
2020-09-26Plumb ANGLE EGL features for debugging.Peiyong Lin
Bug: b/169156341 Test: use adb shell command to verify Change-Id: Id488508d4858c4604108952fef512fa5086a2aa6
2020-09-10Fix support of different attrib_list in eglGetPlatformDisplayWoody Chow
Regression was introduced by ag/5161774, where different EGLDisplay(s) with the same display type but different attrib_list(s) would share the same egl_display_t object. Only the first EGLDisplay associated with the egl_display_t would be initialized. Bug: 162381841 Test: Run android.graphics.cts.EGL15Test in CtsGraphicsTestCases Change-Id: I4419e0f9f0d0f6491e7fae397b6c8926405ca836
2020-08-29Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)Xin Li
Bug: 166295507 Merged-In: I70ea776b8589ac3a7982c710c5c8b2941d86e55b Change-Id: Ic1d535e9d2d6f80d95215240dbdb024995b045f8
2020-08-14OpenGL: fix initializeAnglePlatform with built-in ANGLE driverYiwei Zhang
When ANGLE namespace doesn't exist and initializeAnglePlatform is called, ANGLE driver is loaded as built-in gl driver in sphal namespace. This change fixes the fallback path here. Bug: 154237217 Test: atest CtsAngleIntegrationHostTestCases Change-Id: I0e4ecf65fac0d91b5542d475439e1e6f9541b629
2020-08-13EGL: refactor and enforce clang-formatYiwei Zhang
Test: build, flash and boot Change-Id: Idbc4426ef485f7fc18a6a499f5933437af14fac8
2020-08-12EGL: remove redundant codes for hibernationYiwei Zhang
Test: build Change-Id: I34335eebcd69fe6c42ed16d0d927cd78af815d28
2020-08-12Expose EGL_ANDROID_native_fence_sync to the applicationsYiwei Zhang
This change also sorts the global extension lists in alphabetical order. Bug: 157518032 Test: build, compile, boot Test: EGL_ANDROID_native_fence_sync in RenderEngine dump Change-Id: I6614b9532daf7747fcadbe38744d5293cf8198b4
2020-07-29Merge "OpenGL: Use more inclusive terms" am: 303d4ecdad am: 4464572a00 am: ↵Treehugger Robot
302b6f8f50 am: 171f2e8621 am: 45f145093a Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1374795 Change-Id: I4699eec711e458ea2b3381040f71027f1deb4939
2020-07-29Merge "OpenGL: Use more inclusive terms" am: 303d4ecdad am: 4464572a00Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1374795 Change-Id: Ib0b17ff7397b2682b69b0ba1d331a64590d3816e
2020-07-28OpenGL: Use more inclusive termsYiwei Zhang
Bug: 162288333 Test: build Change-Id: I290a827e26fcd186a0461a568e41d0c50b7e19cd
2020-07-21Merge "vulkan/opengl: rename some vars and comments"Treehugger Robot
2020-07-21vulkan/opengl: rename some vars and commentsYiwei Zhang
Fixes: 159027425 Test: ./vulkan/scripts/code_generator.py and build Change-Id: I23524a0c65d0c7c31e4dc3859ce7b979f9093553 Merged-In: I23524a0c65d0c7c31e4dc3859ce7b979f9093553
2020-06-25Merge "opengl: Check GL_EXT_debug_marker before using it."TreeHugger Robot
2020-06-24opengl: Check GL_EXT_debug_marker before using it.Tao Wu
The old code just use eglGetProcAddress to get function pointers without checking if GL_EXT_debug_marker is supported. This doesn't work for some implementation like MESA. If GL_EXT_debug_marker isn't supported, reset those function pointers to gl_noop. Bug: 155935219 Test: manual - Run dEQP-GLES2.functional.debug_marker#random on ARCVM Change-Id: I93fa8fb419ccde46fef6dd9a2a4ec84f15db3284
2020-06-23Merge "opengl: Fix wrong comments"TreeHugger Robot
2020-06-23opengl: Fix wrong commentsTao Wu
GL_EXT_debug_marker and GL_EXT_debug_label are different extensions. Bug: None Test: m -j32 Change-Id: I18511b5b25370fba7864969651ab69d08931d5c0
2020-06-15Merge "vulkan/opengl: rename some vars and comments" into rvc-dev am: ↵TreeHugger Robot
0cc0df1e13 am: eb00380be8 am: 29b107d56f am: cc12f5d836 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11869147 Change-Id: I8223fe115cec042af5c8b3bd6212c4c9cbaa690a
2020-06-15Merge "vulkan/opengl: rename some vars and comments" into rvc-dev am: 0cc0df1e13TreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11869147 Change-Id: I5981a2b67ca28aa5fd81333ad8d65ce122ba206f
2020-06-15vulkan/opengl: rename some vars and commentsYiwei Zhang
Fixes: 159027425 Test: ./vulkan/scripts/code_generator.py and build Change-Id: I23524a0c65d0c7c31e4dc3859ce7b979f9093553
2020-06-04OpenGL: let eglext_angle.h include eglext.h for platformYiwei Zhang
EGLStreamKHR and EGLDeviceEXT used by eglext_angle.h is undefined without eglext.h. From the description of eglext_angle.h, it's just for patching eglext.h and should never be explictly included. However, eglext.h is generated from EGL spec. So we'd better not manually modify eglext.h to include eglext_angle.h at the bottom. This change just let eglext_angle.h include eglext.h. Bug: 158235687 Test: build, flash and boot Change-Id: I02f992d880cce41b3ddc70fb5a28a87a64f05ec7
2020-06-04OpenGL: Clean up legacy __ANDROID_VNDK__ in libEGLYiwei Zhang
libEGL has already been marked as LLNDK, thus the __ANDROID_VNDK__ doesn't make sense inside libEGL anymore. Test: BOARD_VNDK_VERSION=current m -j libEGL.vendor Test: BOARD_VNDK_VERSION=current m -j libGLESv2.vendor Change-Id: Ib96985ad35093b3bd6eb16237f133703bc267fa0
2020-05-15Merge "Update libEGL to use android::base properties instead of cutils" into ↵Michael Hoisie
rvc-dev am: 9c6dd35a07 am: c4661093a2 am: 5e93a1ab45 am: 32c17de103 Change-Id: I54f129332c037096aaca76b15d09ace67733998e
2020-05-15Merge "Update libEGL to use android::base properties instead of cutils" into ↵Michael Hoisie
rvc-dev am: 9c6dd35a07 Change-Id: If37bb8c662df0834dbdce859b5714e86c7905f39
2020-05-01Update libEGL to use android::base properties instead of cutilsMichael Hoisie
android::base properties work on host and are generally more concise than cutils properties. Also, add libbase to egl_libs_defaults. This does not actually add another dependency because libbase is already a dependency via libbacktrace. Bug: 155436554 Test: atest libEGL_test Test: build, flash and boot Change-Id: Ibf66e01ce93524eaa29098ae9c57bc6452133f76
2020-04-30Merge "Use ANGLEGetDisplayPlatform for ANGLE determination"TreeHugger Robot
2020-04-30Use ANGLEGetDisplayPlatform for ANGLE determinationCourtney Goeltzenleuchter
ANGLEGetDisplayPlatform is used to initialize various ANGLE related system features. Use that to determine if loaded library is ANGLE or not. This function is used elsewhere in the EGL loader. If it changes it will be easier to catch all the dependencies if we use the same name. Test: atest CtsAngleIntegrationHostTestCases Bug: b/154237217 Change-Id: Ibc579604820ff1118f4dc703f0805df36359ba70
2020-04-30Merge "Remove unused libhardware_headers dependency from libEGL" into ↵Michael Hoisie
rvc-dev am: 11d7674745 am: e8c87effc3 Change-Id: Ia8d37a3d400cdb447797309dbdc7d7f1fdc3f809
2020-04-30Merge "Remove unused libhardware_headers dependency from libEGL" into ↵Michael Hoisie
rvc-dev am: 11d7674745 Change-Id: Ib4d194b0e39d4ae59e15d07f964fa697bd2709d0
2020-04-29Remove unused libhardware_headers dependency from libEGLMichael Hoisie
The libhardware_headers dependency is not being used in libEGL. Bug: 155235859 Test: m -j Change-Id: I4b24daf7255d9e109deed4f371327d3817c4d0e0
2020-04-28Merge "Allow native driver to be ANGLE" into rvc-dev am: eeff9de91c am: ↵TreeHugger Robot
8e9575bf91 Change-Id: I632f373422a13a9b538c938babb36b47c80104f6
2020-04-28Merge "Allow native driver to be ANGLE" into rvc-dev am: eeff9de91cTreeHugger Robot
Change-Id: I6329da0aeed8081578f8f7ad08babb65a815ffac