Skip to content

Commit

Permalink
Enable bugmgr with i915_production
Browse files Browse the repository at this point in the history
Replace i915 bufmgr with i915_production for fixing the crash with agama kernel
when ENABLE_PRODUCTION_KMD is ON
otherwise include i915

Signed-off-by: Shaofeng Tang <[email protected]>
Signed-off-by: zhangyichix <[email protected]>
  • Loading branch information
Shao-Feng committed Mar 13, 2024
1 parent 751bfcd commit 0fd868c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion media_driver/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ LOCAL_SRC_FILES := \
../media_softlet/linux/common/ddi/media_libva_util_next.cpp \
../media_softlet/linux/common/media_interfaces/media_interfaces_next.cpp \
../media_softlet/linux/common/os/hwinfo_linux.cpp \
../media_softlet/linux/common/os/i915/mos_bufmgr.c \
../media_softlet/linux/common/os/i915/mos_bufmgr_api.c \
../media_softlet/linux/common/os/i915/xf86drm.c \
../media_softlet/linux/common/os/i915/xf86drmHash.c \
Expand Down Expand Up @@ -1396,6 +1395,16 @@ LOCAL_SRC_FILES := \
media_softlet/agnostic/m12/m12_0/shared/mediacopy/media_copy_m12_0.cpp \
media_softlet/agnostic/m12/m12_0/vp/hal/feature_manager/vp_feature_manager_m12_0.cpp \


ENABLE_PRODUCTION_KMD=ON

ifneq ($(ENABLE_PRODUCTION_KMD), ON)
LOCAL_SRC_FILES += ../media_softlet/linux/common/os/i915/mos_bufmgr.c
else
LOCAL_SRC_FILES += ../media_softlet/linux/common/os/i915_production/mos_bufmgr_prelim.cpp \
../media_softlet/linux/common/os/i915_production/mos_bufmgr.c
endif

LOCAL_SHARED_LIBRARIES := \
libsync \
libcutils \
Expand Down Expand Up @@ -1495,6 +1504,7 @@ LOCAL_CPPFLAGS = \
-DiHD_drv_video_EXPORTS \
-DGMM_LIB_DLL


LOCAL_CONLYFLAGS = -x c++
LOCAL_CFLAGS = $(LOCAL_CPPFLAGS)

Expand Down

0 comments on commit 0fd868c

Please sign in to comment.