From d004764577cc47acb276216192d4dc9a7685a9c0 Mon Sep 17 00:00:00 2001 From: Sergey Isakov Date: Fri, 18 Oct 2019 16:31:50 +0300 Subject: [PATCH] dont account extra bit in nvidia family Signed-off-by: Sergey Isakov --- rEFIt_UEFI/Platform/Settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rEFIt_UEFI/Platform/Settings.c b/rEFIt_UEFI/Platform/Settings.c index 04c5ac8383..fe9ebb18c4 100644 --- a/rEFIt_UEFI/Platform/Settings.c +++ b/rEFIt_UEFI/Platform/Settings.c @@ -7082,7 +7082,7 @@ GetDevices () //DBG ("BAR: 0x%p\n", Mmio); // get card type gfx->Family = (REG32(gfx->Mmio, 0) >> 20) & 0x3ff; - UFamily = gfx->Family & 0x3F0; + UFamily = gfx->Family & 0x1F0; if ((UFamily == NV_ARCH_KEPLER1) || (UFamily == NV_ARCH_KEPLER2) || (UFamily == NV_ARCH_KEPLER3)) {