mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Enable "cl_intel_sharing_format_query" extension
Resolves: NEO-612 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
73616b173c
commit
60772197a4
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -125,7 +125,7 @@ EnableComputeWorkSizeSquared = 0
|
||||
EnableVaLibCalls = -1
|
||||
EnableExtendedVaFormats = 0
|
||||
AddClGlSharing = 0
|
||||
EnableFormatQuery = 0
|
||||
EnableFormatQuery = 1
|
||||
EnableFreeMemory = 0
|
||||
ForceSamplerLowFilteringPrecision = 0
|
||||
MakeAllBuffersResident = 0
|
||||
|
||||
Reference in New Issue
Block a user