tests: Fix VkLayerTest.CreateBufferViewNoMemoryBoundToBuffer
authorChris Forbes <chrisforbes@google.com>
Tue, 13 Sep 2016 06:13:58 +0000 (18:13 +1200)
committerChris Forbes <chrisforbes@google.com>
Wed, 14 Sep 2016 21:18:57 +0000 (09:18 +1200)
This was using the wrong usage bit.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
tests/layer_validation_tests.cpp

index 13d9491..f1a04d6 100644 (file)
@@ -7752,7 +7752,7 @@ TEST_F(VkLayerTest, CreateBufferViewNoMemoryBoundToBuffer) {
     // a buffer view.
     VkBufferCreateInfo buff_ci = {};
     buff_ci.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
-    buff_ci.usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT;
+    buff_ci.usage = VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT;
     buff_ci.size = 256;
     buff_ci.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
     VkBuffer buffer;