mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master 1/3] efi: gop: fix rectangle extents passed to fb_damage
@ 2026-06-27  9:55 Ahmad Fatoum
  2026-06-27  9:55 ` [PATCH master 2/3] efi: gop: use correct BLT pixel type Ahmad Fatoum
  2026-06-27  9:55 ` [PATCH master 3/3] efi: gop: report and use framebuffer stride Ahmad Fatoum
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2026-06-27  9:55 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

fb_damage takes the coordinates of the upper left and bottom right
pixels as can be seen in fb_rect_width() and fb_rect_height().

We erroneously passed only width and height though, so add the origin
pixel coordinates on top to fix this.

Fixes: d040f49ad0b3 ("efi: loader: protocol: add graphical output protocol support")
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
 efi/loader/protocols/gop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/efi/loader/protocols/gop.c b/efi/loader/protocols/gop.c
index 9ada8a2da290..d48edac5a2d6 100644
--- a/efi/loader/protocols/gop.c
+++ b/efi/loader/protocols/gop.c
@@ -248,7 +248,7 @@ static __always_inline efi_status_t gop_blt_int(struct efi_graphics_output_proto
 	}
 
 	if (blt_to_video) {
-		struct fb_rect rect = { dx, dy, width, height };
+		struct fb_rect rect = { dx, dy, dx + width, dy + height };
 		fb_damage(gopobj->fbi, &rect);
 	}
 
-- 
2.47.3




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-27  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27  9:55 [PATCH master 1/3] efi: gop: fix rectangle extents passed to fb_damage Ahmad Fatoum
2026-06-27  9:55 ` [PATCH master 2/3] efi: gop: use correct BLT pixel type Ahmad Fatoum
2026-06-27  9:55 ` [PATCH master 3/3] efi: gop: report and use framebuffer stride Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox