Commits on Source (28)
-
Niklas Haas authored
This is more in theme with the rest of the libplacebo code.
c815c1ea -
Niklas Haas authored
This was left over from a development version, but the actual logic was to use the existence of `pass->pass` as a way to check if the pass is failed or not. Also, one of the checks was actually referencing this unused field.
f6c71b52 -
Niklas Haas authored
I should really stop doing this.
b4384075 -
8d9d69d3
-
Niklas Haas authored
The API change referenced in 52305682 was introduced in between patch level 3743 and patch level 3763. The current check breaks the tagged release 8.13.3743 which does not include the change yet. Bump the check up to 3763 to get around this. In classic glslang style, this means that there are a few commits which will always fail to compile no matter what we do... but that's the reality we have to live with when building against glslang. It's either that or they figure out how to bump their patch level on breaking API changes.
6b00e092 -
Niklas Haas authored
This slightly speeds up LUT computation because we skip having to check the cache every pixel. We don't ever send it repeat values anyway.
ef90eeab -
Niklas Haas authored
highp is the normal 32-bit float, medium should be avoided unless absolutely necessary. cf. https://github.com/mpv-player/mpv/commit/5141662427
6e61c044 -
Niklas Haas authored
We don't actually want to force sampling at 32-bit, the precision only makes sense for the float type.
a3c43852 -
Niklas Haas authored
At least shaderc doesn't like the patch version being present here, so make sure to manually strip it to prevent any confusion. This commit enables us to actually use higher version SPIR-V features.
9e753992 -
Niklas Haas authored
For debugging purposes.
5bf29279 -
Niklas Haas authored
This isn't supported on GLES 3.0, only glInvalidateFramebuffer is.
b120c388 -
Niklas Haas authored
The use of GL_FRAMEBUFFER can generate an INVALID_ENUM error on older GLES versions, apparently - and all commands specify it as equivalent to GL_DRAW_FRAMEBUFFER anyway.
b57dd0d8 -
Niklas Haas authored
VkResult in particular can return errors defined by extensions, like VK_ERROR_INVALID_EXTERNAL_HANDLE. These are included as enum extension in the registry. As a side note, replace `findall` by `iterfind` for performance.
78ca93f3 -
Niklas Haas authored
This is needed primarily because some OpenGL/Vulkan drivers will end up calling the pl_msg functions from random threads. Prevent any issues when doing this by making sure these functions are thread safe.
9d7963b5 -
Niklas Haas authored
This can end up comparing undefined memory regions, because unpadded areas of structs may not be initialized with anything particular.
74f5a163 -
Niklas Haas authored
Fixes videolan/libplacebo#85
02b3ed51 -
Niklas Haas authored
A hilariously awkward mix-up. This probably meant the ICC profile code never actually produced correct results in practice unless the two color spaces happened to coincide. Good thing nobody used it in production yet (tm) Fixes https://github.com/haasn/libplacebo/issues/82
463f0e9d -
Niklas Haas authored
These are not included as part of the GCC visibility pragma.
8737fe82 -
Niklas Haas authored
To prevent logic errors when overflowing e.g. the BT.2390 function, and also make functions behave more predictably on overflow in general. This ensures no function will ever see something larger than sig_peak. Requires changes to `clip` and `linear` to make them work properly again.
5ad4bcce -
Niklas Haas authored
Something something, empty function lists get interpreted as "unknown signature" rather than "void signature". Dunno if this is still relevant for C++, but may as well get into the habit.
ac03241b -
Niklas Haas authored
This updates our checks to use the new header locations as introduced in https://github.com/KhronosGroup/glslang/pull/2277. Fortunately, it seems that the new version scheme is backwards compatible with the old one, so we don't need any excessively complicated logic updates. Fixes https://github.com/haasn/libplacebo/issues/83
8c9f450c -
Niklas Haas authored
Instead of raw identifiers of the form 0x%x. We can leverage our lovely vk.xml-parsing utils generator to generate friendly name boilerplate code for this. Closes videolan/libplacebo#107
2fba9f22 -
Niklas Haas authored
This uses round(), which requires GLSL 130+
bd4127cb -
Niklas Haas authored
Seems like glslang upstream is more than happy to make their patch level go back down to 0 now. To handle the mishmash of old and new versioning schemes, we map the old patch level to version 0.0.x, which ensures it's forwards-compatible with the new versioning scheme (that was fortunately introduced after every relevant check of ours). Fixes https://github.com/haasn/libplacebo/issues/83 again, properly this time.
631f6f32 -
Niklas Haas authored
This can be used by the config scripts of other projects without having to do actual header feature testing. (In particular, we do the same for libepoxy in our build script)
3735dec8 -
Niklas Haas authored
When VK_KHR_get_physical_device_properties2 is missing. Currently, it just segfaults.
7847e5da -
Niklas Haas authored
Khronos really, *really* loves dropping the KHR/EXT suffixes when promoting extensions to core. And we really, *really* don't like hard-coding multiple function names for every function in existence. Brute force the problem by trying to load every function with the suffix stripped, in case of failure.
3fb5427a -