Files
RedBear-OS/local/recipes
vasilito 72e686f120 mesa/redox: port the Redox GPU winsys + EGL/pipe-loader to Mesa 26.1.4
Make the vendored Red Bear Redox GPU port compile against Mesa 26.1.4:

- winsys meson.build: fix doubled 'drm/' source paths (meson.build already sits
  in drm/); drop invalid declare_dependency(sources: [static_library]).
- redox_drm_winsys.c: adapt the custom swrast pipe_screen to 26.1.4 — the
  never-mainline pipe_screen_ops indirection is gone (wire get_name/get_vendor/
  get_device_vendor/get_screen_fd/is_format_supported/resource_create/destroy/
  flush_frontbuffer/fence_reference/fence_finish directly on pipe_screen) and
  per-cap get_param() is replaced by u_init_pipe_screen_caps(). The context-level
  callbacks (resource_map/unmap, create_surface/destroy, fence_create/submit/
  signalled) stay defined for the future full HW screen but leave the vtable.
  Drop the dead rws->base.base.screen tracking (sw_winsys has no such member).
- redox_drm_surface.h: forward-declare struct redox_drm_winsys so the
  flip_to_crtc prototype matches its definition (was a prototype-scoped tag ->
  'conflicting types'). redox_drm_bo.c: PIPE_TEXTURE_ARRAY -> PIPE_TEXTURE_2D_ARRAY,
  util/u_format.h -> util/format/u_format.h.
- pipe_loader_redox.c: include <xf86drm.h>; store the drm_driver_descriptor on
  the redux device (base pipe_loader_device has no 'dd'); drop the bogus cast to
  the private pipe_loader_drm_device.
- platform_redox.c: define redox_flush_front_buffer (was undefined
  dri2_flush_front_buffer). egl_dri2.h: rename the surfaceless/device dri_image
  front/back to image_front/image_back to avoid colliding with the wayland/drm
  color-buffer 'back' when all platforms are enabled.

Result: the entire Mesa tree (iris/radeonsi/ANV + softpipe/llvmpipe/virgl/lavapipe)
compiles for x86_64-unknown-redox.
2026-07-31 18:22:09 +03:00
..