mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +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
|
||||
|
||||
@@ -185,7 +185,7 @@ DECLARE_DEBUG_VARIABLE(bool, EnableMultiRootDeviceContexts, false, "Enables supp
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableComputeWorkSizeSquared, false, "Enables algorithm to compute the most squared work group as possible")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableExtendedVaFormats, false, "Enable more formats in cl-va sharing")
|
||||
DECLARE_DEBUG_VARIABLE(bool, AddClGlSharing, false, "Add cl-gl extension")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableFormatQuery, false, "Enable sharing format querying")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableFormatQuery, true, "Enable sharing format querying")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableFreeMemory, false, "Enable freeMemory in memory manager")
|
||||
DECLARE_DEBUG_VARIABLE(bool, ForceSamplerLowFilteringPrecision, false, "Force Low Filtering Precision Sampler mode")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EngineInstancedSubDevices, false, "Create subdevices assigned to specific engine")
|
||||
|
||||
Reference in New Issue
Block a user