Commit 6c352b41 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Fix resize of output array for unpacker test

parent 2383cb26
......@@ -224,6 +224,7 @@ TEST_F(UnpackerTester, 12_bit_unpack_test)
}
Unpacker::InputType gpu_input = host_input;
Unpacker::OutputType gpu_output;
gpu_output.resize(host_input.size() * sizeof(host_input[0]) * 8 / 12);
OutputType host_output;
Unpacker unpacker(_stream);
unpacker.unpack<12>(gpu_input, gpu_output);
......@@ -243,6 +244,7 @@ TEST_F(UnpackerTester, 8_bit_unpack_test)
}
Unpacker::InputType gpu_input = host_input;
Unpacker::OutputType gpu_output;
gpu_output.resize(host_input.size() * sizeof(host_input[0]) * 8 / 8);
OutputType host_output;
Unpacker unpacker(_stream);
unpacker.unpack<8>(gpu_input, gpu_output);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment