Closed
Bug 561739
Opened 16 years ago
Closed 16 years ago
Implement YCbCr conversion on Solaris
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ginnchen+exoracle, Assigned: ginnchen+exoracle)
References
Details
Attachments
(1 file, 1 obsolete file)
|
16.17 KB,
patch
|
cajbir
:
review+
|
Details | Diff | Splinter Review |
1) Make chromium_types recognize SPARC and __i386.
2) emms only be used on x86. It doesn't compile on SPARC
3) Fallback to C implementation on SPARC
4) Sun Studio needs special #pragma for alignment
5) Sun Studio only supports inline asm to be used inside a function, so write
FastConvertYUVToRGB32Row in a different way.
The patch in bug 561736 is required to activate the code on Solaris.
Attachment #441477 -
Flags: review?(chris.double)
some changes are required for x86_64 assemble.
1) movzb to movzbq
2) kCoeffientsRgbY to & kCoeffientsRgbY
perhaps I'd better fork the file.
Attachment #441477 -
Attachment is obsolete: true
Attachment #441777 -
Flags: review?(chris.double)
Attachment #441477 -
Flags: review?(chris.double)
Comment 3•16 years ago
|
||
Comment on attachment 441777 [details] [diff] [review]
patch v2
>+#ifdef __SUNPRO_CC
>+// AMD64 ABI uses register paremters.
Spelling for 'paremters'.
I'm not familiar with 64 bit assembly language so didn't review that code at all. Do reftests pass?
Attachment #441777 -
Flags: review?(chris.double) → review+
http://hg.mozilla.org/mozilla-central/rev/28962e3d0ed3
> Spelling for 'paremters'.
Fixed, btw: it is copied from the original code.
> I'm not familiar with 64 bit assembly language so didn't review that code at
> all. Do reftests pass?
The assembly is just copy from gcc version with very few modification.
I didn't reftest with 64bit, but I did try to play a ogg movie.
Also all reftests passed with 32bit.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 5•16 years ago
|
||
May I suggest to not key the 64bitness on __sparcv9 being defined, but something more obvious like __LP64__ or _LP64? Just for cosmetical reasons.
I think __sparcv9 is more accurate here.
Because it is used for ARCH_CPU_*.
It is about what assembly should be used for the CPU.
_LP64 is about the data mode.
In theory, sparcv9 can use something other than _LP64.
Just my thought.
Comment 8•16 years ago
|
||
Ok, it is not exactly clear what the result is used for (to mee, at least), since it doesn't realy seem to be used for now. I was exactly aiming at sparcv9 machines running 32bit userland code - should those have ARCH_CPU_64_BITS defined or not?
Maybe you see better what I mean if you compare your #ifdef change to the patch I proposed for #569571.
I find __sparcv9 (only defined for 64bit compiles) pretty confusing compared to __sparc_v9__ (defined if targetting v9 cpus even in 32bit code).
However, since we don't usually build 32bit firefox for NetBSD/sparc64 (and I don't realy care if that would work), and it's not clear that the define would have any effect at all, the change as commited is fine with me.
(In reply to comment #8)
> Ok, it is not exactly clear what the result is used for (to mee, at least),
> since it doesn't realy seem to be used for now. I was exactly aiming at sparcv9
> machines running 32bit userland code - should those have ARCH_CPU_64_BITS
> defined or not?
It should not.
> I find __sparcv9 (only defined for 64bit compiles) pretty confusing compared to
> __sparc_v9__ (defined if targetting v9 cpus even in 32bit code).
Sounds confusing.
However, with gcc 3.4.3 on Solaris, I didn't see __sparc_v9__ defined with either -m32 or -m64.
Comment 10•16 years ago
|
||
This might depend on default target cpu type or whatever - but let's take this part elsewhere.
You need to log in
before you can comment on or make changes to this bug.
Description
•