Extend renderpass tests to use input attachments
authorMika Isojärvi <misojarvi@google.com>
Wed, 17 Aug 2016 20:23:36 +0000 (13:23 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 20 Oct 2016 18:14:43 +0000 (14:14 -0400)
commit58a80a6102cf592f064b8094c59812081ee5d323
treec8386f0da30e747e847e420d6ffe6a1438802d35
parent69003dc4765da9466c9f60d861d451e49075b785
Extend renderpass tests to use input attachments

- Render only values 0 and 1 to all attachments.
- The value depends on attachment, subpass and pixel location.
- Depth formats also sets gl_FragDepth to 0.0 or 1.0 depending on location.
- Stencil uses only values 0 and 0xff.
- Verification requires that the quads are rasterized exactly and
  that all result values are either 0 or 1.
- Input attachment containing 1s and 0s are interpreted as true and
  false bools and input values are combined with boolean operations and
  written to shader outputs.

See #447
Change-Id: I4ebe3d9b5151d40558e473a028ee458cf6285a85
android/cts/master/vk-master.txt
external/vulkancts/modules/vulkan/vktRenderPassTests.cpp
external/vulkancts/mustpass/1.0.2/vk-default.txt