Hi Community,
I am building test suite for Open GL ES 2.0 with EGL support.When I run app ,i am getting above error while getting EGL extensions with API egl.querystring().
Anything I am missing here OR is it because of libMAli.so/libEGL.so/user-space-driver issue?
My platform is linux with x11 as window manager.
Let me know if you want more information
Thanks,
Vaibhav
Message was edited by: vaibhav
Hi vaibhav810,
Would you be able to send me the reference of the hardware you are using or at least the version of the Mali driver?
To do so you can use the following command:
strings libMali.so | grep -E "r[0-9]*p[0-9]-[0-9]*rel[0-9]"
Also could you send the code inside the function getPlatformExtensions, and what exactly the error you got was?
For code formatting you can use the advanced editor syntax highlighting option (Reply -> Advanced Editor top right -> Double > symbol).
Cheers,
Thomas
Hi Thomas,
I am using r5p1 driver.Please find output of strings libMali.so | grep -E "r[0-9]*p[0-9]-[0-9]*rel[0-9]" :
gles: BUILD=RELEASE ARCH=arch_011_udd PLATFORM=default_8a TRACE=0 THREAD= GEOM=mali_gp_geometry_common CORES=MALI400 USING_MALI400=1 TARGET_CORE_REVISION=0x0101 TOPLEVEL_REPO_URL=14c81bf REVISION=14c81bf CHANGED_REVISION=14c81bf REPO_URL=remotes/origin/r5p1-01rel0-compiler-10-g14c81bf BUILD_DATE=Wed Jun 1 16:00:15 UTC 2016 CHANGE_DATE=2016-05-19 23:26:47 +0000 TARGET_TOOLCHAIN=aarch64-linux-gcc HOST_TOOLCHAIN=gcc TARGET_TOOLCHAIN_VERSION=gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) HOST_TOOLCHAIN_VERSION=gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) TARGET_SYSTEM=aarch64-linux-gcc HOST_SYSTEM=gcc-aarch64-linux CPPFLAGS= CUSTOMER=internal VARIANT=mali400-r1p1-gles20-gles11-dma_buf-linux--no_Werror HOSTLIB=direct INSTRUMENTED=FALSE USING_MRI=FALSE MALI_TEST_API= UDD_OS=linux gles20: BUILD=RELEASE ARCH=arch_011_udd PLATFORM=default_8a TRACE=0 THREAD= GEOM=mali_gp_geometry_common CORES=MALI400 USING_MALI400=1 TARGET_CORE_REVISION=0x0101 TOPLEVEL_REPO_URL=14c81bf REVISION=14c81bf CHANGED_REVISION=14c81bf REPO_URL=remotes/origin/r5p1-01rel0-compiler-10-g14c81bf BUILD_DATE=Wed Jun 1 16:00:15 UTC 2016 CHANGE_DATE=2016-05-19 23:26:47 +0000 TARGET_TOOLCHAIN=aarch64-linux-gcc HOST_TOOLCHAIN=gcc TARGET_TOOLCHAIN_VERSION=gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) HOST_TOOLCHAIN_VERSION=gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) TARGET_SYSTEM=aarch64-linux-gcc HOST_SYSTEM=gcc-aarch64-linux CPPFLAGS= CUSTOMER=internal VARIANT=mali400-r1p1-gles20-gles11-dma_buf-linux--no_Werror HOSTLIB=direct INSTRUMENTED=FALSE USING_MRI=FALSE MALI_TEST_API= UDD_OS=linux 1.4 Linux-r5p1-01rel0 egl: BUILD=RELEASE ARCH=arch_011_udd PLATFORM=default_8a TRACE=0 THREAD= GEOM= CORES=MALI400 USING_MALI400=1 TARGET_CORE_REVISION=0x0101 TOPLEVEL_REPO_URL=537f1be REVISION=537f1be CHANGED_REVISION=537f1be REPO_URL=remotes/origin/r5p1-01rel0-compiler-11-g537f1be BUILD_DATE=Fri Jun 10 07:45:50 UTC 2016 CHANGE_DATE=2016-06-01 16:05:33 +0000 TARGET_TOOLCHAIN=aarch64-linux-gcc HOST_TOOLCHAIN=gcc TARGET_TOOLCHAIN_VERSION=gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) HOST_TOOLCHAIN_VERSION=gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) TARGET_SYSTEM=aarch64-linux-gcc HOST_SYSTEM=gcc-aarch64-linux CPPFLAGS= CUSTOMER=internal VARIANT=mali400-r1p1-gles20-gles11-dma_buf-linux--no_Werror HOSTLIB=direct INSTRUMENTED=FALSE USING_MRI=FALSE MALI_TEST_API= UDD_OS=linux base: BUILD=RELEASE ARCH=arch_011_udd PLATFORM=default_8a TRACE=0 THREAD= GEOM= CORES=MALI400 USING_MALI400=1 TARGET_CORE_REVISION=0x0101 TOPLEVEL_REPO_URL=14c81bf REVISION=14c81bf CHANGED_REVISION=14c81bf REPO_URL=remotes/origin/r5p1-01rel0-compiler-10-g14c81bf BUILD_DATE=Wed Jun 1 16:00:15 UTC 2016 CHANGE_DATE=2016-05-19 23:26:47 +0000 TARGET_TOOLCHAIN=aarch64-linux-gcc HOST_TOOLCHAIN=gcc TARGET_TOOLCHAIN_VERSION=gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) HOST_TOOLCHAIN_VERSION=gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) TARGET_SYSTEM=aarch64-linux-gcc HOST_SYSTEM=gcc-aarch64-linux CPPFLAGS= CUSTOMER=internal VARIANT=mali400-r1p1-gles20-gles11-dma_buf-linux--no_Werror HOSTLIB=direct INSTRUMENTED=FALSE USING_MRI=FALSE MALI_TEST_API= UDD_OS=linux Mali online shader compiler r5p1-01rel0 [Revision 96995].
Code inside the function getPlatformExtensions:
vector<string> getExtensions (const Library& egl, EGLDisplay display) { const char* const extensionStr = egl.queryString(display, EGL_EXTENSIONS); EGLU_CHECK_MSG(egl, "Querying extensions failed"); return de::splitString(extensionStr, ' '); } vector<string> getPlatformExtensions (const Library& egl) { tcu::print("#####GET EXTENSSS DISPLAY\n "); return getExtensions(egl, EGL_NO_DISPLAY); }
I am getting error EGL_BAD_DISPLAY at line no 03 of above code.(i.e. while querying string)
VK
I checked in our driver and in r5p1 EGL_EXT_platform_base was not yet implemented.
If EGL_EXT_platform_base was implemented eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS) would have been a valid function call (see Additions third paragraph).
The best way to solve your problem would be to follow myy answer and branch based on the output of the available symbols query.