Skip to content

Commit f261647

Browse files
test: zero-initialize states in test's body
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
1 parent 57eb195 commit f261647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/test/unit_test/encoders/test_encode_dispatch_kernel_xehp_and_later.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, CommandEncodeStatesTest, givenForceBtpPrefetchModeD
345345
uint32_t dims[] = {2, 1, 1};
346346
uint32_t numBindingTable = 1;
347347
uint32_t numSamplers = 1;
348-
SAMPLER_STATE samplerState;
349-
BINDING_TABLE_STATE bindingTable;
348+
SAMPLER_STATE samplerState{};
349+
BINDING_TABLE_STATE bindingTable{};
350350
std::unique_ptr<MockDispatchKernelEncoder> dispatchInterface(new MockDispatchKernelEncoder());
351351

352352
dispatchInterface->kernelDescriptor.payloadMappings.bindingTable.numEntries = numBindingTable;

0 commit comments

Comments
 (0)