Skip to content

Commit

Permalink
EncodeTests: use the correct align for bitStreamBufferOffset
Browse files Browse the repository at this point in the history
When aligning the bitstreamBufferOffset,
minBitstreamBufferOffsetAlignment from the video caps should
be used instead of minBitstreamBufferSizeAlignment.

Fix AMD support on Windows as the 2 alignments have different
values.

Components: Vulkan

VK-GL-CTS issue: 5040

Affected tests:
dEQP-VK.video.encode.*

Change-Id: I58a4e91b6e7710e27a9a9653d32694f79146e144
  • Loading branch information
dabrain34 authored and lordalcol committed May 9, 2024
1 parent 8e2c668 commit c9c995a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@ tcu::TestStatus VideoEncodeTestInstance::iterate(void)
fillBuffer(videoDeviceDriver, videoDevice, encodeBufferAlloc, headersData[0].data(), headersData[0].size(), bitstreamBufferOffset);

// Move offset to accommodate header data
bitstreamBufferOffset = deAlign64(bitstreamBufferOffset + headersData[0].size(), videoCapabilities->minBitstreamBufferSizeAlignment);
bitstreamBufferOffset = deAlign64(bitstreamBufferOffset + headersData[0].size(), videoCapabilities->minBitstreamBufferOffsetAlignment);

const Unique<VkCommandPool> encodeCmdPool(makeCommandPool(videoDeviceDriver, videoDevice, encodeQueueFamilyIndex));
const Unique<VkCommandBuffer> firstEncodeCmdBuffer(allocateCommandBuffer(videoDeviceDriver, videoDevice, *encodeCmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY));
Expand Down

0 comments on commit c9c995a

Please sign in to comment.