lfbvideo: make that just a flag option
This commit is contained in:
parent
a823bc979e
commit
19657bae9f
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user