mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Use igc interface to get max param size
IGC will be queried for max parameter size at the end of initializing device caps. Related-To: NEO-4851 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3c6f5cd757
commit
300a971af3
@@ -78,3 +78,11 @@ TEST_F(DeviceTest, whenGetRTDispatchGlobalsIsCalledWithZeroSizeAndMockAllocatorT
|
||||
pDevice->initializeRayTracing(5);
|
||||
EXPECT_NE(nullptr, pDevice->getRTDispatchGlobals(0));
|
||||
}
|
||||
|
||||
using DeviceGetCapsTest = Test<DeviceFixture>;
|
||||
|
||||
TEST_F(DeviceGetCapsTest, givenNonZeroMaxParameterSizeFromIGCwhenDeviceIsCreatedThenMaxParameterSizeIsSetCorrectly) {
|
||||
pDevice->maxParameterSizeFromIGC = 1u;
|
||||
pDevice->initializeCaps();
|
||||
EXPECT_EQ(pDevice->getDeviceInfo().maxParameterSize, 1u);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user