Bug 74345 - WebAudio: Use float instead of double values for gain operations.
Summary: WebAudio: Use float instead of double values for gain operations.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords:
Depends on: 75835
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-12 14:48 PST by Jer Noble
Modified: 2012-01-13 14:42 PST (History)
3 users (show)

See Also:


Attachments
Patch (18.44 KB, patch)
2011-12-12 14:56 PST, Jer Noble
no flags Details | Formatted Diff | Diff
Patch (18.45 KB, patch)
2011-12-12 15:57 PST, Jer Noble
no flags Details | Formatted Diff | Diff
Patch (18.40 KB, patch)
2011-12-12 17:27 PST, Jer Noble
no flags Details | Formatted Diff | Diff
Patch (18.40 KB, patch)
2011-12-12 22:29 PST, Jer Noble
no flags Details | Formatted Diff | Diff
Patch (10.16 KB, patch)
2012-01-13 10:54 PST, Jer Noble
sam: review+
jer.noble: commit-queue+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2011-12-12 14:48:45 PST
WebAudio: Optimize processWithGainFromMonoStereo.
Comment 1 Jer Noble 2011-12-12 14:56:14 PST
Created attachment 118866 [details]
Patch
Comment 2 Jer Noble 2011-12-12 15:57:02 PST
Created attachment 118893 [details]
Patch

Rebased patch against ToT.
Comment 3 WebKit Review Bot 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
Comment 4 Jer Noble 2011-12-12 17:27:51 PST
Created attachment 118923 [details]
Patch
Comment 5 WebKit Review Bot 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
Comment 6 Jer Noble 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.
Comment 7 Chris Rogers 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.
Comment 8 Jer Noble 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.
Comment 9 Chris Rogers 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
Comment 10 Jer Noble 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.
Comment 11 Jer Noble 2012-01-13 10:47:37 PST
Updated title of bug now that a fix for bug #75835 has been committed.
Comment 12 Jer Noble 2012-01-13 10:54:02 PST
Created attachment 122457 [details]
Patch
Comment 13 Jer Noble 2012-01-13 14:42:56 PST
Committed r104993: <http://trac.webkit.org/changeset/104993>