From f1c36777bdf0464129e8c2e00bb9339868376043 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 23 May 2022 21:48:13 -0700 Subject: modules/compose: don't clear frame in prepare_frame() I'm not sure why this was being done, it was probably just vestigial from whatever I bootstrapped the compose module with and never thought to remove it. The first compose layer rendered will clear the frame if necessary. By compose doing it ahead of time, it's performing potentially unnecessary work clearing if the first layer is a frame-filler style render where no clear is ever performed. --- src/modules/compose/compose.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c index f55e516..bdd4b70 100644 --- a/src/modules/compose/compose.c +++ b/src/modules/compose/compose.c @@ -130,8 +130,6 @@ static void compose_prepare_frame(void *context, unsigned ticks, unsigned n_cpus { compose_context_t *ctxt = context; - til_fb_fragment_clear(fragment); - if (ctxt->texture.module) { if (!ctxt->texture_fb.buf || ctxt->texture_fb.frame_width != fragment->frame_width || -- cgit v1.2.3