Improve prebuilt SPIR-V binary storage
authorPyry Haulos <phaulos@google.com>
Thu, 12 Nov 2015 22:41:16 +0000 (14:41 -0800)
committerPyry Haulos <phaulos@google.com>
Wed, 25 Nov 2015 18:26:30 +0000 (10:26 -0800)
commitb10f41aed29c5cb350ef7091ff3cfa165426e9ba
tree32f75baf35688ce0fb53c9ec749ec3661da3fbd6
parent730f037369fd5fcdd41873dfff8bd831b0a97fd0
Improve prebuilt SPIR-V binary storage

This change improves storage usage of pre-built SPIR-V binary registry
by eliminating duplicate binaries. With the current test set the size of
binary registry drops from almost 400MiB down to 25MiB.

A binary index file (trie) is used to map from binary identifiers to
actual binary files.

Change-Id: I09b015c00bd30df00e7cf96a39549ddbb66ece61
external/vulkancts/framework/vulkan/vkBinaryRegistry.cpp
external/vulkancts/framework/vulkan/vkBinaryRegistry.hpp
external/vulkancts/modules/vulkan/vktBuildPrograms.cpp
external/vulkancts/modules/vulkan/vktTestPackage.cpp