From 7d5f4f2dde0e771d0679dfa9aca22ca17e16246e Mon Sep 17 00:00:00 2001 From: Kiryl Antonik Date: Sun, 21 Jan 2024 15:52:06 +0100 Subject: [PATCH] direct: Fix drm index loop condition --- src/direct/direct-export-buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/direct/direct-export-buf.c b/src/direct/direct-export-buf.c index 0bfaeb2..0347d29 100644 --- a/src/direct/direct-export-buf.c +++ b/src/direct/direct-export-buf.c @@ -82,7 +82,7 @@ static bool direct_initExporter(NVDriver *drv) { continue; } break; - } while (drmIdx < 16); + } while (drmIdx < 128 + 16); drv->drmFd = fd; LOG("Found NVIDIA GPU %d at %s", nvdGpu, node);