pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/MesaLib



Module Name:    pkgsrc
Committed By:   tnn
Date:           Fri Feb 21 21:52:24 UTC 2020

Modified Files:
        pkgsrc/graphics/MesaLib: Makefile distinfo
        pkgsrc/graphics/MesaLib/patches: patch-src_mapi_entry__x86-64__tls.h

Log Message:
MesaLib: assorted fixes

- must use march=i586 on i386 for 64-bit atomic CAS
- call through @plt from position independent code
- put back the stock STUB_ASM_CODE for non-NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.184 -r1.185 pkgsrc/graphics/MesaLib/Makefile
cvs rdiff -u -r1.148 -r1.149 pkgsrc/graphics/MesaLib/distinfo
cvs rdiff -u -r1.4 -r1.5 \
    pkgsrc/graphics/MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/MesaLib/Makefile
diff -u pkgsrc/graphics/MesaLib/Makefile:1.184 pkgsrc/graphics/MesaLib/Makefile:1.185
--- pkgsrc/graphics/MesaLib/Makefile:1.184      Wed Feb 19 21:03:41 2020
+++ pkgsrc/graphics/MesaLib/Makefile    Fri Feb 21 21:52:24 2020
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.184 2020/02/19 21:03:41 tnn Exp $
+# $NetBSD: Makefile,v 1.185 2020/02/21 21:52:24 tnn Exp $
 
 DISTNAME=      mesa-19.2.7
 PKGNAME=       ${DISTNAME:S/mesa/MesaLib/}
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    graphics
 MASTER_SITES=  https://mesa.freedesktop.org/archive/
 EXTRACT_SUFX=  .tar.xz
@@ -124,6 +124,8 @@ MESON_ARGS+=        -Dplatforms=${MESA_PLATFORM
 
 .if ${MACHINE_ARCH} == "i386"
 MESON_ARGS+=   -Dglx-read-only-text=true
+CFLAGS+=       -march=i586
+CXXFLAGS+=     -march=i586
 .endif
 
 MESON_ARGS+=   -Dgles1=true

Index: pkgsrc/graphics/MesaLib/distinfo
diff -u pkgsrc/graphics/MesaLib/distinfo:1.148 pkgsrc/graphics/MesaLib/distinfo:1.149
--- pkgsrc/graphics/MesaLib/distinfo:1.148      Wed Feb 19 21:03:41 2020
+++ pkgsrc/graphics/MesaLib/distinfo    Fri Feb 21 21:52:24 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.148 2020/02/19 21:03:41 tnn Exp $
+$NetBSD: distinfo,v 1.149 2020/02/21 21:52:24 tnn Exp $
 
 SHA1 (mesa-19.2.7.tar.xz) = 9b8ebf66770353a48bd710e12e2727fb33645f44
 RMD160 (mesa-19.2.7.tar.xz) = 5323b623ac22c168b86548cf6d842ce004e346a9
@@ -30,7 +30,7 @@ SHA1 (patch-src_intel_compiler_brw__fs__
 SHA1 (patch-src_intel_perf_gen__perf.c) = 526f36d96bd9d72893764da2b9e78cb9b70de92b
 SHA1 (patch-src_intel_tools_aubinator__error__decode.c) = d8f636e3c3e76763a505a1dce23de0b198ad62fa
 SHA1 (patch-src_loader_loader.c) = 303e941f9b8afa6ee8053107af01e2c26e6ff118
-SHA1 (patch-src_mapi_entry__x86-64__tls.h) = 7cb6a31dd17e73dad3c3b9cfdf058da1a2a7ecd3
+SHA1 (patch-src_mapi_entry__x86-64__tls.h) = cbbb95b96414609a9cd05af75c9544f8e6938280
 SHA1 (patch-src_mapi_entry__x86__tls.h) = 11c0f5302d305a77f3a1780d44a2c61f48a66273
 SHA1 (patch-src_mapi_u__current.c) = 4e3ec6e253af3737f77ecd43e56044ba2b81e699
 SHA1 (patch-src_mapi_u__current.h) = 9f4744681381a0959fda2926a436f296c89577f3

Index: pkgsrc/graphics/MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h
diff -u pkgsrc/graphics/MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h:1.4 pkgsrc/graphics/MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h:1.5
--- pkgsrc/graphics/MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h:1.4     Wed Feb 19 21:03:41 2020
+++ pkgsrc/graphics/MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h Fri Feb 21 21:52:24 2020
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_mapi_entry__x86-64__tls.h,v 1.4 2020/02/19 21:03:41 tnn Exp $
+$NetBSD: patch-src_mapi_entry__x86-64__tls.h,v 1.5 2020/02/21 21:52:24 tnn Exp $
 
 NetBSD only supports zero-initialized initial-exec tls variables in conjuction
 with dlopen(3) at the moment.
@@ -8,7 +8,7 @@ es1api and es2api are not going to be pa
 
 --- src/mapi/entry_x86-64_tls.h.orig   2019-12-04 22:10:14.000000000 +0000
 +++ src/mapi/entry_x86-64_tls.h
-@@ -32,13 +32,13 @@
+@@ -32,21 +32,33 @@
  #endif
  
  __asm__(".text\n"
@@ -24,21 +24,27 @@ es1api and es2api are not going to be pa
     func ":"
  
  #ifndef __ILP32__
-@@ -46,7 +46,12 @@ __asm__(".text\n"
- #define STUB_ASM_CODE(slot)                              \
-    "movq " ENTRY_CURRENT_TABLE "@GOTTPOFF(%rip), %rax\n\t"  \
-    "movq %fs:(%rax), %r11\n\t"                           \
--   "jmp *(8 * " slot ")(%r11)"
+ 
++#if defined(__NetBSD__)
++#define STUB_ASM_CODE(slot)                              \
++   "movq " ENTRY_CURRENT_TABLE "@GOTTPOFF(%rip), %rax\n\t"  \
++   "movq %fs:(%rax), %r11\n\t"                           \
 +   "testq %r11, %r11\n\t"                                \
 +   "je 1f\n\t"                                           \
 +   "jmp *(8 * " slot ")(%r11)\n\t"                       \
 +   "1:\n\t"                                              \
-+   "call " ENTRY_CURRENT_TABLE_GET "\n\t"                \
++   "callq " ENTRY_CURRENT_TABLE_GET "@PLT\n\t"           \
 +   "jmp *(8 * " slot ")(%rax)"
++#else
+ #define STUB_ASM_CODE(slot)                              \
+    "movq " ENTRY_CURRENT_TABLE "@GOTTPOFF(%rip), %rax\n\t"  \
+    "movq %fs:(%rax), %r11\n\t"                           \
+    "jmp *(8 * " slot ")(%r11)"
++#endif
  
  #else
  
-@@ -77,7 +82,7 @@ x86_64_entry_start[] HIDDEN;
+@@ -77,7 +89,7 @@ x86_64_entry_start[] HIDDEN;
  mapi_func
  entry_get_public(int slot)
  {



Home | Main Index | Thread Index | Old Index