lfbvideo: make that just a flag option

This commit is contained in:
K. Lange 2023-05-21 05:43:08 +09:00
parent a823bc979e
commit 19657bae9f
2 changed files with 2 additions and 5 deletions

View File

@ -534,7 +534,7 @@ static int lfb_init(const char * c) {
}
if (args_present("lfbwc")) {
lfb_use_write_combining = atoi(args_value("lfbwc"));
lfb_use_write_combining = 1;
}
int ret_val = 0;

View File

@ -92,10 +92,7 @@ static void setup_framebuffer(uint32_t pcidev) {
lfb_resolution_impl = i965_modeset;
lfb_set_resolution(1440,900);
if (!args_present("lfbwc")) {
/* if lfbwc wasn't specified, default to enabled */
lfb_use_write_combining = 1;
}
lfb_use_write_combining = 1;
/* Normally we don't clear the screen on mode set, but we should do it here */
memset(lfb_vid_memory, 0, lfb_memsize);