forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added AVX512 support for SkRasterPipeline_opts.h
Hi, The patch has integrated AVX512 support for certain functions in both highp and lowp. Testing and verification were conducted within the Pdfium repository, where it passed the pdfium_embeddertests.exe. Performance-wise, the AVX512 code path shows significant enhancement over the standard SSE and AVX2 paths. This performance boost was confirmed through testing with PDF files sourced from the resources folder of the Pdfium library. This is an imported pull request from google#149 GitOrigin-RevId: 3dfeb3b Change-Id: I91f95a69d914ed57707239b7d2257a6c8f0c3ffa This is an imported pull request from google#151 GitOrigin-RevId: 354e9e0 Change-Id: Ia674977e3c1a083938bbfda1e9d785595896cb88
- Loading branch information
Showing
7 changed files
with
139 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ import("xml.gni") | |
import("xps.gni") | ||
skia_opts = { | ||
hsw_sources = hsw | ||
skx_sources = skx | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright 2018 Google Inc. | ||
* | ||
* Use of this source code is governed by a BSD-style license that can be | ||
* found in the LICENSE file. | ||
*/ | ||
|
||
#include "src/core/SkOpts.h" | ||
|
||
#if !defined(SK_ENABLE_OPTIMIZE_SIZE) | ||
|
||
#define SK_OPTS_NS skx | ||
#include "src/opts/SkRasterPipeline_opts.h" | ||
|
||
namespace SkOpts { | ||
void Init_skx() { | ||
raster_pipeline_lowp_stride = SK_OPTS_NS::raster_pipeline_lowp_stride(); | ||
raster_pipeline_highp_stride = SK_OPTS_NS::raster_pipeline_highp_stride(); | ||
|
||
#define M(st) ops_highp[(int)SkRasterPipelineOp::st] = (StageFn)SK_OPTS_NS::st; | ||
SK_RASTER_PIPELINE_OPS_ALL(M) | ||
just_return_highp = (StageFn)SK_OPTS_NS::just_return; | ||
start_pipeline_highp = SK_OPTS_NS::start_pipeline; | ||
#undef M | ||
|
||
#define M(st) ops_lowp[(int)SkRasterPipelineOp::st] = (StageFn)SK_OPTS_NS::lowp::st; | ||
SK_RASTER_PIPELINE_OPS_LOWP(M) | ||
just_return_lowp = (StageFn)SK_OPTS_NS::lowp::just_return; | ||
start_pipeline_lowp = SK_OPTS_NS::lowp::start_pipeline; | ||
#undef M | ||
} | ||
} // namespace SkOpts | ||
|
||
#endif // SK_ENABLE_OPTIMIZE_SIZE |
Oops, something went wrong.