Line 0
Link Here
|
|
|
1 |
--- contrib/x265/P01-freebsd-ppc.patch.orig 2019-11-12 19:13:27 UTC |
2 |
+++ contrib/x265/P01-freebsd-ppc.patch |
3 |
@@ -0,0 +1,50 @@ |
4 |
+--- x265_2.9/source/common/cpu.cpp.orig 2019-11-12 20:19:28.629150000 +0100 |
5 |
++++ x265_2.9/source/common/cpu.cpp |
6 |
+@@ -127,6 +127,7 @@ |
7 |
+ { |
8 |
+ return(enable512); |
9 |
+ } |
10 |
++ |
11 |
+ uint32_t cpu_detect(bool benableavx512 ) |
12 |
+ { |
13 |
+ |
14 |
+--- x265_2.9/source/common/quant.cpp.orig 2019-11-12 20:19:34.848807000 +0100 |
15 |
++++ x265_2.9/source/common/quant.cpp |
16 |
+@@ -723,6 +723,7 @@ |
17 |
+ X265_CHECK(coeffNum[cgScanPos] == 0, "count of coeff failure\n"); |
18 |
+ uint32_t scanPosBase = (cgScanPos << MLS_CG_SIZE); |
19 |
+ uint32_t blkPos = codeParams.scan[scanPosBase]; |
20 |
++#if X265_ARCH_X86 |
21 |
+ bool enable512 = detect512(); |
22 |
+ if (enable512) |
23 |
+ primitives.cu[log2TrSize - 2].psyRdoQuant(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos); |
24 |
+@@ -731,6 +732,10 @@ |
25 |
+ primitives.cu[log2TrSize - 2].psyRdoQuant_1p(m_resiDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost,blkPos); |
26 |
+ primitives.cu[log2TrSize - 2].psyRdoQuant_2p(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos); |
27 |
+ } |
28 |
++#else |
Line 0
Link Here
|
|
|
1 |
--- make/variant/freebsd.defs.orig 2019-02-22 17:23:51.000000000 +0100 |
2 |
+++ make/variant/freebsd.defs 2019-11-17 20:08:28.821497000 +0100 |
3 |
@@ -15,4 +15,4 @@ |
4 |
|
5 |
GCC.MAJOR_VERSION = $(shell $(GCC.gcc) -dumpversion | cut -f 1 -d .) |
6 |
GCC.LDFLAGS = -lc++ -Wl,-rpath=$(LOCALBASE)/lib/gcc$(GCC.MAJOR_VERSION) |
7 |
-LDFLAGS += $(if $(findstring gcc, $(GCC.gcc)), $(GCC.LDFLAGS), ) |
8 |
+LDFLAGS += $(if $(findstring gcc, $(GCC.gcc)), $(if $(findstring x86, $(GCC.archs)), $(GCC.LDFLAGS), ), ) |