Bug 74345

Summary: WebAudio: Use float instead of double values for gain operations.
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: New BugsAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: crogers, dglazkov, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 75835    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch sam: review+, jer.noble: commit-queue+

Jer Noble
Reported 2011-12-12 14:48:45 PST
WebAudio: Optimize processWithGainFromMonoStereo.
Attachments
Patch (18.44 KB, patch)
2011-12-12 14:56 PST, Jer Noble
no flags
Patch (18.45 KB, patch)
2011-12-12 15:57 PST, Jer Noble
no flags
Patch (18.40 KB, patch)
2011-12-12 17:27 PST, Jer Noble
no flags
Patch (18.40 KB, patch)
2011-12-12 22:29 PST, Jer Noble
no flags
Patch (10.16 KB, patch)
2012-01-13 10:54 PST, Jer Noble
sam: review+
jer.noble: commit-queue+
Jer Noble
Comment 1 2011-12-12 14:56:14 PST
Jer Noble
Comment 2 2011-12-12 15:57:02 PST
Created attachment 118893 [details] Patch Rebased patch against ToT.
WebKit Review Bot
Comment 3 2011-12-12 17:11:50 PST
Comment on attachment 118893 [details] Patch Attachment 118893 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/10846118
Jer Noble
Comment 4 2011-12-12 17:27:51 PST
WebKit Review Bot
Comment 5 2011-12-12 18:44:25 PST
Comment on attachment 118923 [details] Patch Attachment 118923 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/10850160
Jer Noble
Comment 6 2011-12-12 22:29:56 PST
Created attachment 118955 [details] Patch Corrected order of parameters for vsma in VectorMath.cpp which was causing link errors in the Chromium build bots.
Chris Rogers
Comment 7 2012-01-10 14:22:04 PST
Hi Jer, have you seen the latest Intel patches to this same area of code? They've landed a few changes already which seem to be optimizing the same things.
Jer Noble
Comment 8 2012-01-10 14:42:33 PST
(In reply to comment #7) > Hi Jer, have you seen the latest Intel patches to this same area of code? They've landed a few changes already which seem to be optimizing the same things. I have. Their patches don't seem to entirely overlap with mine, though a lot of the vector math additions are the same.
Chris Rogers
Comment 9 2012-01-12 15:51:36 PST
Comment on attachment 118955 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=118955&action=review > Source/WebCore/platform/audio/AudioBus.cpp:-238 > - // FIXME: Need fast path here when gain has converged on targetGain. In this case, de-zippering is no longer needed. I believe this FIXME has already been addressed by some Intel patches - please see latest code. > Source/WebCore/platform/audio/AudioBus.cpp:289 > + } else if (sumToBus) { Lines 261:289 have already been addressed with similar optimizations already landed (with macros). Also, there's a more recent patch which seems like it's almost ready: https://bugs.webkit.org/show_bug.cgi?id=75835
Jer Noble
Comment 10 2012-01-12 16:17:34 PST
Comment on attachment 118955 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=118955&action=review >> Source/WebCore/platform/audio/AudioBus.cpp:-238 >> - // FIXME: Need fast path here when gain has converged on targetGain. In this case, de-zippering is no longer needed. > > I believe this FIXME has already been addressed by some Intel patches - please see latest code. I'll rebase and upload a new patch. >> Source/WebCore/platform/audio/AudioBus.cpp:289 >> + } else if (sumToBus) { > > Lines 261:289 have already been addressed with similar optimizations already landed (with macros). Also, there's a more recent patch which seems like it's almost ready: > https://bugs.webkit.org/show_bug.cgi?id=75835 Ditto.
Jer Noble
Comment 11 2012-01-13 10:47:37 PST
Updated title of bug now that a fix for bug #75835 has been committed.
Jer Noble
Comment 12 2012-01-13 10:54:02 PST
Jer Noble
Comment 13 2012-01-13 14:42:56 PST
Note You need to log in before you can comment on or make changes to this bug.