Closed
Bug 572876
Opened 15 years ago
Closed 15 years ago
Enable VP8 asm on x86-64 Linux
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b1
People
(Reporter: derf, Assigned: derf)
References
()
Details
Attachments
(1 file, 2 obsolete files)
|
9.39 KB,
patch
|
cpearce
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.23) Gecko/20100611 SeaMonkey/1.1.18
Build Identifier:
Asm for VP8 was previously disabled on x86-64 Linux due to linking problems. These problems should be resolved and asm enabled on this platform.
Reproducible: Always
| Assignee | ||
Comment 1•15 years ago
|
||
Attachment #452084 -
Flags: review?(chris)
Updated•15 years ago
|
Attachment #452084 -
Attachment is patch: true
Attachment #452084 -
Attachment mime type: application/octet-stream → text/plain
Comment 2•15 years ago
|
||
Comment on attachment 452084 [details] [diff] [review]
Patch to fix the linker issue on x86-64 Linux and enable VP8 asm.
The ":data hidden" directive breaks the yasm2masm.py translator/ml.exe wrapper:
YASM-to-MASM translate-compile: /d/work/src/purple/media/libvpx/vp8/common/x86/subpixel_mmx.asm
ml -c -Fo subpixel_mmx.obj -I/d/work/src/purple/media/libvpx/ -I/d/work/src/purple/media/libvpx/vpx_ports/ -D __OUTPUT_FORMAT__=win32 -safeseh subpixel_mmx.obj
.p
Microsoft (R) Macro Assembler Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Assembling: subpixel_mmx.obj.p
subpixel_mmx.obj.p(735) : error A2008:syntax error : :
subpixel_mmx.obj.p(795) : error A2008:syntax error : :
make[1]: *** [subpixel_mmx.obj] Error 1
Can you make the ":data hidden" into a preprocessor macro which only has a body on x86_64 Linux? Or find some other way to only have it present on x86_64 Linux? Thanks!
Attachment #452084 -
Flags: review?(chris) → review-
| Assignee | ||
Comment 3•15 years ago
|
||
This version uses a macro to only apply the :data hidden directive for ELF64 targets.
Attachment #452084 -
Attachment is obsolete: true
Attachment #452099 -
Flags: review?(chris)
Comment 4•15 years ago
|
||
Comment on attachment 452099 [details] [diff] [review]
Patch to fix the linker issue on x86-64 Linux and enable VP8 asm.
I've pushed to tryserver, and have also started x86 linux, mac, and win32 builds locally with this patch applied. You need to add the following to your patch, to compile on Win32. If you add that, and it builds on the platforms I'm testing, I'm happy to r+ it.
diff --git a/media/libvpx/vpx_ports/x86_abi_support_win32.asm b/media/libvpx/vpx_ports/x86_abi_support_win32.asm
--- a/media/libvpx/vpx_ports/x86_abi_support_win32.asm
+++ b/media/libvpx/vpx_ports/x86_abi_support_win32.asm
@@ -61,13 +61,15 @@ SHADOW_ARGS_TO_STACK macro v
endm
UNSHADOW_ARGS macro v
endm
SECTION_RODATA macro
.const
endm
+HIDDEN_DATA textequ <>
+
.686p
.XMM
.model flat, C
option casemap :none ; be case-insensitive
.code
Attachment #452099 -
Flags: review?(chris) → review-
Comment 5•15 years ago
|
||
(In reply to comment #4)
> (From update of attachment 452099 [details] [diff] [review])
> I've pushed to tryserver, and have also started x86 linux, mac, and win32
> builds locally with this patch applied.
Local x86 Linux and Win32 builds succeeded (with the addition from comment 4). Mac and TryServer will take longer, to complete.
| Assignee | ||
Comment 6•15 years ago
|
||
Add HIDDEN_DATA macro for masm win32 build.
Attachment #452099 -
Attachment is obsolete: true
Attachment #452117 -
Flags: review?(chris)
Updated•15 years ago
|
Assignee: nobody → tterribe
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 7•15 years ago
|
||
Add bug URL on Issue tracker of libvpx
Updated•15 years ago
|
Attachment #452117 -
Flags: review?(chris) → review+
| Assignee | ||
Comment 8•15 years ago
|
||
This has been submitted upstream as
http://review.webmproject.org/187
Updated•15 years ago
|
Keywords: checkin-needed
Whiteboard: [needs landing]
Comment 9•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [needs landing]
Target Milestone: --- → mozilla1.9.3a6
You need to log in
before you can comment on or make changes to this bug.
Description
•