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

Issue 239453010: Properly enable S32_D16_filter_DX_SSE2 optimization. (Closed)

Created:
6 years, 8 months ago by henrik.smiding
Modified:
6 years, 7 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Properly enable S32_D16_filter_DX_SSE2 optimization. Currently, the S32_D16_filter_DX_SSE2 optimization is only used in configurations where the maximum SSE level is SSE2. This patch enables it for higher levels, as well as fixing a color conversion bug when the subpixels are converted into RGB565 format. Also, refactored the function a bit, to make future modifications less error-prone. Author: henrik.smiding@intel.com Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>; Committed: http://code.google.com/p/skia/source/detail?r=14333 Committed: http://code.google.com/p/skia/source/detail?r=14403

Patch Set 1 #

Total comments: 1

Patch Set 2 : Refactoring of code. #

Total comments: 3

Patch Set 3 : Removed unnecessary comments #

Patch Set 4 : Fixed RGB inversion #

Total comments: 2

Patch Set 5 : Removed obsolete code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -50 lines) Patch
M src/opts/SkBitmapProcState_opts_SSE2.cpp View 1 2 3 4 3 chunks +4 lines, -20 lines 0 comments Download
M src/opts/opts_check_SSE2.cpp View 1 2 1 chunk +38 lines, -30 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
henrik.smiding
Developers! Would you kindly use your vast knowledge and review this tiny patch, like the ...
6 years, 8 months ago (2014-04-16 16:31:35 UTC) #1
mtklein
https://codereview.chromium.org/239453010/diff/1/src/opts/opts_check_SSE2.cpp File src/opts/opts_check_SSE2.cpp (right): https://codereview.chromium.org/239453010/diff/1/src/opts/opts_check_SSE2.cpp#newcode125 src/opts/opts_check_SSE2.cpp:125: void SkBitmapProcState::platformProcs() { I can see how easy this ...
6 years, 8 months ago (2014-04-16 16:40:38 UTC) #2
tomhudson
Second Mike's suggestion.
6 years, 8 months ago (2014-04-16 17:10:39 UTC) #3
henrik.smiding
On 2014/04/16 16:40:38, mtklein wrote: > https://codereview.chromium.org/239453010/diff/1/src/opts/opts_check_SSE2.cpp > File src/opts/opts_check_SSE2.cpp (right): > > https://codereview.chromium.org/239453010/diff/1/src/opts/opts_check_SSE2.cpp#newcode125 > ...
6 years, 8 months ago (2014-04-17 20:47:59 UTC) #4
mtklein
> The if-statements check the same variable as they modify. > If we first check ...
6 years, 8 months ago (2014-04-21 16:03:32 UTC) #5
tomhudson
https://codereview.chromium.org/239453010/diff/20001/src/opts/opts_check_SSE2.cpp File src/opts/opts_check_SSE2.cpp (right): https://codereview.chromium.org/239453010/diff/20001/src/opts/opts_check_SSE2.cpp#newcode132 src/opts/opts_check_SSE2.cpp:132: if (fSampleProc32 == S32_opaque_D32_filter_DX) { // Check S32_opaque_D32_filter_DX Nit: ...
6 years, 8 months ago (2014-04-22 09:47:28 UTC) #6
henrik.smiding
https://codereview.chromium.org/239453010/diff/20001/src/opts/opts_check_SSE2.cpp File src/opts/opts_check_SSE2.cpp (right): https://codereview.chromium.org/239453010/diff/20001/src/opts/opts_check_SSE2.cpp#newcode132 src/opts/opts_check_SSE2.cpp:132: if (fSampleProc32 == S32_opaque_D32_filter_DX) { // Check S32_opaque_D32_filter_DX On ...
6 years, 8 months ago (2014-04-22 12:18:58 UTC) #7
henrik.smiding
https://codereview.chromium.org/239453010/diff/20001/src/opts/opts_check_SSE2.cpp File src/opts/opts_check_SSE2.cpp (right): https://codereview.chromium.org/239453010/diff/20001/src/opts/opts_check_SSE2.cpp#newcode132 src/opts/opts_check_SSE2.cpp:132: if (fSampleProc32 == S32_opaque_D32_filter_DX) { // Check S32_opaque_D32_filter_DX On ...
6 years, 8 months ago (2014-04-23 13:12:49 UTC) #8
tomhudson
lgtm Thanks! Nobody but MikeK has spoken up, so I'm going to assume this is ...
6 years, 8 months ago (2014-04-23 15:00:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/henrik.smiding@intel.com/239453010/40001
6 years, 8 months ago (2014-04-23 15:00:16 UTC) #10
commit-bot: I haz the power
Change committed as 14333
6 years, 8 months ago (2014-04-23 19:26:17 UTC) #11
bsalomon
On 2014/04/23 19:26:17, I haz the power (commit-bot) wrote: > Change committed as 14333 Could ...
6 years, 8 months ago (2014-04-23 19:54:05 UTC) #12
bsalomon
On 2014/04/23 19:54:05, bsalomon wrote: > On 2014/04/23 19:26:17, I haz the power (commit-bot) wrote: ...
6 years, 8 months ago (2014-04-23 20:06:05 UTC) #13
bsalomon
A revert of this CL has been created in https://codereview.chromium.org/246393013/ by bsalomon@google.com. The reason for ...
6 years, 8 months ago (2014-04-23 20:07:00 UTC) #14
henrik.smiding
On 2014/04/23 20:07:00, bsalomon wrote: > A revert of this CL has been created in ...
6 years, 8 months ago (2014-04-24 10:59:19 UTC) #15
henrik.smiding
On 2014/04/23 20:06:05, bsalomon wrote: > On 2014/04/23 19:54:05, bsalomon wrote: > > On 2014/04/23 ...
6 years, 8 months ago (2014-04-25 17:00:19 UTC) #16
tomhudson
On 2014/04/25 17:00:19, henrik.smiding wrote: > Found the bug and fixed it. Passed the test ...
6 years, 7 months ago (2014-04-28 10:36:59 UTC) #17
henrik.smiding
On 2014/04/28 10:36:59, tomhudson wrote: > On 2014/04/25 17:00:19, henrik.smiding wrote: > > Found the ...
6 years, 7 months ago (2014-04-28 12:38:39 UTC) #18
djsollen
https://codereview.chromium.org/239453010/diff/60001/src/opts/SkBitmapProcState_opts_SSE2.cpp File src/opts/SkBitmapProcState_opts_SSE2.cpp (right): https://codereview.chromium.org/239453010/diff/60001/src/opts/SkBitmapProcState_opts_SSE2.cpp#newcode748 src/opts/SkBitmapProcState_opts_SSE2.cpp:748: *colors++ = SkPixel32ToPixel16(dstColor); If this is indeed faster then ...
6 years, 7 months ago (2014-04-28 13:05:11 UTC) #19
henrik.smiding
https://codereview.chromium.org/239453010/diff/60001/src/opts/SkBitmapProcState_opts_SSE2.cpp File src/opts/SkBitmapProcState_opts_SSE2.cpp (right): https://codereview.chromium.org/239453010/diff/60001/src/opts/SkBitmapProcState_opts_SSE2.cpp#newcode748 src/opts/SkBitmapProcState_opts_SSE2.cpp:748: *colors++ = SkPixel32ToPixel16(dstColor); On 2014/04/28 13:05:11, djsollen wrote: > ...
6 years, 7 months ago (2014-04-28 13:37:58 UTC) #20
tomhudson
lgtm
6 years, 7 months ago (2014-04-28 13:38:38 UTC) #21
henrik.smiding
The CQ bit was checked by henrik.smiding@intel.com
6 years, 7 months ago (2014-04-28 14:54:44 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/henrik.smiding@intel.com/239453010/80001
6 years, 7 months ago (2014-04-28 14:54:54 UTC) #23
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 15:07:52 UTC) #24
Message was sent while issue was closed.
Change committed as 14403

Powered by Google App Engine
This is Rietveld 408576698