Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Issue 12478002: Break out SSE functions into new media_sse target. (Closed)

Created:
7 years, 9 months ago by DaleCurtis
Modified:
7 years, 9 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, Mark Mentovai
Visibility:
Public.

Description

Break out SSE functions into new media_sse target. It turns out Chrome doesn't have a minimum requirement of SSE yet, so we can't rely on __SSE__ being set at compile time. To use SSE code we need to put it in a separate GYP target compiled with -msse. This patch set does exactly that for vector_fmac::FMAC_SSE() and SincResampler::Convolve_SSE(). Doing so required some slight rearrangements of constants for SincResampler. Given all of our bots should have SSE I've made it a requirement for passing the tests when run on X86. BUG=none TEST=media_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186285

Patch Set 1 : Fix presubmit. #

Total comments: 10

Patch Set 2 : Comments. #

Patch Set 3 : Fix Windows && iOS. #

Patch Set 4 : Really fix iOS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -110 lines) Patch
A media/base/simd/sinc_resampler_sse.cc View 1 chunk +48 lines, -0 lines 0 comments Download
A media/base/simd/vector_math_sse.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M media/base/sinc_resampler.h View 1 4 chunks +30 lines, -5 lines 0 comments Download
M media/base/sinc_resampler.cc View 1 5 chunks +11 lines, -78 lines 0 comments Download
M media/base/sinc_resampler_unittest.cc View 4 chunks +10 lines, -1 line 0 comments Download
M media/base/vector_math.cc View 1 3 chunks +5 lines, -21 lines 0 comments Download
M media/base/vector_math_testing.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M media/base/vector_math_unittest.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 4 chunks +34 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
DaleCurtis
cc: mark since he kindly offered to review.
7 years, 9 months ago (2013-03-05 21:05:26 UTC) #1
Mark Mentovai
This is exactly what I had in mind (with the further optimization that you don’t ...
7 years, 9 months ago (2013-03-05 21:32:31 UTC) #2
DaleCurtis
https://codereview.chromium.org/12478002/diff/9001/media/base/simd/vector_math_sse.cc File media/base/simd/vector_math_sse.cc (right): https://codereview.chromium.org/12478002/diff/9001/media/base/simd/vector_math_sse.cc#newcode7 media/base/simd/vector_math_sse.cc:7: #include <xmmintrin.h> // NOLINT On 2013/03/05 21:32:31, Mark Mentovai ...
7 years, 9 months ago (2013-03-05 21:51:37 UTC) #3
Mark Mentovai
Good use of __SSE__. LGTM.
7 years, 9 months ago (2013-03-05 22:06:35 UTC) #4
scherkus (not reviewing)
lgtm looks like you have a few busted bots
7 years, 9 months ago (2013-03-05 22:33:45 UTC) #5
DaleCurtis
Yeah, iOS apparently sets target_arch=x86||x64 http://crbug.com/172682 and Windows had issues with MEDIA_EXPORT. Both were tiny ...
7 years, 9 months ago (2013-03-05 22:41:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/12478002/13002
7 years, 9 months ago (2013-03-05 22:51:24 UTC) #7
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests, compile, content_unittests, crypto_unittests, googleurl_unittests, media_unittests, ...
7 years, 9 months ago (2013-03-05 23:03:06 UTC) #8
DaleCurtis
7 years, 9 months ago (2013-03-06 00:03:15 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 manually as r186285 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698