Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL
Name: Mesa
Version: 17.1.2
-Release: 1
+Release: 2
License: MIT (core) and others - see license.html file
Group: X11/Libraries
Source0: ftp://ftp.freedesktop.org/pub/mesa/mesa-%{version}.tar.xz
# Source0-md5: 4d2eaf5955740b044afd95ed167c906c
Patch0: %{name}-link.patch
+Patch1: i965_ignore_anisotropic_filtering_in_nearest_mode.patch
URL: http://www.mesa3d.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
%prep
%setup -q -n mesa-%{version}
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
--- /dev/null
+diff -dur -x '*~' -x '*.orig' -x '*.rej' mesa-17.1.2.orig/src/mesa/drivers/dri/i965/brw_sampler_state.c mesa-17.1.2/src/mesa/drivers/dri/i965/brw_sampler_state.c
+--- mesa-17.1.2.orig/src/mesa/drivers/dri/i965/brw_sampler_state.c 2017-06-05 23:09:09.000000000 +0200
++++ mesa-17.1.2/src/mesa/drivers/dri/i965/brw_sampler_state.c 2017-06-17 16:01:16.890619847 +0200
+@@ -450,8 +450,10 @@
+ /* Enable anisotropic filtering if desired. */
+ unsigned max_anisotropy = BRW_ANISORATIO_2;
+ if (sampler->MaxAnisotropy > 1.0f) {
+- min_filter = BRW_MAPFILTER_ANISOTROPIC;
+- mag_filter = BRW_MAPFILTER_ANISOTROPIC;
++ if (min_filter == BRW_MAPFILTER_LINEAR)
++ min_filter = BRW_MAPFILTER_ANISOTROPIC;
++ if (mag_filter == BRW_MAPFILTER_LINEAR)
++ mag_filter = BRW_MAPFILTER_ANISOTROPIC;
+
+ if (sampler->MaxAnisotropy > 2.0f) {
+ max_anisotropy =