Skip to content

Commit c17273f

Browse files
committed
patches: add libplacebo-disable-host-copy.diff
haasn/libplacebo#341
1 parent d0f3ebf commit c17273f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

fetch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ fetch_libplacebo() {
102102
local url="https://code.videolan.org/videolan/libplacebo.git"
103103
rm -rf src/libplacebo
104104
git -C src clone --depth 1 --recurse-submodules=3rdparty/{fast_float,jinja,markupsafe} "${url}"
105+
git -C src/libplacebo apply --apply --stat "$(realpath patches/libplacebo-disable-host-copy.diff)"
105106
}
106107

107108
fetch_libpng() {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/src/vulkan/formats.c b/src/vulkan/formats.c
2+
index 8dc39d2..3ddebd0 100644
3+
--- a/src/vulkan/formats.c
4+
+++ b/src/vulkan/formats.c
5+
@@ -602,12 +602,6 @@ void vk_setup_formats(struct pl_gpu_t *gpu)
6+
fmt->caps |= bits[i].caps;
7+
}
8+
9+
- // Internal capabilities
10+
- if (vk->props.vendorID != VK_VENDOR_ID_NVIDIA) { // FIXME: remove when upstream works
11+
- if (texflags & VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT)
12+
- fmtp->can_host_copy = true;
13+
- }
14+
-
15+
// For blit emulation via compute shaders
16+
if (!(fmt->caps & PL_FMT_CAP_BLITTABLE) && (fmt->caps & PL_FMT_CAP_STORABLE)) {
17+
fmt->caps |= PL_FMT_CAP_BLITTABLE;

0 commit comments

Comments
 (0)