Add HardwareInfo argument to setupHardwareCapabilities method

Change-Id: Iaf75459402d4f1ec3048646d646b130dcc710b2f
This commit is contained in:
Hoppe, Mateusz
2018-08-23 17:42:35 +02:00
committed by sys_ocldev
parent b59e3aec14
commit 83537d55bf
11 changed files with 13 additions and 13 deletions

View File

@@ -23,10 +23,10 @@
#include "runtime/helpers/hw_info.h"
#include "unit_tests/helpers/hw_helper_tests.h"
void testDefaultImplementationOfSetupHardwareCapabilities(HwHelper &hwHelper) {
void testDefaultImplementationOfSetupHardwareCapabilities(HwHelper &hwHelper, const HardwareInfo &hwInfo) {
HardwareCapabilities hwCaps = {0};
hwHelper.setupHardwareCapabilities(&hwCaps);
hwHelper.setupHardwareCapabilities(&hwCaps, hwInfo);
EXPECT_EQ(16384u, hwCaps.image3DMaxHeight);
EXPECT_EQ(16384u, hwCaps.image3DMaxWidth);

View File

@@ -40,4 +40,4 @@ class HwHelperTest : public testing::Test {
HardwareInfo hwInfo;
};
void testDefaultImplementationOfSetupHardwareCapabilities(HwHelper &hwHelper);
void testDefaultImplementationOfSetupHardwareCapabilities(HwHelper &hwHelper, const HardwareInfo &hwInfo);