mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Disable ftrE2ECompression flag on gen12lp on linux
Related-To: NEO-4415 Change-Id: Iddc0d49632a91ce40f625f5dc0beb30bec02be1e Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
fe0f259eaa
commit
fcd47e9631
@ -98,7 +98,6 @@ void TGLLP::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
|
|||||||
featureTable->ftrFbcBlitterTracking = true;
|
featureTable->ftrFbcBlitterTracking = true;
|
||||||
featureTable->ftrFbcCpuTracking = true;
|
featureTable->ftrFbcCpuTracking = true;
|
||||||
featureTable->ftrTileY = true;
|
featureTable->ftrTileY = true;
|
||||||
featureTable->ftrE2ECompression = true;
|
|
||||||
|
|
||||||
featureTable->ftrAstcHdr2D = true;
|
featureTable->ftrAstcHdr2D = true;
|
||||||
featureTable->ftrAstcLdr2D = true;
|
featureTable->ftrAstcLdr2D = true;
|
||||||
|
@ -12,8 +12,6 @@ namespace NEO {
|
|||||||
|
|
||||||
template <>
|
template <>
|
||||||
int HwInfoConfigHw<IGFX_TIGERLAKE_LP>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
int HwInfoConfigHw<IGFX_TIGERLAKE_LP>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
||||||
hwInfo->capabilityTable.ftrRenderCompressedImages = hwInfo->featureTable.ftrE2ECompression;
|
|
||||||
hwInfo->capabilityTable.ftrRenderCompressedBuffers = hwInfo->featureTable.ftrE2ECompression;
|
|
||||||
|
|
||||||
if (nullptr == osIface) {
|
if (nullptr == osIface) {
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -97,7 +97,6 @@ HWTEST_F(GetDevicesTest, givenGetDevicesWhenCsrIsSetToVariousTypesThenTheFunctio
|
|||||||
hwInfoFromTable.gtSystemInfo = {};
|
hwInfoFromTable.gtSystemInfo = {};
|
||||||
hardwareInfoSetup[hwInfoFromTable.platform.eProductFamily](&hwInfoFromTable, true, 0x0);
|
hardwareInfoSetup[hwInfoFromTable.platform.eProductFamily](&hwInfoFromTable, true, 0x0);
|
||||||
HwInfoConfig *hwConfig = HwInfoConfig::get(hwInfoFromTable.platform.eProductFamily);
|
HwInfoConfig *hwConfig = HwInfoConfig::get(hwInfoFromTable.platform.eProductFamily);
|
||||||
hwInfoFromTable.featureTable.ftrE2ECompression = 0;
|
|
||||||
hwConfig->configureHardwareCustom(&hwInfoFromTable, nullptr);
|
hwConfig->configureHardwareCustom(&hwInfoFromTable, nullptr);
|
||||||
EXPECT_EQ(0, memcmp(&hwInfoFromTable.platform, &hwInfo->platform, sizeof(PLATFORM)));
|
EXPECT_EQ(0, memcmp(&hwInfoFromTable.platform, &hwInfo->platform, sizeof(PLATFORM)));
|
||||||
EXPECT_EQ(0, memcmp(&hwInfoFromTable.capabilityTable, &hwInfo->capabilityTable, sizeof(RuntimeCapabilityTable)));
|
EXPECT_EQ(0, memcmp(&hwInfoFromTable.capabilityTable, &hwInfo->capabilityTable, sizeof(RuntimeCapabilityTable)));
|
||||||
@ -183,11 +182,9 @@ HWTEST_F(GetDevicesTest, givenGetDevicesAndUnknownProductFamilyWhenCsrIsSetToVal
|
|||||||
defaultHwInfo.gtSystemInfo = {};
|
defaultHwInfo.gtSystemInfo = {};
|
||||||
hardwareInfoSetup[defaultHwInfo.platform.eProductFamily](&defaultHwInfo, true, 0x0);
|
hardwareInfoSetup[defaultHwInfo.platform.eProductFamily](&defaultHwInfo, true, 0x0);
|
||||||
HwInfoConfig *hwConfig = HwInfoConfig::get(defaultHwInfo.platform.eProductFamily);
|
HwInfoConfig *hwConfig = HwInfoConfig::get(defaultHwInfo.platform.eProductFamily);
|
||||||
defaultHwInfo.featureTable.ftrE2ECompression = 0;
|
|
||||||
hwConfig->configureHardwareCustom(&defaultHwInfo, nullptr);
|
hwConfig->configureHardwareCustom(&defaultHwInfo, nullptr);
|
||||||
EXPECT_EQ(0, memcmp(&defaultHwInfo.platform, &hwInfo->platform, sizeof(PLATFORM)));
|
EXPECT_EQ(0, memcmp(&defaultHwInfo.platform, &hwInfo->platform, sizeof(PLATFORM)));
|
||||||
EXPECT_EQ(0, memcmp(&defaultHwInfo.capabilityTable, &hwInfo->capabilityTable, sizeof(RuntimeCapabilityTable)));
|
EXPECT_EQ(0, memcmp(&defaultHwInfo.capabilityTable, &hwInfo->capabilityTable, sizeof(RuntimeCapabilityTable)));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
set(IGDRCL_SRCS_tests_gen12lp_tgllp_linux
|
set(IGDRCL_SRCS_tests_gen12lp_tgllp_linux
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/test_hw_info_config_tgllp.cpp
|
|
||||||
)
|
)
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_gen12lp_tgllp_linux})
|
target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_gen12lp_tgllp_linux})
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2020 Intel Corporation
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "opencl/test/unit_test/os_interface/linux/hw_info_config_linux_tests.h"
|
|
||||||
|
|
||||||
using HwInfoConfigTestLinuxTGLLP = HwInfoConfigTestLinux;
|
|
||||||
|
|
||||||
TGLLPTEST_F(HwInfoConfigTestLinuxTGLLP, givenE2ECSetWhenConfiguringHwThenAdjustInternalImageFlag) {
|
|
||||||
FeatureTable &localFeatureTable = outHwInfo.featureTable;
|
|
||||||
|
|
||||||
auto hwInfoConfig = HwInfoConfig::get(productFamily);
|
|
||||||
|
|
||||||
localFeatureTable.ftrE2ECompression = true;
|
|
||||||
hwInfoConfig->configureHardwareCustom(&outHwInfo, nullptr);
|
|
||||||
EXPECT_TRUE(outHwInfo.capabilityTable.ftrRenderCompressedBuffers);
|
|
||||||
EXPECT_TRUE(outHwInfo.capabilityTable.ftrRenderCompressedImages);
|
|
||||||
|
|
||||||
localFeatureTable.ftrE2ECompression = false;
|
|
||||||
hwInfoConfig->configureHardwareCustom(&outHwInfo, nullptr);
|
|
||||||
EXPECT_FALSE(outHwInfo.capabilityTable.ftrRenderCompressedBuffers);
|
|
||||||
EXPECT_FALSE(outHwInfo.capabilityTable.ftrRenderCompressedImages);
|
|
||||||
}
|
|
@ -88,7 +88,6 @@ TGLLPTEST_F(TgllpHwInfo, givenBoolWhenCallTgllpHardwareInfoSetupThenFeatureTable
|
|||||||
EXPECT_EQ(setParamBool, featureTable.ftrGpGpuMidBatchPreempt);
|
EXPECT_EQ(setParamBool, featureTable.ftrGpGpuMidBatchPreempt);
|
||||||
EXPECT_EQ(setParamBool, featureTable.ftrGpGpuThreadGroupLevelPreempt);
|
EXPECT_EQ(setParamBool, featureTable.ftrGpGpuThreadGroupLevelPreempt);
|
||||||
EXPECT_EQ(setParamBool, featureTable.ftrPerCtxtPreemptionGranularityControl);
|
EXPECT_EQ(setParamBool, featureTable.ftrPerCtxtPreemptionGranularityControl);
|
||||||
EXPECT_EQ(setParamBool, featureTable.ftrE2ECompression);
|
|
||||||
|
|
||||||
EXPECT_EQ(setParamBool, workaroundTable.wa4kAlignUVOffsetNV12LinearSurface);
|
EXPECT_EQ(setParamBool, workaroundTable.wa4kAlignUVOffsetNV12LinearSurface);
|
||||||
EXPECT_EQ(setParamBool, workaroundTable.waEnablePreemptionGranularityControlByUMD);
|
EXPECT_EQ(setParamBool, workaroundTable.waEnablePreemptionGranularityControlByUMD);
|
||||||
|
@ -51,7 +51,6 @@ bool DeviceFactory::getDevicesForProductFamilyOverride(size_t &numDevices, Execu
|
|||||||
hardwareInfoSetup[hwInfoConst->platform.eProductFamily](hardwareInfo, true, hwInfoConfig);
|
hardwareInfoSetup[hwInfoConst->platform.eProductFamily](hardwareInfo, true, hwInfoConfig);
|
||||||
|
|
||||||
HwInfoConfig *hwConfig = HwInfoConfig::get(hardwareInfo->platform.eProductFamily);
|
HwInfoConfig *hwConfig = HwInfoConfig::get(hardwareInfo->platform.eProductFamily);
|
||||||
hardwareInfo->featureTable.ftrE2ECompression = 0;
|
|
||||||
hwConfig->configureHardwareCustom(hardwareInfo, nullptr);
|
hwConfig->configureHardwareCustom(hardwareInfo, nullptr);
|
||||||
|
|
||||||
auto csrType = DebugManager.flags.SetCommandStreamReceiver.get();
|
auto csrType = DebugManager.flags.SetCommandStreamReceiver.get();
|
||||||
|
Reference in New Issue
Block a user