[packages/Mesa] i965 fix for galaxy view in Stellaris

jajcus jajcus at pld-linux.org
Sat Jun 17 20:39:24 CEST 2017


commit fbc50ce9df805444d38ab64b23cdf9ba18adfec8
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Jun 17 15:57:47 2017 +0200

    i965 fix for galaxy view in Stellaris
    
    Patch from:
    https://patchwork.freedesktop.org/patch/162171/
    
    Release: 2

 Mesa.spec                                               |  4 +++-
 i965_ignore_anisotropic_filtering_in_nearest_mode.patch | 16 ++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/Mesa.spec b/Mesa.spec
index 8306cfb..316810d 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -64,12 +64,13 @@ Summary:	Free OpenGL implementation
 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
@@ -1267,6 +1268,7 @@ radv - eksperymentalny sterownik Vulkan dla GPU firmy AMD.
 %prep
 %setup -q -n mesa-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/i965_ignore_anisotropic_filtering_in_nearest_mode.patch b/i965_ignore_anisotropic_filtering_in_nearest_mode.patch
new file mode 100644
index 0000000..2a9482b
--- /dev/null
+++ b/i965_ignore_anisotropic_filtering_in_nearest_mode.patch
@@ -0,0 +1,16 @@
+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 =
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Mesa.git/commitdiff/fbc50ce9df805444d38ab64b23cdf9ba18adfec8



More information about the pld-cvs-commit mailing list