Merge changes If253fb95,I1c8a792c,I49f9b10f,I15472738,I1e7f3c32
* changes: test: limit the valid image size on OS/2 configure: add -Zhigh-mem to LDFLAGS on OS/2 configure: disable PIC on OS/2 Makefile: add $(STACKREALIGN) to CFLAGS for vp9_reconintra.c x86inc.asm: fix NASM compilation
This commit is contained in:
commit
bdb8afbbc0
@ -140,6 +140,8 @@ $(BUILD_PFX)%_avx.c.d: CFLAGS += -mavx $(STACKREALIGN)
|
||||
$(BUILD_PFX)%_avx.c.o: CFLAGS += -mavx $(STACKREALIGN)
|
||||
$(BUILD_PFX)%_avx2.c.d: CFLAGS += -mavx2 $(STACKREALIGN)
|
||||
$(BUILD_PFX)%_avx2.c.o: CFLAGS += -mavx2 $(STACKREALIGN)
|
||||
$(BUILD_PFX)%vp9_reconintra.c.d: CFLAGS += $(STACKREALIGN)
|
||||
$(BUILD_PFX)%vp9_reconintra.c.o: CFLAGS += $(STACKREALIGN)
|
||||
|
||||
$(BUILD_PFX)%.c.d: %.c
|
||||
$(if $(quiet),@echo " [DEP] $@")
|
||||
|
@ -1081,7 +1081,9 @@ EOF
|
||||
CROSS=${CROSS:-g}
|
||||
;;
|
||||
os2)
|
||||
disable_feature pic
|
||||
AS=${AS:-nasm}
|
||||
add_ldflags -Zhigh-mem
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -74,7 +74,7 @@ TEST_F(VP9FrameSizeTestsLarge, ValidSizes) {
|
||||
// size or almost 1 gig of memory.
|
||||
// In total the allocations will exceed 2GiB which may cause a failure with
|
||||
// mingw + wine, use a smaller size in that case.
|
||||
#if defined(_WIN32) && !defined(_WIN64)
|
||||
#if defined(_WIN32) && !defined(_WIN64) || defined(__OS2__)
|
||||
video.SetSize(4096, 3072);
|
||||
#else
|
||||
video.SetSize(4096, 4096);
|
||||
|
2
third_party/x86inc/README.libvpx
vendored
2
third_party/x86inc/README.libvpx
vendored
@ -20,3 +20,5 @@ Copy PIC 'GLOBAL' macros from x86_abi_support.asm
|
||||
Use .text instead of .rodata on macho to avoid broken tables in PIC mode.
|
||||
Use .text with no alignment for aout
|
||||
Only use 'hidden' visibility with Chromium
|
||||
Move '%use smartalign' for nasm out of 'INIT_CPUFLAGS' and before
|
||||
'ALIGNMODE'.
|
||||
|
5
third_party/x86inc/x86inc.asm
vendored
5
third_party/x86inc/x86inc.asm
vendored
@ -876,6 +876,10 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits
|
||||
%define cpuflag(x) ((cpuflags & (cpuflags_ %+ x)) == (cpuflags_ %+ x))
|
||||
%define notcpuflag(x) ((cpuflags & (cpuflags_ %+ x)) != (cpuflags_ %+ x))
|
||||
|
||||
%ifdef __NASM_VER__
|
||||
%use smartalign
|
||||
%endif
|
||||
|
||||
; Takes an arbitrary number of cpuflags from the above list.
|
||||
; All subsequent functions (up to the next INIT_CPUFLAGS) is built for the specified cpu.
|
||||
; You shouldn't need to invoke this macro directly, it's a subroutine for INIT_MMX &co.
|
||||
@ -912,7 +916,6 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits
|
||||
%endif
|
||||
|
||||
%ifdef __NASM_VER__
|
||||
%use smartalign
|
||||
ALIGNMODE k7
|
||||
%elif ARCH_X86_64 || cpuflag(sse2)
|
||||
CPU amdnop
|
||||
|
Loading…
x
Reference in New Issue
Block a user