mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
refactor: remove not used image transforming logic
image transformer logic was used on gen9 and gen11 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
927b797071
commit
16458ca0ac
@@ -93,32 +93,6 @@ INSTANTIATE_TEST_SUITE_P(Sampler,
|
||||
::testing::ValuesIn(addressingModes),
|
||||
::testing::ValuesIn(filterModes)));
|
||||
|
||||
typedef ::testing::TestWithParam<std::tuple<uint32_t /*normalizedCoords*/, uint32_t /*addressingMode*/, uint32_t /*filterMode*/>> TransformableSamplerTest;
|
||||
|
||||
TEST_P(TransformableSamplerTest, givenSamplerWhenHasProperParametersThenIsTransformable) {
|
||||
bool expectedRetVal;
|
||||
bool retVal;
|
||||
cl_bool normalizedCoords;
|
||||
cl_addressing_mode addressingMode;
|
||||
cl_filter_mode filterMode;
|
||||
std::tie(normalizedCoords, addressingMode, filterMode) = GetParam();
|
||||
|
||||
expectedRetVal = addressingMode == CL_ADDRESS_CLAMP_TO_EDGE &&
|
||||
filterMode == CL_FILTER_NEAREST &&
|
||||
normalizedCoords == CL_FALSE;
|
||||
|
||||
MockSampler sampler(nullptr, normalizedCoords, addressingMode, filterMode);
|
||||
|
||||
retVal = sampler.isTransformable();
|
||||
EXPECT_EQ(expectedRetVal, retVal);
|
||||
}
|
||||
INSTANTIATE_TEST_SUITE_P(Sampler,
|
||||
TransformableSamplerTest,
|
||||
::testing::Combine(
|
||||
::testing::ValuesIn(normalizedCoordModes),
|
||||
::testing::ValuesIn(addressingModes),
|
||||
::testing::ValuesIn(filterModes)));
|
||||
|
||||
TEST(castToSamplerTest, GivenGenericPointerWhichHoldsSamplerObjectWhenCastToSamplerIsCalledThenCastWithSuccess) {
|
||||
cl_int retVal;
|
||||
auto context = std::make_unique<MockContext>();
|
||||
|
||||
Reference in New Issue
Block a user