tests: Workaround crash in PSOPolygonModeValid
authorKarl Schultz <karl@lunarg.com>
Tue, 24 Apr 2018 16:46:29 +0000 (10:46 -0600)
committerKarl Schultz <karl@lunarg.com>
Tue, 24 Apr 2018 19:44:47 +0000 (13:44 -0600)
commitb5ca1350660842cb0bf9687ca5511f5e8cb4f0a8
tree050eb2aad9f601df38b821029c7447c949d4070e
parent70236257a628bc60f369c0d61f451f5c3ed17adb
tests: Workaround crash in PSOPolygonModeValid

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

works: 375.27.14
fails: 387.42.03

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
tests/layer_validation_tests.cpp