Fix validation errors in buffer memory requirement tests
authorIlkka Saarelainen <ilkka.saarelainen@siru.fi>
Wed, 12 Jan 2022 09:49:26 +0000 (11:49 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Sun, 23 Jan 2022 06:10:15 +0000 (06:10 +0000)
commite73ec46ee23f97683d637a2ad804ec14abbd3616
tree5c726310403a3438583115a496a9a30338f03820
parentdae471766c889dbd5c0e9cba61cddc7c49ef48b1
Fix validation errors in buffer memory requirement tests

Some of the buffer memory requirement tests were causing a lot
of validation errors related to invalid videoCodecOperation value.
The tests were using VK_VIDEO_CODEC_OPERATION_INVALID_BIT_KHR while
creating the buffers and that is not allowed.
This CL changes the tests to include one encode and one decode video
profile in VkBufferCreateInfo.pNext chain when the buffer usage flags
contain any decode or encode bits.

Components: Vulkan

Affects:

dEQP-VK.api.buffer_memory_requirements.*video_usage_bits

VK-GL-CTS Issue: 3423

Change-Id: I40f981db0a53b622c5abfb58f58ce3b36772b175
external/vulkancts/modules/vulkan/api/vktApiBufferMemoryRequirementsTests.cpp