From 77e911a10109685357edcda02b145120a54369cd Mon Sep 17 00:00:00 2001 From: Kaiyi Li Date: Thu, 30 Sep 2021 09:54:07 -0700 Subject: [PATCH] ANDROID: drivers: gpu: drm: increase the MAX_DRM_OPEN_COUNT goldfish-opengl Vulkan driver with virtio-gpu will open one drm fd for every allocated host visible VkDeviceMemory. 128 across the entire system is too small for certain application. Bug: 199949358 Change-Id: Id71cc3201461c5a83fcd1886d45914c286bca241 Signed-off-by: Kaiyi Li --- drivers/gpu/drm/drm_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm/drm_file.c index 6940812a97d7..d5c9d1197d5a 100644 --- a/drivers/gpu/drm/drm_file.c +++ b/drivers/gpu/drm/drm_file.c @@ -49,7 +49,7 @@ /* from BKL pushdown */ DEFINE_MUTEX(drm_global_mutex); -#define MAX_DRM_OPEN_COUNT 128 +#define MAX_DRM_OPEN_COUNT 4096 /** * DOC: file operations