This make the EGL/GLESv1/GLESv2 libraries on the guest to use the OPENGL bionic tls slot for faster tls access. Note that we still setting the slower tls in order to have the tls destructor which allow us to close the host connection when the thread exits. Gives slightly performance improvement, the avg score for the teapot test in 0xBench goes from 34 to 37 fps. (This test is near immediate mode since it renders a lot of small primitives so it is a good candicate to be improved). Change-Id: I9060c75cc29c2e28721fa11d3f318b438edb5da9
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
ifneq (,$(BUILD_EMULATOR_OPENGL_DRIVER))
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
emulatorOpengl := $(LOCAL_PATH)/../..
|
|
|
|
### OpenglSystemCommon ##############################################
|
|
include $(CLEAR_VARS)
|
|
|
|
# add additional depencies to ensure that the generated code that we depend on
|
|
# is generated
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
$(TARGET_OUT_SHARED_LIBRARIES)/lib_renderControl_enc$(TARGET_SHLIB_SUFFIX) \
|
|
$(TARGET_OUT_SHARED_LIBRARIES)/libGLESv1_enc$(TARGET_SHLIB_SUFFIX)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
gralloc.cpp
|
|
|
|
LOCAL_C_INCLUDES += bionic/libc/private
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
$(emulatorOpengl)/host/include/libOpenglRender \
|
|
$(emulatorOpengl)/shared/OpenglCodecCommon \
|
|
$(emulatorOpengl)/system/OpenglSystemCommon \
|
|
$(emulatorOpengl)/system/GLESv1_enc \
|
|
$(emulatorOpengl)/system/renderControl_enc \
|
|
$(call intermediates-dir-for, SHARED_LIBRARIES, lib_renderControl_enc) \
|
|
$(call intermediates-dir-for, SHARED_LIBRARIES, libGLESv1_enc)
|
|
|
|
LOCAL_MODULE_TAGS := debug
|
|
LOCAL_PRELINK_MODULE := false
|
|
LOCAL_CFLAGS:= -DLOG_TAG=\"gralloc_goldfish\"
|
|
LOCAL_MODULE_PATH = $(TARGET_OUT_SHARED_LIBRARIES)/hw
|
|
LOCAL_MODULE := gralloc.goldfish
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libOpenglCodecCommon
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcutils \
|
|
libOpenglSystemCommon \
|
|
libGLESv1_enc \
|
|
lib_renderControl_enc
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
endif # of ifneq (,$(GEODON_DRIVER))
|