mesa/src/egl
Mathias Fröhlich c7617d8908 egl: Implement getImage/putImage on pbuffer swrast.
This change adds getImage/putImage callbacks to the swrast pbuffer
loader extension.
This fixes a recent crash with Weston as well as a crashing
test with classic swrast without an official gitlab issue.

v2: Determine bytes per pixel differently and fix non X11 builds.
v3: Plug memory leak and fix crash on out of bounds access.
    (Daniel Stone)
v4: Follow the code structure of the wayland get/put image
    implementation - hopefully being more obvious.
    Handle 64 bits formats.
    Use BufferSize directly.
    (Emil Velikov)
v5: Change pixel size computation.
    (Eric Engestrom)

Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2219
Fixes: d6edccee8d "egl: add EGL_platform_device support"
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3711>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3711>
2020-02-17 04:01:37 +00:00
..
drivers egl: Implement getImage/putImage on pbuffer swrast. 2020-02-17 04:01:37 +00:00
generate Revert "egl: implement new functions from EGL_EXT_image_flush_external" 2019-11-14 07:46:04 +02:00
main Revert "egl: put full path to libEGL_mesa.so in GLVND json" 2020-02-06 00:19:13 +00:00
wayland egl/wayland: Add FP16 format support 2019-09-20 19:10:31 +00:00
Android.mk egl: add EGL_platform_device support 2019-06-05 13:35:21 -04:00
egl-entrypoint-check.py egl: rewrite entrypoints check 2019-07-10 11:27:51 +00:00
egl-glvnd-symbols.txt egl: add glvnd symbols check 2019-07-10 11:27:51 +00:00
egl-symbols.txt egl: use new symbols check script 2019-07-10 11:27:51 +00:00
Makefile.sources egl: drop empty eglfallbacks.c 2019-06-25 06:36:54 +00:00
meson.build Revert "egl: put full path to libEGL_mesa.so in GLVND json" 2020-02-06 00:19:13 +00:00
SConscript drm-uapi: use local files, not system libdrm 2019-02-14 11:20:00 +00:00