4 Commits

Author SHA1 Message Date
Khem Raj
32f2857c67
libplacebo: Fix build with latest python 3.14
Fixes
 FAILED: [code=1] src/vulkan/utils_gen.c
   /home/kraj200/yoe/build/tmp/work/riscv64imafdc-yoe-linux/libplacebo/7.351.0/recipe-sysroot-native/usr/bin/meson.real --
   ↪ internal exe --unpickle /home/kraj200/yoe/build/tmp/work/riscv64imafdc-yoe-linux/libplacebo/7.351.0/build/meson-private/
   ↪ meson_exe_nativepython3_7e48a7413404982655e79073cf3065c6194271bf.dat
   while executing ['/home/kraj200/yoe/build/tmp/work/riscv64imafdc-yoe-linux/libplacebo/7.351.0/recipe-sysroot-native/usr/bin/
   ↪ nativepython3', '../sources/libplacebo-7.351.0/src/vulkan/utils_gen.py', '/usr/share', '/home/kraj200/yoe/build/tmp/work/
   ↪ riscv64imafdc-yoe-linux/libplacebo/7.351.0/recipe-sysroot/usr/share/vulkan/registry/vk.xml', 'src/vulkan/utils_gen.c']
   --- stdout ---

   --- stderr ---
   Traceback (most recent call last):
     File "/home/kraj200/yoe/build/tmp/work/riscv64imafdc-yoe-linux/libplacebo/7.351.0/build/../sources/libplacebo-7.351.0/src/
     ↪ vulkan/utils_gen.py", line 205, in <module>
       registry = VkXML(ET.parse(xmlfile))
     File "/home/kraj200/yoe/build/tmp/work/riscv64imafdc-yoe-linux/libplacebo/7.351.0/build/../sources/libplacebo-7.351.0/src/
     ↪ vulkan/utils_gen.py", line 50, in __init__
       super().__init__(*args, **kwargs)
       ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
     File "/home/kraj200/yoe/build/tmp/work/riscv64imafdc-yoe-linux/libplacebo/7.351.0/recipe-sysroot-native/usr/lib/python3.13/
     ↪ xml/etree/ElementTree.py", line 527, in __init__
       raise TypeError('expected an Element, not %s' %
                       type(element).__name__)
   TypeError: expected an Element, not ElementTree

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-08-13 10:09:25 -07:00
Markus Volk
3f77bb395c
libplacebo: update 7.349.0 -> 7.351.0
This release mainly introduces a variety of miscellaneous bug fixes, alongside two minor / maintenance changes.

Additions:

    add pl_{opengl,vulkan,d3d11}_params.no_compute to suppress the use of
    compute shaders
    add pl_cache_{set,get}_file()

Changes:

    libav vulkan interop now requires lavu 58.11.100+ and vulkan 1.2.175+
    "sinc" filter preset radius dropped from 3 to 2

Fixes and performance enhancements:

    fix compilation of fuzzer test
    fix shader variable renaming loop
    fix error when the same gpu descriptor is used twice in one shader
    don't expose unsupported d3d11 formats
    fix rendering with flipped planes and user shaders
    fix rendering of textures with unusual channel order
    don't apply sigmoidization to alpha channel
    attach correctly normalized extension list to vulkan device creation
    fix orthogonal scaling fast path leaking garbage pixels
    some GLES 2.0 fixes
    fix DCDM XYZ decoding into DCI-P3
    fix build with glslang 15
    fix compilation without nuklear
    fix backwards compatibility with pl_render_params.skip_target_clearing
    correctly output requested alpha mode
    preserve alpha channel when blending subsampled formats
    multiply plane scale even when not scaling
    propagate correct plane format after plane merging
    fix build with instrumentation enabled
    fix bug where layout transitions happened too early in some cases
    fix handling of promoted extension and function names
    don't scale alpha when blending low bit depth YUV planes
    fix build error with recent libavformat
    fix plane channel order when merging planes
    invalidate shader cache when GL version strings change
    fix compute shader promotion for flipped outputs
    fix upload of YUVA formats with reduced bit depths

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-07 17:59:12 -07:00
Gyorgy Sarvari
bdd2b53408
libplacebo: fix demos PACKAGECONFIG
In case the demos PACKAGECONFIG is enabled, linking fails with
the following error:

| /usr/src/debug/libplacebo/7.349.0/demos/plplay.c:669:(.text.startup+0x90): undefined reference to `parse_args'
| collect2: error: ld returned 1 exit status

The implementation of the missing function is guarded erroneously by
an ifdef flag (HAVE_NUKLEAR, which is only true in case headers from the nuklear
library are present - but in this recipe they are not included).

This patch moves the implementation of this function outside of the ifdef to
avoid the build failure.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-16 08:10:20 -08:00
Gyorgy Sarvari
964f55887a
libplacebo: fix glslang PACKAGECONFIG
In case glslang PACKAGECONFIG is enabled, compilation fails with
a lot of errors about undefined references from the glslang namespace, e.g.

| /usr/src/debug/libplacebo/7.349.0/src/glsl/glslang.cc:79:(.text+0x160): undefined reference to `glslang::TShader::TShader(EShLanguage)'

This has been solved in the upstream project, and this change backports
the commit that fixes the meson.build file to find the correct libraries
during compilation.

Additionally, fix also the TMPDIR QA error that popped up after fixing
the above issue: remove the RECIPE_SYSROOT value from the generated
pkgconf file (and instead of referring to the libraries by absolute path,
just refer to them by name, as they are supposed to be present in the
standard library lookup path).

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-16 08:10:20 -08:00