Enable Blitter for read/write Buffer operations

Change-Id: Idd3dc843ae95818ddd0ee558f9d334250917d92e
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3020
This commit is contained in:
Dunajski, Bartosz
2019-07-10 14:47:13 +02:00
committed by sys_ocldev
parent 2403f4cef7
commit 2daab300b2
3 changed files with 5 additions and 2 deletions

View File

@ -102,7 +102,7 @@ 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, EnablePassInlineData, false, "Enable passing of inline data")
DECLARE_DEBUG_VARIABLE(bool, EnableFormatQuery, false, "Enable sharing format querying") 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, AllowOpenFdOperations, false, "When enabled driver is allowed to call DRM_IOCTL_PRIME_HANDLE_TO_FD.")
DECLARE_DEBUG_VARIABLE(bool, EnableBlitterOperationsForReadWriteBuffers, false, "Use Blitter engine for Read/Write Buffers operations") DECLARE_DEBUG_VARIABLE(bool, EnableBlitterOperationsForReadWriteBuffers, true, "Use Blitter engine for Read/Write Buffers operations")
DECLARE_DEBUG_VARIABLE(bool, EnableFreeMemory, false, "Enable freeMemory in memory manager") DECLARE_DEBUG_VARIABLE(bool, EnableFreeMemory, false, "Enable freeMemory in memory manager")
DECLARE_DEBUG_VARIABLE(int32_t, EnableCacheFlushAfterWalker, 0, "-1: platform behavior, 0: disabled, 1: enabled. Adds dedicated cache flush command after WALKER command when surfaces used by kernel require to flush the cache") DECLARE_DEBUG_VARIABLE(int32_t, EnableCacheFlushAfterWalker, 0, "-1: platform behavior, 0: disabled, 1: enabled. Adds dedicated cache flush command after WALKER command when surfaces used by kernel require to flush the cache")
DECLARE_DEBUG_VARIABLE(int32_t, EnableLocalMemory, -1, "-1: default behavior, 0: disabled, 1: enabled, Allows allocating graphics memory in Local Memory") DECLARE_DEBUG_VARIABLE(int32_t, EnableLocalMemory, -1, "-1: default behavior, 0: disabled, 1: enabled, Allows allocating graphics memory in Local Memory")

View File

@ -10,6 +10,7 @@
#include "runtime/os_interface/windows/wddm_device_command_stream.h" #include "runtime/os_interface/windows/wddm_device_command_stream.h"
#include "test.h" #include "test.h"
#include "unit_tests/fixtures/buffer_fixture.h" #include "unit_tests/fixtures/buffer_fixture.h"
#include "unit_tests/helpers/debug_manager_state_restore.h"
#include "unit_tests/helpers/execution_environment_helper.h" #include "unit_tests/helpers/execution_environment_helper.h"
#include "unit_tests/helpers/hw_parse.h" #include "unit_tests/helpers/hw_parse.h"
#include "unit_tests/mocks/mock_command_queue.h" #include "unit_tests/mocks/mock_command_queue.h"
@ -25,6 +26,7 @@ struct EnqueueBufferWindowsTest : public HardwareParse,
} }
void SetUp() override { void SetUp() override {
DebugManager.flags.EnableBlitterOperationsForReadWriteBuffers.set(false);
executionEnvironment = getExecutionEnvironmentImpl(hwInfo); executionEnvironment = getExecutionEnvironmentImpl(hwInfo);
} }
@ -61,6 +63,7 @@ struct EnqueueBufferWindowsTest : public HardwareParse,
} }
protected: protected:
DebugManagerStateRestore restore;
HardwareInfo hardwareInfo; HardwareInfo hardwareInfo;
HardwareInfo *hwInfo = nullptr; HardwareInfo *hwInfo = nullptr;
ExecutionEnvironment *executionEnvironment; ExecutionEnvironment *executionEnvironment;

View File

@ -111,6 +111,6 @@ DisableDcFlushInEpilogue = 0
OverrideInvalidEngineWithDefault = 0 OverrideInvalidEngineWithDefault = 0
EnableFormatQuery = 0 EnableFormatQuery = 0
AllowOpenFdOperations = 0 AllowOpenFdOperations = 0
EnableBlitterOperationsForReadWriteBuffers = 0 EnableBlitterOperationsForReadWriteBuffers = 1
DisableAuxTranslation = 0 DisableAuxTranslation = 0
EnableFreeMemory = 0 EnableFreeMemory = 0