mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 05:08:31 +09:00
[Feat] (tools/cts): port dEQP MobileGL platform to desktop Linux
Guard the AImageReader window path behind __ANDROID__ and add a mobilegl-desktop DEQP target so glcts can run against libMobileGL.so on a Linux host via pbuffer surfaces (VK_EXT_headless_surface).
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#-------------------------------------------------------------------------
|
||||
# VK-GL-CTS target: MobileGL on desktop Linux
|
||||
#
|
||||
# Builds glcts as a normal host executable that reaches OpenGL exclusively
|
||||
# through libMobileGL.so, loaded at runtime via the eglw dynamic wrapper.
|
||||
# Nothing here links libEGL or libGL: a conformance result must be
|
||||
# unambiguously MobileGL's, never the system GL stack's.
|
||||
#
|
||||
# The platform port only offers pbuffer surfaces on desktop; DirectVulkan's
|
||||
# pbuffer path works because desktop Vulkan exposes VK_EXT_headless_surface.
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
message("*** Using MobileGL desktop target")
|
||||
|
||||
set(DEQP_TARGET_NAME "MobileGL")
|
||||
|
||||
# EGL comes from libMobileGL.so via the eglw dynamic wrapper, so the support
|
||||
# flag is on but no import library is supplied.
|
||||
set(DEQP_SUPPORT_EGL ON)
|
||||
set(DEQP_EGL_LIBRARIES)
|
||||
set(DEQP_GLES2_LIBRARIES)
|
||||
set(DEQP_GLES3_LIBRARIES)
|
||||
|
||||
set(TCUTIL_PLATFORM_SRCS
|
||||
mobilegl/tcuMobileGLPlatform.cpp
|
||||
mobilegl/tcuMobileGLPlatform.hpp
|
||||
)
|
||||
|
||||
list(APPEND TCUTIL_PLATFORM_LIBS dl pthread)
|
||||
Reference in New Issue
Block a user