Add export/import drm modifier test
authorDaniele Castagna <dcastagna@google.com>
Mon, 15 Jun 2020 17:00:43 +0000 (13:00 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 17 Jul 2020 08:49:16 +0000 (04:49 -0400)
commit59f311a52ab97d812f2f38aeae1fb89d427f132c
tree684c8582270df788c989132ed6f8a56b6443b514
parent280d7a815a9131891b382750d37ad432f2959d40
Add export/import drm modifier test

This CL adds a test to export/import images using modifiers.

To simulate exporting from a client and importing in another one the test is organaized as following:
- an image is upload to srcImage (no modifiers)
- srcImage is blitted to dstImage (with modifiers)
- the memory underlaying dstImage is exported
- the memory is reimported and an image importedSrcImage (with modifiers) is bound to it
- importedSrcImage is blit to outImage

At the end the test verifies that the conetnts of srcImage and outImage are the same.

These tests were run against mesa/intel with
https://gitlab.freedesktop.org/chadversary/mesa/-/tree/anv-drm-format-mod applied on top.

Components: Vulkan

Change-Id: I01c20397c1b49eb355efda3a6e199572cb56652b
Affects: dEQP-VK.drm_format_modifiers.export_import.*
android/cts/master/vk-master-2020-03-01.txt
android/cts/master/vk-master.txt
external/vulkancts/modules/vulkan/modifiers/vktModifiersTests.cpp
external/vulkancts/mustpass/master/vk-default.txt