-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #336 from nyanmisaka/next
Bump version to 6.0.1-3
- Loading branch information
Showing
9 changed files
with
121 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
builder/patches/libplacebo/0000-utils-libav-only-adjusts-bit_shift-for-drm-p010-frames.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
From a5e701025dce2036930b9e049862e5355b07a45f Mon Sep 17 00:00:00 2001 | ||
From: David Rosca <nowrep@gmail.com> | ||
Date: Tue, 9 Jan 2024 13:38:08 +0100 | ||
Subject: [PATCH] utils/libav: Only adjust bit_shift for DRM P010 frames | ||
|
||
Fixes mapping Vulkan P010 frames. | ||
|
||
Closes #237 | ||
--- | ||
src/include/libplacebo/utils/libav_internal.h | 11 ++++++----- | ||
1 file changed, 6 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/src/include/libplacebo/utils/libav_internal.h b/src/include/libplacebo/utils/libav_internal.h | ||
index 4c269e5d..992e5ca6 100644 | ||
--- a/src/include/libplacebo/utils/libav_internal.h | ||
+++ b/src/include/libplacebo/utils/libav_internal.h | ||
@@ -967,11 +967,6 @@ static void pl_fix_hwframe_sample_depth(struct pl_frame *out, const AVFrame *fra | ||
struct pl_bit_encoding *bits = &out->repr.bits; | ||
|
||
bits->sample_depth = fmt->component_depth[0]; | ||
- | ||
- switch (hwfc->sw_format) { | ||
- case AV_PIX_FMT_P010: bits->bit_shift = 6; break; | ||
- default: break; | ||
- } | ||
} | ||
|
||
static bool pl_map_avframe_drm(pl_gpu gpu, struct pl_frame *out, | ||
@@ -1016,6 +1011,12 @@ static bool pl_map_avframe_drm(pl_gpu gpu, struct pl_frame *out, | ||
} | ||
|
||
pl_fix_hwframe_sample_depth(out, frame); | ||
+ | ||
+ switch (hwfc->sw_format) { | ||
+ case AV_PIX_FMT_P010: out->repr.bits.bit_shift = 6; break; | ||
+ default: break; | ||
+ } | ||
+ | ||
return true; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters