Backport MR #21333 to fix KDE on llvmpipe (#2164667)

This commit is contained in:
Adam Williamson 2023-02-15 07:58:44 -08:00
parent e7344b6d97
commit 7969a1308b
2 changed files with 37 additions and 0 deletions

32
21333.patch Normal file
View File

@ -0,0 +1,32 @@
From 8a5cdc5e45a3f19c17a97a6d3f65c3ea5aa7eeb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <mdaenzer@redhat.com>
Date: Wed, 15 Feb 2023 12:40:39 +0100
Subject: [PATCH] frontend/dri: Initialize callbacks in
dri_swrast_kms_init_screen
This was missed in the commit below.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8232
Fixes: 7d5b1cd02c4d ("frontend/dri: move callbacks from the VTable into dri_screen, dri_drawable")
---
src/gallium/frontends/dri/dri2.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c
index b66f9d69142e..df5041242851 100644
--- a/src/gallium/frontends/dri/dri2.c
+++ b/src/gallium/frontends/dri/dri2.c
@@ -2379,6 +2379,10 @@ dri_swrast_kms_init_screen(struct dri_screen *screen)
screen->lookup_egl_image_validated = dri2_lookup_egl_image_validated;
}
+ screen->create_drawable = dri2_create_drawable;
+ screen->allocate_buffer = dri2_allocate_buffer;
+ screen->release_buffer = dri2_release_buffer;
+
return configs;
destroy_screen:
--
GitLab

View File

@ -66,6 +66,11 @@ Source0: https://archive.mesa3d.org/mesa-%{ver}.tar.xz
Source1: Mesa-MLAA-License-Clarification-Email.txt Source1: Mesa-MLAA-License-Clarification-Email.txt
Patch10: gnome-shell-glthread-disable.patch Patch10: gnome-shell-glthread-disable.patch
# https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21333
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/8232
# https://bugzilla.redhat.com/show_bug.cgi?id=2164667
# Fixes KDE on llvmpipe
Patch11: 21333.patch
BuildRequires: meson >= 1.0.0 BuildRequires: meson >= 1.0.0
BuildRequires: gcc BuildRequires: gcc