diff --git a/21333.patch b/21333.patch new file mode 100644 index 0000000..fd8436e --- /dev/null +++ b/21333.patch @@ -0,0 +1,32 @@ +From 8a5cdc5e45a3f19c17a97a6d3f65c3ea5aa7eeb6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michel=20D=C3=A4nzer?= +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 + diff --git a/mesa.spec b/mesa.spec index d8a1f6d..74ef0f2 100644 --- a/mesa.spec +++ b/mesa.spec @@ -66,6 +66,11 @@ Source0: https://archive.mesa3d.org/mesa-%{ver}.tar.xz Source1: Mesa-MLAA-License-Clarification-Email.txt 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: gcc