ShaderRenderCase: add anonymous namespace and fix error reporting in the TextureBinding
authorPeter Gal <pgal.u-szeged@partner.samsung.com>
Fri, 30 Oct 2015 12:21:03 +0000 (13:21 +0100)
committerPeter Gal <pgal.u-szeged@partner.samsung.com>
Thu, 12 Nov 2015 18:54:16 +0000 (19:54 +0100)
external/vulkancts/modules/vulkan/shaderrendercase/vktShaderRenderCase.cpp

index d7a8767..64b6c0f 100644 (file)
@@ -64,6 +64,9 @@ namespace shaderrendercase
 
 using namespace vk;
 
+namespace
+{
+
 static const int               s_gridSize                      = 2;
 static const int               s_maxRenderWidth        = 128;
 static const int               s_maxRenderHeight       = 128;
@@ -115,6 +118,8 @@ static VkImageMemoryBarrier createImageMemoryBarrier (const VkImage&                image,
        return imageMemoryBarrier;
 }
 
+} // anonymous
+
 // QuadGrid.
 
 class QuadGrid
@@ -270,7 +275,7 @@ TextureBinding::TextureBinding (const tcu::Archive& archive,
        {
                case TYPE_2D: m_binding.tex2D = loadTexture2D(archive, filename).release(); break;
                default:
-                       TCU_FAIL("Unsupported texture type");
+                       DE_FATAL("Unsupported texture type");
        }
 }