Enable "cl_intel_sharing_format_query" extension

Resolves: NEO-612

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-05-07 18:39:49 +02:00
committed by Compute-Runtime-Automation
parent 73616b173c
commit 60772197a4
4 changed files with 12 additions and 4 deletions

View File

@@ -169,8 +169,8 @@ TEST(SharingFactoryTests, givenFactoryWithSharingWhenAskedForExtensionThenString
stateRestore.registerSharing<TestedSharingBuilderFactory>(SharingType::CLGL_SHARING);
auto ext = stateRestore.getExtensions(nullptr);
EXPECT_EQ(TestedSharingBuilderFactory::extension.length(), ext.length());
EXPECT_STREQ(TestedSharingBuilderFactory::extension.c_str(), ext.c_str());
EXPECT_LE(TestedSharingBuilderFactory::extension.length(), ext.length());
EXPECT_THAT(ext.c_str(), ::testing::HasSubstr(TestedSharingBuilderFactory::extension.c_str()));
}
TEST(SharingFactoryTests, givenFactoryWithSharingWhenDispatchFillRequestedThenMethodsAreInvoked) {

View File

@@ -43,4 +43,12 @@ TEST_F(clGetExtensionFunctionAddressTests, givenEnabledFormatQueryWhenGettingFun
auto retVal = clGetExtensionFunctionAddress("clGetSupportedVA_APIMediaSurfaceFormatsINTEL");
EXPECT_EQ(retVal, reinterpret_cast<void *>(clGetSupportedVA_APIMediaSurfaceFormatsINTEL));
}
TEST_F(clGetExtensionFunctionAddressTests, givenDisabledFormatQueryWhenGettingFuncionAddressThenNullptrIsReturned) {
DebugManagerStateRestore restorer;
DebugManager.flags.EnableFormatQuery.set(false);
auto retVal = clGetExtensionFunctionAddress("clGetSupportedVA_APIMediaSurfaceFormatsINTEL");
EXPECT_EQ(retVal, nullptr);
}
} // namespace ULT

View File

@@ -125,7 +125,7 @@ EnableComputeWorkSizeSquared = 0
EnableVaLibCalls = -1
EnableExtendedVaFormats = 0
AddClGlSharing = 0
EnableFormatQuery = 0
EnableFormatQuery = 1
EnableFreeMemory = 0
ForceSamplerLowFilteringPrecision = 0
MakeAllBuffersResident = 0