KhronosGroup / Vulkan-LoaderAndValidationLayers

**Deprecated repository** for Vulkan loader and validation layers
Apache License 2.0
414 stars 172 forks source link

tests: Workaround crash in PSOPolygonModeValid #2611

Closed karl-lunarg closed 6 years ago

karl-lunarg commented 6 years ago

This test has been crashing in some versions of Linux nvidia drivers. Crash occurs in vkCreateGraphicsPipelines.

works: 375.27.14 fails: 387.42.03 fails: 390.48 (edit: Added this additional result)

This test sets rasterizerDiscardEnable to true as part of creating a graphics pipeline. Setting it to false allows the test to pass. The test also passes if no fragment shader is provided for the pipeline.

Several other tests set rasterizerDiscardEnable to true, but they do not crash since they are negative tests and the call to vkCreateGraphicsPipelines probably doesn't make it to the driver.

There's one other positive test that sets rasterizerDiscardEnable to true, but it doesn't supply a fragment shader.

Since whether a crash occurs or not depends on the driver version and because turning on discard isn't part of the test's goals, it seems best to just turn off discard.

I've submitted a bug report to the vendor.

Change-Id: If1b3ee2db88ee5701bb731b96dcaa45d6bdcb287

chrisforbes commented 6 years ago

@karl-lunarg this sounds like something we should add CTS coverage for. Can you file a matching bug there?

karl-lunarg commented 6 years ago

@chrisforbes Good idea. Done.