@@ -126,8 +126,7 @@ bool gop_force_16 = false;
126126
127127static bool try_mode (struct fb_info * ret , EFI_GRAPHICS_OUTPUT_PROTOCOL * gop ,
128128 size_t mode , uint64_t width , uint64_t height , int bpp ,
129- struct fb_info * fbs , size_t fbs_count ,
130- bool preserve_screen ) {
129+ struct fb_info * fbs , size_t fbs_count ) {
131130 EFI_STATUS status ;
132131
133132 if (!mode_to_fb_info (ret , gop , mode )) {
@@ -179,10 +178,6 @@ static bool try_mode(struct fb_info *ret, EFI_GRAPHICS_OUTPUT_PROTOCOL *gop,
179178
180179 ret -> framebuffer_addr = gop -> Mode -> FrameBufferBase ;
181180
182- if (!preserve_screen ) {
183- fb_clear (ret );
184- }
185-
186181 return true;
187182}
188183
@@ -213,8 +208,7 @@ no_unwind static int preset_modes[MAX_PRESET_MODES];
213208no_unwind static bool preset_modes_initialised = false;
214209
215210void init_gop (struct fb_info * * ret , size_t * _fbs_count ,
216- uint64_t target_width , uint64_t target_height , uint16_t target_bpp ,
217- bool preserve_screen ) {
211+ uint64_t target_width , uint64_t target_height , uint16_t target_bpp ) {
218212 if (preset_modes_initialised == false) {
219213 for (size_t i = 0 ; i < MAX_PRESET_MODES ; i ++ ) {
220214 preset_modes [i ] = -1 ;
@@ -321,7 +315,7 @@ void init_gop(struct fb_info **ret, size_t *_fbs_count,
321315
322316retry :
323317 for (size_t j = 0 ; j < modes_count ; j ++ ) {
324- if (try_mode (fb , gop , j , _target_width , _target_height , _target_bpp , * ret , fbs_count , preserve_screen )) {
318+ if (try_mode (fb , gop , j , _target_width , _target_height , _target_bpp , * ret , fbs_count )) {
325319 goto success ;
326320 }
327321 }
@@ -348,7 +342,7 @@ void init_gop(struct fb_info **ret, size_t *_fbs_count,
348342 if (current_fallback == 1 ) {
349343 current_fallback ++ ;
350344
351- if (try_mode (fb , gop , preset_modes [i ], 0 , 0 , 0 , * ret , fbs_count , preserve_screen )) {
345+ if (try_mode (fb , gop , preset_modes [i ], 0 , 0 , 0 , * ret , fbs_count )) {
352346 goto success ;
353347 }
354348 }
0 commit comments