From 8505ccdbad81ba543d8da012889ba06039288b4a Mon Sep 17 00:00:00 2001 From: Melissa Goad Date: Thu, 6 Oct 2016 16:44:36 -0500 Subject: [PATCH] Fix LFB access on nVidia cards --- src/vid_nv_riva128.c | 2 ++ src/vid_nv_rivatnt.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/vid_nv_riva128.c b/src/vid_nv_riva128.c index 011be4c77..584efc3c5 100644 --- a/src/vid_nv_riva128.c +++ b/src/vid_nv_riva128.c @@ -1155,6 +1155,7 @@ static void riva128_pci_write(int func, int addr, uint8_t val, void *p) if (linear_addr) { mem_mapping_set_addr(&riva128->linear_mapping, linear_addr, 0x1000000); + svga->linear_base = linear_addr; } } else @@ -1196,6 +1197,7 @@ static void riva128_pci_write(int func, int addr, uint8_t val, void *p) if (linear_addr) { mem_mapping_set_addr(&riva128->linear_mapping, linear_addr, 0x1000000); + svga->linear_base = linear_addr; } else { diff --git a/src/vid_nv_rivatnt.c b/src/vid_nv_rivatnt.c index efe661aa2..d20910f5d 100644 --- a/src/vid_nv_rivatnt.c +++ b/src/vid_nv_rivatnt.c @@ -1169,6 +1169,7 @@ static void rivatnt_pci_write(int func, int addr, uint8_t val, void *p) if (linear_addr) { mem_mapping_set_addr(&rivatnt->linear_mapping, linear_addr, 0x1000000); + svga->linear_base = linear_addr; } } else @@ -1210,6 +1211,7 @@ static void rivatnt_pci_write(int func, int addr, uint8_t val, void *p) if (linear_addr) { mem_mapping_set_addr(&rivatnt->linear_mapping, linear_addr, 0x1000000); + svga->linear_base = linear_addr; } else {