mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-28 02:54:51 +00:00
Fix "HW cursor for format" error message flood with swrast
This commit is contained in:
parent
f41482932d
commit
0e8e5c44f3
2 changed files with 47 additions and 1 deletions
|
@ -43,7 +43,7 @@ Name: mesa
|
|||
Summary: Mesa graphics libraries
|
||||
%global ver 18.2.0
|
||||
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: MIT
|
||||
URL: http://www.mesa3d.org
|
||||
|
||||
|
@ -65,6 +65,10 @@ Patch4: 0004-bigendian-assert.patch
|
|||
# https://bugzilla.redhat.com/show_bug.cgi?id=1560481
|
||||
Patch7: 0001-gallium-Disable-rgb10-configs-by-default.patch
|
||||
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=104926
|
||||
# https://patchwork.freedesktop.org/patch/210872
|
||||
Patch8: st-dri-don-t-set-queryDmaBufFormats-queryDmaBufModifiers-if-the-driver-does-not-implement-it-1.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: automake
|
||||
|
@ -618,6 +622,9 @@ popd
|
|||
%{_includedir}/vulkan/
|
||||
|
||||
%changelog
|
||||
* Wed Sep 19 2018 Adam Williamson <awilliam@redhat.com> - 18.2.0-2
|
||||
- Fix "HW cursor for format" error message flood with swrast (FDO #104926)
|
||||
|
||||
* Sat Sep 8 2018 Peter Robinson <pbrobinson@fedoraproject.org> 18.2.0-1
|
||||
- Update to 18.2.0
|
||||
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
From patchwork Thu Mar 15 16:27:57 2018
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
MIME-Version: 1.0
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Subject: st/dri: don't set queryDmaBufFormats/queryDmaBufModifiers if the
|
||||
driver does not implement it
|
||||
From: Michal Srb <msrb@suse.com>
|
||||
X-Patchwork-Id: 210872
|
||||
Message-Id: <20180315162757.23862-1-msrb@suse.com>
|
||||
To: mesa-dev@lists.freedesktop.org
|
||||
Date: Thu, 15 Mar 2018 17:27:57 +0100
|
||||
|
||||
This is equivalent to commit a65db0ad1c3, but for dri_kms_init_screen. Without
|
||||
this gbm_dri_is_format_supported always returns false.
|
||||
|
||||
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104926
|
||||
Fixes: e14fe41e0bf ("st/dri: implement createImageFromRenderbuffer(2)")
|
||||
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
|
||||
---
|
||||
src/gallium/state_trackers/dri/dri2.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c
|
||||
index 415002d2cd..59740b1301 100644
|
||||
--- a/src/gallium/state_trackers/dri/dri2.c
|
||||
+++ b/src/gallium/state_trackers/dri/dri2.c
|
||||
@@ -2162,8 +2162,10 @@ dri_kms_init_screen(__DRIscreen * sPriv)
|
||||
dri2ImageExtension.createImageFromFds = dri2_from_fds;
|
||||
dri2ImageExtension.createImageFromDmaBufs = dri2_from_dma_bufs;
|
||||
dri2ImageExtension.createImageFromDmaBufs2 = dri2_from_dma_bufs2;
|
||||
- dri2ImageExtension.queryDmaBufFormats = dri2_query_dma_buf_formats;
|
||||
- dri2ImageExtension.queryDmaBufModifiers = dri2_query_dma_buf_modifiers;
|
||||
+ if (pscreen->query_dmabuf_modifiers) {
|
||||
+ dri2ImageExtension.queryDmaBufFormats = dri2_query_dma_buf_formats;
|
||||
+ dri2ImageExtension.queryDmaBufModifiers = dri2_query_dma_buf_modifiers;
|
||||
+ }
|
||||
}
|
||||
|
||||
sPriv->extensions = dri_screen_extensions;
|
Loading…
Reference in a new issue