0014-Enable-buffer-sharing-in-the-kms_swrast-driver.patch 983 B

12345678910111213141516171819202122232425
  1. From 499acbbea8d82fe7018bd8663bc543fa691d41de Mon Sep 17 00:00:00 2001
  2. From: Brendan King <Brendan.King@imgtec.com>
  3. Date: Wed, 26 Oct 2016 16:24:28 +0100
  4. Subject: [PATCH] Enable buffer sharing in the kms_swrast driver
  5. Enable buffer sharing, so that a DRI driver can be loaded by a
  6. Wayland client when kms_swrast is being used by the compositor.
  7. ---
  8. src/gallium/frontends/dri/dri2.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c
  11. index ebc18a7..09f4b02 100644
  12. --- a/src/gallium/frontends/dri/dri2.c
  13. +++ b/src/gallium/frontends/dri/dri2.c
  14. @@ -2400,7 +2400,7 @@ dri_kms_init_screen(__DRIscreen * sPriv)
  15. if (!configs)
  16. goto destroy_screen;
  17. - screen->can_share_buffer = false;
  18. + screen->can_share_buffer = true;
  19. screen->auto_fake_front = dri_with_format(sPriv);
  20. screen->broken_invalidate = !sPriv->dri2.useInvalidate;
  21. screen->lookup_egl_image = dri2_lookup_egl_image;