wlroots/render
Simon Ser 037e3c284a 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

(cherry picked from commit 677a3f2f88)
2023-02-02 23:06:32 +01:00
..
allocator render/allocator/drm_dumb: drop finish_buffer() 2022-10-01 19:45:29 +00:00
gles2 render/gles2: default to highp if available 2023-02-02 23:06:32 +01:00
pixman Revert "render/pixman: apply source image cropping" 2022-11-08 18:24:44 +03:00
vulkan render/vulkan: fix vkCmdClearAttachments validation error 2023-01-27 13:53:19 -05:00
dmabuf.c dmabuf: Don't leak file descriptors on error path 2022-06-06 00:50:41 -04:00
drm_format_set.c render/drm-format-set: add wlr_drm_format_set_intersect 2021-12-03 14:42:41 +00:00
egl.c render/egl: fix uninitialized pointers in init_dmabuf_formats 2022-11-16 18:06:01 +01:00
meson.build render: use internal_features to indicate EGL support 2022-06-24 07:20:42 +02:00
pixel_format.c pixel_format: RGBA4444 and RGBA5551 have alpha components 2022-09-06 18:48:41 -04:00
swapchain.c Move allocator stuff into new directory 2021-08-25 09:57:20 -04:00
wlr_renderer.c render: drop wlr_renderer_read_pixels() flags 2022-10-04 09:15:19 +02:00
wlr_texture.c render: replace wlr_texture_write_pixels with update_from_buffer 2022-08-12 08:41:32 +00:00