Refactor inline reg key.
Change-Id: Ib04b8d4236bbc2862dd152b7350760c2cf20e3f0 Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
parent
2f9bfc7748
commit
68df8be148
|
@ -418,7 +418,11 @@ bool HardwareCommandsHelper<GfxFamily>::doBindingTablePrefetch() {
|
|||
|
||||
template <typename GfxFamily>
|
||||
bool HardwareCommandsHelper<GfxFamily>::inlineDataProgrammingRequired(const Kernel &kernel) {
|
||||
if (DebugManager.flags.EnablePassInlineData.get()) {
|
||||
auto checkKernelForInlineData = false;
|
||||
if (DebugManager.flags.EnablePassInlineData.get() != -1) {
|
||||
checkKernelForInlineData = !!DebugManager.flags.EnablePassInlineData.get();
|
||||
}
|
||||
if (checkKernelForInlineData) {
|
||||
return kernel.getKernelInfo().patchInfo.threadPayload->PassInlineData;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -101,7 +101,6 @@ DECLARE_DEBUG_VARIABLE(bool, EnableComputeWorkSizeSquared, false, "Enables algor
|
|||
DECLARE_DEBUG_VARIABLE(bool, EnableVaLibCalls, true, "Enable cl-va sharing lib calls")
|
||||
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, EnablePassInlineData, false, "Enable passing of inline data")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableFormatQuery, false, "Enable sharing format querying")
|
||||
DECLARE_DEBUG_VARIABLE(bool, AllowOpenFdOperations, false, "When enabled driver is allowed to call DRM_IOCTL_PRIME_HANDLE_TO_FD.")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableFreeMemory, false, "Enable freeMemory in memory manager")
|
||||
|
@ -128,6 +127,7 @@ DECLARE_DEBUG_VARIABLE(int32_t, OverrideDefaultFP64Settings, -1, "-1: dont overr
|
|||
DECLARE_DEBUG_VARIABLE(int32_t, RenderCompressedImagesEnabled, -1, "-1: default, 0: disabled, 1: enabled")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, RenderCompressedBuffersEnabled, -1, "-1: default, 0: disabled, 1: enabled")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, EnableSharedSystemUsmSupport, -1, "-1: default, 0: shared system memory disabled, 1: shared system memory enabled")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, EnablePassInlineData, -1, "-1: default, 0: Do not allow to pass inline data 1: Enable passing of inline data")
|
||||
|
||||
/*DRIVER TOGGLES*/
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, ForceOCLVersion, 0, "Force specific OpenCL API version")
|
||||
|
|
|
@ -1174,7 +1174,7 @@ INSTANTIATE_TEST_CASE_P(ParentKernelCommandsFromBinaryTest,
|
|||
|
||||
HWTEST_F(HardwareCommandsTest, givenEnabledPassInlineDataWhenKernelAllowsInlineThenReturnTrue) {
|
||||
DebugManagerStateRestore restore;
|
||||
DebugManager.flags.EnablePassInlineData.set(true);
|
||||
DebugManager.flags.EnablePassInlineData.set(1u);
|
||||
|
||||
uint32_t crossThreadData[8];
|
||||
|
||||
|
@ -1186,7 +1186,7 @@ HWTEST_F(HardwareCommandsTest, givenEnabledPassInlineDataWhenKernelAllowsInlineT
|
|||
|
||||
HWTEST_F(HardwareCommandsTest, givenEnabledPassInlineDataWhenKernelDisallowsInlineThenReturnFalse) {
|
||||
DebugManagerStateRestore restore;
|
||||
DebugManager.flags.EnablePassInlineData.set(true);
|
||||
DebugManager.flags.EnablePassInlineData.set(1u);
|
||||
|
||||
uint32_t crossThreadData[8];
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ ReturnRawGpuTimestamps = 0
|
|||
DoNotRegisterTrimCallback = 0
|
||||
OverrideGdiPath = unk
|
||||
AddClGlSharing = 0
|
||||
EnablePassInlineData = 0
|
||||
EnablePassInlineData = -1
|
||||
LimitAmountOfReturnedDevices = 0
|
||||
EnableLocalMemory = -1
|
||||
UseAubStream = 1
|
||||
|
|
Loading…
Reference in New Issue