- u_svga-Fix-build-on-ppc64le.patch

* This let us compile the code on ppc64le, but it no-ops the log
    function.

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=645
This commit is contained in:
Stefan Dirsch 2017-09-07 12:28:09 +00:00 committed by Git OBS Bridge
parent 98015196a8
commit 9a39a129c3
3 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Sep 7 10:16:43 UTC 2017 - sndirsch@suse.com
- u_svga-Fix-build-on-ppc64le.patch
* This let us compile the code on ppc64le, but it no-ops the log
function.
-------------------------------------------------------------------
Tue Sep 5 09:50:56 UTC 2017 - sndirsch@suse.com

View File

@ -89,6 +89,7 @@ Patch32: archlinux_glvnd-fix-gl-dot-pc.patch
Patch40: u_gallivm-correct-channel-shift-logic-on-big-endian.patch
Patch41: u_llvmpipe-lp_build_gather_elem_vec-BE-fix-for-3x16-lo.patch
Patch42: u_r600-Add-support-for-B5G5R5A1.patch
Patch43: u_svga-Fix-build-on-ppc64le.patch
BuildRequires: autoconf >= 2.60
BuildRequires: automake
@ -665,6 +666,7 @@ rm -rf docs/README.{VMS,WIN32,OS2}
%patch40 -p1
%patch41 -p1
%patch42 -p1
%patch43 -p1
# Remove requires to libglvnd/libglvnd-devel from baselibs.conf when
# disabling libglvnd build; ugly ...

View File

@ -0,0 +1,26 @@
From 96b59b70573b8fafc377b4ac04fe46a2474180da Mon Sep 17 00:00:00 2001
From: Stefan Dirsch <sndirsch@suse.de>
Date: Thu, 7 Sep 2017 11:53:21 +0200
Subject: [PATCH glx/glxglvnd] svga: Fix build on ppc64le.
This let us compile the code on ppc64le, but it no-ops the log function.
---
src/gallium/drivers/svga/svga_msg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/svga/svga_msg.c b/src/gallium/drivers/svga/svga_msg.c
index e0346dee75..611abb70f4 100755
--- a/src/gallium/drivers/svga/svga_msg.c
+++ b/src/gallium/drivers/svga/svga_msg.c
@@ -57,7 +57,7 @@
#define HIGH_WORD(X) ((X & 0xFFFF0000) >> 16)
-#if defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION > 502)
+#if defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION > 502) && !defined(USE_PPC64LE_ASM)
/**
* Hypervisor-specific bi-directional communication channel. Should never
--
2.13.5