Revert "feat: enable checking indirect access"

This reverts commit 392e6ab0a7.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2023-04-12 04:04:36 +02:00
committed by Compute-Runtime-Automation
parent 41ad05eb52
commit a10c4f7920
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,6 @@
#include "shared/source/helpers/hw_mapper.h"
#include "shared/source/helpers/local_memory_access_modes.h"
#include "shared/source/helpers/preamble.h"
#include "shared/source/kernel/kernel_descriptor.h"
#include "shared/source/memory_manager/graphics_allocation.h"
#include "shared/source/memory_manager/memory_manager.h"
#include "shared/source/os_interface/product_helper.h"
@@ -59,7 +58,8 @@ bool ProductHelperHw<gfxProduct>::isTlbFlushRequired() const {
template <PRODUCT_FAMILY gfxProduct>
bool ProductHelperHw<gfxProduct>::isDetectIndirectAccessInKernelSupported(const KernelDescriptor &kernelDescriptor) const {
return DeviceBinaryFormat::Zebin == kernelDescriptor.kernelAttributes.binaryFormat;
constexpr bool enabled = false;
return enabled;
}
template <PRODUCT_FAMILY gfxProduct>

View File

@@ -707,5 +707,5 @@ HWTEST_F(ProductHelperTest, givenProductHelperAndKernelBinaryFormatsWhenChecking
EXPECT_FALSE(productHelper->isDetectIndirectAccessInKernelSupported(kernelDescriptor));
kernelDescriptor.kernelAttributes.binaryFormat = DeviceBinaryFormat::Zebin;
EXPECT_TRUE(productHelper->isDetectIndirectAccessInKernelSupported(kernelDescriptor));
EXPECT_FALSE(productHelper->isDetectIndirectAccessInKernelSupported(kernelDescriptor));
}