Fix ASTC issues in pipeline image, image_view, and sampler tests
authorPyry Haulos <phaulos@google.com>
Thu, 21 Jan 2016 02:03:22 +0000 (18:03 -0800)
committerPyry Haulos <phaulos@google.com>
Thu, 21 Jan 2016 17:47:47 +0000 (09:47 -0800)
commit3a40c1645672ac36c31e4275b9b00ec3effa02c8
tree6bf44a7b82271734037fbee8e13261cda8fc226e
parentefd631f50d2f4c5f1b70a64f7e04103dc7f39407
Fix ASTC issues in pipeline image, image_view, and sampler tests

 * Use only valid ASTC blocks as result comparison doesn't currently
handle invalid blocks correctly.

 * Avoid normalizing non-sRGB ASTC blocks. Normalizing them based on
uncompressed format (F16) leads to complete lack of coverage.

Fixes #203

Change-Id: Ib5e7bedd07932ec1baa5cbd96cb66b357689bb75
external/vulkancts/modules/vulkan/pipeline/vktPipelineImageSamplingInstance.cpp
external/vulkancts/modules/vulkan/pipeline/vktPipelineImageTests.cpp
external/vulkancts/modules/vulkan/pipeline/vktPipelineImageUtil.cpp
external/vulkancts/modules/vulkan/pipeline/vktPipelineImageUtil.hpp
external/vulkancts/modules/vulkan/pipeline/vktPipelineImageViewTests.cpp
external/vulkancts/modules/vulkan/pipeline/vktPipelineReferenceRenderer.hpp
external/vulkancts/modules/vulkan/pipeline/vktPipelineSamplerTests.cpp