From 60b4ebfbf3be78dba9dc7c65ab2bdaa0b218c0c2 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 21 Oct 2024 19:22:50 -0400 Subject: Everything before initial synced list Signed-off-by: Andrew Opalach --- .../packagefiles/libplacebo/cache_ref_rect.diff | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 subprojects/packagefiles/libplacebo/cache_ref_rect.diff (limited to 'subprojects/packagefiles/libplacebo') diff --git a/subprojects/packagefiles/libplacebo/cache_ref_rect.diff b/subprojects/packagefiles/libplacebo/cache_ref_rect.diff new file mode 100644 index 0000000..647d637 --- /dev/null +++ b/subprojects/packagefiles/libplacebo/cache_ref_rect.diff @@ -0,0 +1,28 @@ +diff --git a/src/renderer.c b/src/renderer.c +index 7622523..54869b9 100644 +--- a/src/renderer.c ++++ b/src/renderer.c +@@ -31,6 +31,7 @@ struct cached_frame { + struct pl_color_space color; + struct pl_icc_profile profile; + pl_rect2df crop; ++ pl_rect2df ref_rect; + pl_tex tex; + int comps; + bool evict; // for garbage collection +@@ -3473,6 +3474,7 @@ retry: + can_reuse = f->tex->params.w == out_w && + f->tex->params.h == out_h && + pl_rect2d_eq(f->crop, img->crop) && ++ pl_rect2d_eq(f->ref_rect, pass.ref_rect) && + f->params_hash == par_info.hash && + pl_color_space_equal(&f->color, &target->color) && + pl_icc_profile_equal(&f->profile, &target->profile); +@@ -3568,6 +3570,7 @@ retry: + + f->params_hash = par_info.hash; + f->crop = img->crop; ++ f->ref_rect = pass.ref_rect; + f->color = inter_pass.img.color; + f->comps = inter_pass.img.comps; + f->profile = target->profile; -- cgit v1.2.3-101-g0448