Test using gl_ViewportIndex in a vertex shader
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sun, 7 Jan 2018 19:46:30 +0000 (11:46 -0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 15 Mar 2018 15:40:35 +0000 (11:40 -0400)
commitfd769293c7a1fb97448b7dc29dde3542b0ccf10f
tree7375c221ce0ffe7e8e6207a07873c5afb3db8f3e
parent9b14d442c6a11b30bfbeecb85c2ae8daf9267698
Test using gl_ViewportIndex in a vertex shader

Needs VK_EXT_shader_viewport_index_layer extension. Test works by
setting up N viewports forming a grid and each pair of triangles is
assigned to one of the viewports. Colors are used to distinguish each
pair, and by consequence, each cell in the grid.

This test has some similarities with how the multi_viewport scissors
test in vulkan/fragment_ops/.

New tests:
dEQP-VK.draw.shader_viewport_index.vertex_shader_*

VK-GL-CTS issue: 1043

Components: Vulkan

Change-Id: I311012126f0f4acc18cc31350e16f1c36dd35c62
AndroidGen.mk
android/cts/master/vk-master.txt
external/vulkancts/modules/vulkan/draw/CMakeLists.txt
external/vulkancts/modules/vulkan/draw/vktDrawShaderViewportIndexTests.cpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/draw/vktDrawShaderViewportIndexTests.hpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/draw/vktDrawTests.cpp
external/vulkancts/mustpass/1.1.2/vk-default-no-waivers.txt
external/vulkancts/mustpass/1.1.2/vk-default.txt