Skip to content

Commit 685693a

Browse files
Revert to 8e5a59f
1 parent e33c1cd commit 685693a

File tree

3 files changed

+33
-250
lines changed

3 files changed

+33
-250
lines changed

tests/Directory.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<PackageReference Update="Colourful" Version="2.0.5" />
3131
<PackageReference Update="coverlet.collector" Version="1.3.0" PrivateAssets="All"/>
3232
<PackageReference Update="Magick.NET-Q16-AnyCPU" Version="7.15.5" />
33-
<PackageReference Update="Microsoft.DotNet.RemoteExecutor" Version="5.0.0-beta.20474.4" />
34-
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.5.0" />
33+
<PackageReference Update="Microsoft.DotNet.RemoteExecutor" Version="5.0.0-beta.20069.1" />
34+
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.5.0-preview-20200116-01" />
3535
<PackageReference Update="Moq" Version="4.14.5" />
3636
<PackageReference Update="Pfim" Version="0.9.1" />
3737
<PackageReference Update="SharpZipLib" Version="1.2.0" />

tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.cs

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
// #define BENCHMARKING
66
using System;
77
using System.Diagnostics;
8+
89
using SixLabors.ImageSharp.Formats.Jpeg.Components;
910
using SixLabors.ImageSharp.Tests.Formats.Jpg.Utils;
10-
using SixLabors.ImageSharp.Tests.TestUtilities;
11+
1112
using Xunit;
1213
using Xunit.Abstractions;
1314

@@ -162,29 +163,42 @@ public void Load_Store_IntArray()
162163
}
163164

164165
[Fact]
165-
public void TransposeInto()
166+
public void TransposeIntoFallback()
166167
{
167-
static void RunTest()
168-
{
169-
float[] expected = Create8x8FloatData();
170-
ReferenceImplementations.Transpose8x8(expected);
168+
float[] expected = Create8x8FloatData();
169+
ReferenceImplementations.Transpose8x8(expected);
171170

172-
var source = default(Block8x8F);
173-
source.LoadFrom(Create8x8FloatData());
171+
var source = default(Block8x8F);
172+
source.LoadFrom(Create8x8FloatData());
174173

175-
var dest = default(Block8x8F);
176-
source.TransposeInto(ref dest);
174+
var dest = default(Block8x8F);
175+
source.TransposeIntoFallback(ref dest);
177176

178-
float[] actual = new float[64];
179-
dest.ScaledCopyTo(actual);
177+
float[] actual = new float[64];
178+
dest.ScaledCopyTo(actual);
180179

181-
Assert.Equal(expected, actual);
182-
}
180+
Assert.Equal(expected, actual);
181+
}
183182

184-
FeatureTestRunner.RunWithHwIntrinsicsFeature(
185-
RunTest,
186-
HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX);
183+
#if SUPPORTS_RUNTIME_INTRINSICS
184+
[Fact]
185+
public void TransposeIntoAvx()
186+
{
187+
float[] expected = Create8x8FloatData();
188+
ReferenceImplementations.Transpose8x8(expected);
189+
190+
var source = default(Block8x8F);
191+
source.LoadFrom(Create8x8FloatData());
192+
193+
var dest = default(Block8x8F);
194+
source.TransposeIntoAvx(ref dest);
195+
196+
float[] actual = new float[64];
197+
dest.ScaledCopyTo(actual);
198+
199+
Assert.Equal(expected, actual);
187200
}
201+
#endif
188202

189203
private class BufferHolder
190204
{

tests/ImageSharp.Tests/TestUtilities/FeatureTesting/FeatureTestRunner.cs

Lines changed: 0 additions & 231 deletions
This file was deleted.

0 commit comments

Comments
 (0)