wlroots-hyprland/render
Simon Ser 677a3f2f88 render/gles2: default to highp if available
The spec [1] says that the maximum value for a mediump float
is at least 2¹⁴ in section 4.5.2. However, when using a 4k
resolution texture coordinates will exceed this value. This causes
issues on drivers which implement mediump as a 16-bit [2].

Switch to highp. There's a twist: on GLES2, support for highp is
optional. So we need to guard it with cute GL_FRAGMENT_PRECISION_HIGH
ifdefs.

[1]: https://registry.khronos.org/OpenGL/specs/es/2.0/GLSL_ES_Specification_1.00.pdf
[2]: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21082
2023-02-02 22:54:13 +01:00
..
allocator build: unify naming for HAVE_* defines 2022-12-06 22:39:45 +00:00
gles2 render/gles2: default to highp if available 2023-02-02 22:54:13 +01:00
pixman render/pixman: skip mask for opaque texture rendering 2022-12-08 16:53:14 +01:00
vulkan render/vulkan: check that requested size is smaller than max 2023-01-19 18:50:59 +00:00
dmabuf.c render/dmabuf: add dmabuf_import_sync_file 2022-11-28 23:50:41 +00:00
dmabuf_fallback.c render/dmabuf: add dmabuf_export_sync_file() 2022-12-06 14:54:09 +00:00
dmabuf_linux.c render/dmabuf: add dmabuf_export_sync_file() 2022-12-06 14:54:09 +00:00
drm_format_set.c render/drm_format_set: fill dst in wlr_drm_format_set_copy 2022-12-02 11:47:47 -05:00
egl.c render/egl: stop advertising render support for external-only formats 2022-12-13 16:43:22 +00:00
meson.build render/dmabuf: add dmabuf_import_sync_file 2022-11-28 23:50:41 +00:00
pixel_format.c render/pixel-format: drop unnecessary fields in the table 2022-12-02 10:28:52 +01:00
swapchain.c Move allocator stuff into new directory 2021-08-25 09:57:20 -04:00
wlr_renderer.c render: simplify renderer_autocreate_with_drm_fd() 2022-12-06 14:58:30 +00:00
wlr_texture.c wlr_texture: Expose owning renderer 2022-12-01 04:41:43 -05:00