SWDEV-558845 - Support image in rocr on Windows (#1582)
Enable image build in Windows. Remove some useless codes that fail building in Windows. Some minor improvement. Temporarily exclude mipmap test files. Prevent negative tests affect some tests. Move some catch info log codes into failed cases.
This commit is contained in:
@@ -69,15 +69,15 @@ TEMPLATE_TEST_CASE("Unit_tex1DGrad_Positive_ReadModeElementType", "", char, unsi
|
||||
for (auto i = 0u; i < params.NumItersX(); ++i) {
|
||||
float x = GetCoordinate(i, params.NumItersX(), params.Width(), params.num_subdivisions,
|
||||
params.tex_desc.normalizedCoords);
|
||||
|
||||
INFO("Index: " << i);
|
||||
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
|
||||
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
|
||||
INFO("Address mode: " << AddressModeToString(params.tex_desc.addressMode[0]));
|
||||
INFO("x: " << std::fixed << std::setprecision(16) << x);
|
||||
|
||||
auto ref_val = fixture.tex_h.Tex1D(x, params.tex_desc);
|
||||
REQUIRE(fixture.Verify(fixture.out_alloc_h[i], ref_val));
|
||||
if (!fixture.Verify(fixture.out_alloc_h[i], ref_val)) {
|
||||
INFO("Index: " << i);
|
||||
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
|
||||
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
|
||||
INFO("Address mode: " << AddressModeToString(params.tex_desc.addressMode[0]));
|
||||
INFO("x: " << std::fixed << std::setprecision(16) << x);
|
||||
REQUIRE(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,15 +119,15 @@ TEMPLATE_TEST_CASE("Unit_tex1DGrad_Positive_ReadModeNormalizedFloat", "", char,
|
||||
for (auto i = 0u; i < params.NumItersX(); ++i) {
|
||||
float x = GetCoordinate(i, params.NumItersX(), params.Width(), params.num_subdivisions,
|
||||
params.tex_desc.normalizedCoords);
|
||||
|
||||
INFO("i: " << i);
|
||||
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
|
||||
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
|
||||
INFO("Address mode: " << AddressModeToString(params.tex_desc.addressMode[0]));
|
||||
INFO("x: " << std::fixed << std::setprecision(16) << x);
|
||||
|
||||
auto ref_val = fixture.tex_h.Tex1D(x, params.tex_desc);
|
||||
REQUIRE(fixture.Verify(fixture.out_alloc_h[i], ref_val));
|
||||
if (!fixture.Verify(fixture.out_alloc_h[i], ref_val)) {
|
||||
INFO("i: " << i);
|
||||
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
|
||||
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
|
||||
INFO("Address mode: " << AddressModeToString(params.tex_desc.addressMode[0]));
|
||||
INFO("x: " << std::fixed << std::setprecision(16) << x);
|
||||
REQUIRE(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
مرجع در شماره جدید
Block a user