layer_validation_tests : Fix invalid lineWidth test of 0.0.
Some drivers were returning 0.0 as a valid minimum extent, so
that the test was passing when it should have failed. Instead,
use a line width of -1.0 which should fail on all drivers.
Change-Id: I16549f2cdca81cd003ee9d383fb16db51a135db9
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index 769153c..25c6946 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -4400,7 +4400,7 @@
VkResult err;
m_errorMonitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT,
- "Attempt to set lineWidth to 0");
+ "Attempt to set lineWidth to -1");
ASSERT_NO_FATAL_FAILURE(InitState());
ASSERT_NO_FATAL_FAILURE(InitRenderTarget());
@@ -4500,8 +4500,8 @@
rs_ci.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
rs_ci.pNext = nullptr;
- // Check too low (line width of 0.0f).
- rs_ci.lineWidth = 0.0f;
+ // Check too low (line width of -1.0f).
+ rs_ci.lineWidth = -1.0f;
VkPipelineColorBlendAttachmentState att = {};
att.blendEnable = VK_FALSE;
@@ -4556,7 +4556,7 @@
m_errorMonitor->VerifyFound();
m_errorMonitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT,
- "Attempt to set lineWidth to 0");
+ "Attempt to set lineWidth to -1");
dyn_state_ci.dynamicStateCount = 3;
@@ -4572,7 +4572,7 @@
VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline);
// Check too low with dynamic setting.
- vkCmdSetLineWidth(m_commandBuffer->GetBufferHandle(), 0.0f);
+ vkCmdSetLineWidth(m_commandBuffer->GetBufferHandle(), -1.0f);
m_errorMonitor->VerifyFound();
m_errorMonitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT,