Prevent empty images from passing rasterization tests
authorAri Suonpaa <ari.suonpaa@siru.fi>
Wed, 29 Jan 2020 06:50:45 +0000 (08:50 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 13 Feb 2020 09:40:11 +0000 (04:40 -0500)
commit695114e33b5960b36701569abba335a595a0cbba
tree0121ca040435e1119aab16cfad50e00457e2106c
parent31f4e78553d373e0d7bc6a482a2f8577fd499d63
Prevent empty images from passing rasterization tests

Some of the rasterization tests passed even when skipping
primitive drawing. Narrow lines had only edge pixels and
those are not verified because the implementations may
vary. Now a sanity check is performed in all cases to
prevent empty results from passing.

New tests:

dEQP-VK.rasterization.*
dEQP-GLES*.functional.rasterization.*

Components: Framework, Vulkan, OpenGL ES

VK-GL-CTS issue: 2168

Change-Id: I8df0a7a9490253e1f825697420b22cd9f15f3986
framework/common/tcuRasterizationVerifier.cpp