mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
fix: ocloc - add bindless mode options if bindless is enabled
If release helper is not present, do not add bindless mode options. Related-To: NEO-7063 Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
570039e5e5
commit
78bd3da078
@@ -201,6 +201,25 @@ HWTEST2_F(CompilerProductHelperFixture, GivenReleaseHelperThenSplitMatrixMultipl
|
||||
EXPECT_FALSE(compilerProductHelper.isSplitMatrixMultiplyAccumulateSupported(releaseHelper));
|
||||
}
|
||||
|
||||
HWTEST2_F(CompilerProductHelperFixture, GivenReleaseHelperThenBindlessAddressingIsSupportedBasedOnReleaseHelper, IsNotXeHpcCore) {
|
||||
auto &compilerProductHelper = pDevice->getCompilerProductHelper();
|
||||
auto releaseHelper = pDevice->getReleaseHelper();
|
||||
|
||||
if (releaseHelper) {
|
||||
|
||||
EXPECT_EQ(releaseHelper->isBindlessAddressingDisabled(), compilerProductHelper.isBindlessAddressingDisabled(releaseHelper));
|
||||
} else {
|
||||
EXPECT_TRUE(compilerProductHelper.isBindlessAddressingDisabled(releaseHelper));
|
||||
}
|
||||
}
|
||||
|
||||
HWTEST2_F(CompilerProductHelperFixture, GivenReleaseHelperThenBindlessAddressingIsNotSupported, IsXeHpcCore) {
|
||||
auto &compilerProductHelper = pDevice->getCompilerProductHelper();
|
||||
auto releaseHelper = pDevice->getReleaseHelper();
|
||||
|
||||
EXPECT_TRUE(compilerProductHelper.isBindlessAddressingDisabled(releaseHelper));
|
||||
}
|
||||
|
||||
HWTEST2_F(CompilerProductHelperFixture, givenAotConfigWhenSetHwInfoRevisionIdThenCorrectValueIsSet, IsAtMostDg2) {
|
||||
auto &compilerProductHelper = pDevice->getCompilerProductHelper();
|
||||
auto hwInfo = *defaultHwInfo;
|
||||
|
||||
Reference in New Issue
Block a user