From 6522b45336ac04cbdf238a4dec287ab7df8de9bc Mon Sep 17 00:00:00 2001 From: pcpa Date: Wed, 15 Nov 2017 06:20:55 -0500 Subject: [PATCH] Add PPC64le support --- nvidia-texture-tools-ppcle.patch | 39 ++++++++++++++++++++++++++++++++ nvidia-texture-tools.spec | 3 +++ 2 files changed, 42 insertions(+) create mode 100644 nvidia-texture-tools-ppcle.patch diff --git a/nvidia-texture-tools-ppcle.patch b/nvidia-texture-tools-ppcle.patch new file mode 100644 index 0000000..0b25fd3 --- /dev/null +++ b/nvidia-texture-tools-ppcle.patch @@ -0,0 +1,39 @@ +diff -up nvidia-texture-tools/src/nvtt/squish/simd_ve.h.orig nvidia-texture-tools/src/nvtt/squish/simd_ve.h +--- nvidia-texture-tools/src/nvtt/squish/simd_ve.h.orig 2017-11-15 06:05:46.803953979 -0500 ++++ nvidia-texture-tools/src/nvtt/squish/simd_ve.h 2017-11-15 06:06:42.533956113 -0500 +@@ -31,7 +31,7 @@ + + namespace squish { + +-#define VEC4_CONST( X ) Vec4( ( vector float )( X ) ) ++#define VEC4_CONST( X ) Vec4( ( vector float ){ X } ) + + class Vec4 + { +@@ -96,7 +96,7 @@ public: + + Vec4& operator*=( Arg v ) + { +- m_v = vec_madd( m_v, v.m_v, ( vector float )( -0.0f ) ); ++ m_v = vec_madd( m_v, v.m_v, ( vector float ){ -0.0f } ); + return *this; + } + +@@ -112,7 +112,7 @@ public: + + friend Vec4 operator*( Vec4::Arg left, Vec4::Arg right ) + { +- return Vec4( vec_madd( left.m_v, right.m_v, ( vector float )( -0.0f ) ) ); ++ return Vec4( vec_madd( left.m_v, right.m_v, ( vector float ){ -0.0f } ) ); + } + + //! Returns a*b + c +@@ -133,7 +133,7 @@ public: + vector float estimate = vec_re( v.m_v ); + + // one round of Newton-Rhaphson refinement +- vector float diff = vec_nmsub( estimate, v.m_v, ( vector float )( 1.0f ) ); ++ vector float diff = vec_nmsub( estimate, v.m_v, ( vector float ){ 1.0f } ); + return Vec4( vec_madd( diff, estimate, estimate ) ); + } + diff --git a/nvidia-texture-tools.spec b/nvidia-texture-tools.spec index 1175e29..ae759b7 100644 --- a/nvidia-texture-tools.spec +++ b/nvidia-texture-tools.spec @@ -37,6 +37,8 @@ Patch7: %{name}-bool-null.patch Patch8: %{name}-mips.patch # add S390 support Patch9: %{name}-s390.patch +# add PPCLE support +Patch10: %{name}-ppcle.patch %description The NVIDIA Texture Tools is a collection of image processing and texture @@ -70,6 +72,7 @@ Headers and libraries for development with %{name}. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build mkdir -p build