[x265] [PATCH] h-ipfilter8.asm: Move a bit of data that sneaked into .text into .rodata

Brad Smith brad at comstyle.com
Fri Feb 3 23:25:43 UTC 2023


Move a bit of data that sneaked into .text into .rodata.

Makes the tests run (and pass) on OpenBSD/amd64 with PKU (x-only) enabled.


diff --git a/source/common/x86/h-ipfilter8.asm b/source/common/x86/h-ipfilter8.asm
index 53d7f2d3c..c8a558b3d 100644
--- a/source/common/x86/h-ipfilter8.asm
+++ b/source/common/x86/h-ipfilter8.asm
@@ -125,6 +125,9 @@ const pb_8tap_hps_0, times 2 db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8
 ALIGN 32
 interp4_hps_shuf: times 2 db 0, 1, 2, 3, 1, 2, 3, 4, 8, 9, 10, 11, 9, 10, 11, 12
 
+ALIGN 32
+const interp_4tap_8x8_horiz_shuf,   dd 0, 4, 1, 5, 2, 6, 3, 7
+
 SECTION .text
 
 cextern pw_1
@@ -1459,9 +1462,6 @@ cglobal interp_4tap_horiz_pp_4x32, 4, 6, 5, src, srcstride, dst, dststride
 
     RET
 
-ALIGN 32
-const interp_4tap_8x8_horiz_shuf,   dd 0, 4, 1, 5, 2, 6, 3, 7
-
 %macro FILTER_H4_w6 3
     movu        %1, [srcq - 1]
     pshufb      %2, %1, Tm0


More information about the x265-devel mailing list