mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix: program 8 maxBVHLevels as 0 - special case
Related-To: NEO-14423 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3dc32cec88
commit
d247358fdf
@@ -263,6 +263,15 @@ TEST_F(DeviceTest, whenAllocateRTDispatchGlobalsIsCalledThenStackSizePerRayIsSet
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, given8MaxBvhLevelsWhenAllocateRTDispatchGlobalsIsCalledThenMaxBvhLevelsIsSetCorrectly) {
|
||||
uint32_t maxBvhLevels = 8u;
|
||||
pDevice->initializeRayTracing(maxBvhLevels);
|
||||
pDevice->allocateRTDispatchGlobals(maxBvhLevels);
|
||||
EXPECT_NE(nullptr, pDevice->getRTDispatchGlobals(maxBvhLevels));
|
||||
RTDispatchGlobals dispatchGlobals = *reinterpret_cast<struct RTDispatchGlobals *>(pDevice->getRTDispatchGlobals(maxBvhLevels)->rtDispatchGlobalsArray->getUnderlyingBuffer());
|
||||
EXPECT_EQ(0u, static_cast<uint32_t>(dispatchGlobals.maxBVHLevels));
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, givenNot48bResourceForRtWhenAllocateRTDispatchGlobalsIsCalledThenRTDispatchGlobalsIsAllocatedWithout48bResourceFlag) {
|
||||
auto mockProductHelper = std::make_unique<MockProductHelper>();
|
||||
mockProductHelper->is48bResourceNeededForRayTracingResult = false;
|
||||
|
||||
Reference in New Issue
Block a user