1
1
/*
2
- * Copyright (C) 2022-2024 Intel Corporation
2
+ * Copyright (C) 2022-2025 Intel Corporation
3
3
*
4
4
* SPDX-License-Identifier: MIT
5
5
*
@@ -485,6 +485,7 @@ HWTEST_F(KernelImpSuggestMaxCooperativeGroupCountTests, GivenUsedSlmSizeWhenCalc
485
485
486
486
using KernelTest = Test<DeviceFixture>;
487
487
HWTEST2_F (KernelTest, GivenInlineSamplersWhenSettingInlineSamplerThenDshIsPatched, SupportsSampler) {
488
+ using SamplerState = typename FamilyType::SAMPLER_STATE;
488
489
WhiteBox<::L0::KernelImmutableData> kernelImmData = {};
489
490
NEO::KernelDescriptor descriptor;
490
491
kernelImmData.kernelDescriptor = &descriptor;
@@ -498,12 +499,11 @@ HWTEST2_F(KernelTest, GivenInlineSamplersWhenSettingInlineSamplerThenDshIsPatche
498
499
Mock<KernelImp> kernel;
499
500
kernel.module = &module ;
500
501
kernel.kernelImmData = &kernelImmData;
501
- kernel.dynamicStateHeapData .reset (new uint8_t [64 + 16 ]);
502
- kernel.dynamicStateHeapDataSize = 64 + 16 ;
502
+ kernel.dynamicStateHeapData .reset (new uint8_t [64 + sizeof (SamplerState) ]);
503
+ kernel.dynamicStateHeapDataSize = 64 + sizeof (SamplerState) ;
503
504
504
505
kernel.setInlineSamplers ();
505
506
506
- using SamplerState = typename FamilyType::SAMPLER_STATE;
507
507
auto samplerState = reinterpret_cast <const SamplerState *>(kernel.dynamicStateHeapData .get () + 64U );
508
508
EXPECT_TRUE (samplerState->getNonNormalizedCoordinateEnable ());
509
509
EXPECT_EQ (SamplerState::TEXTURE_COORDINATE_MODE_WRAP, samplerState->getTcxAddressControlMode ());
0 commit comments