tests: Fix Unexpected error in VkLayerTest.InvalidDynamicOffsetCases
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index 19cad57..6c77b74 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -470,7 +470,7 @@
rs_state.lineWidth = 1.0f;
pipelineobj.SetRasterization(&rs_state);
}
- // Viewport and scissors must stay in synch or other errors will occur than
+ // Viewport and scissors must stay in sync or other errors will occur than
// the ones we want
if (failMask & BsoFailViewport) {
pipelineobj.MakeDynamic(VK_DYNAMIC_STATE_VIEWPORT);
@@ -6060,6 +6060,11 @@
pipe.AddColorAttachment();
pipe.CreateVKPipeline(pipeline_layout, renderPass());
+ VkViewport viewport = {0, 0, 16, 16, 0, 1};
+ vkCmdSetViewport(m_commandBuffer->handle(), 0, 1, &viewport);
+ VkRect2D scissor = {{0, 0}, {16, 16}};
+ vkCmdSetScissor(m_commandBuffer->handle(), 0, 1, &scissor);
+
vkCmdBindPipeline(m_commandBuffer->GetBufferHandle(), VK_PIPELINE_BIND_POINT_GRAPHICS, pipe.handle());
// This update should succeed, but offset size of 512 will overstep buffer
// /w range 1024 & size 1024