Added tests for different shader varying vec width
authorJari Komppa <jari.komppa@siru.fi>
Tue, 21 Nov 2017 12:52:23 +0000 (14:52 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 11 Dec 2017 13:29:45 +0000 (08:29 -0500)
commitb1e0858a8d2885e98c5e77bbee33fb3e92822252
tree43b1071218dacdeb09b96cfc0c32f40ffa18abd1
parent165794431f6775d7422d4a2657f72bdc402fc907
Added tests for different shader varying vec width

Vulkan specification (1.0.8, 14.1.3) states that vertex and fragment
shader varyings may differ as long as they are of the same type and the
vertex shader outputs at least as wide vectors as the fragment shader
inputs.

This set of tests link various varying vector types, all of which
are legal even though they do not match.

Affects:

dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_vec4_vec3
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_vec4_vec2
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_vec4_float
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_vec3_vec2
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_vec3_float
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_vec2_float
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_ivec4_ivec3
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_ivec4_ivec2
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_ivec4_int
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_ivec3_ivec2
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_ivec3_int
dEQP-VK.glsl.linkage.varying.rules.legal_mismatch_ivec2_int

Components: Vulkan

VK-Gl-CTS issue: 821

Change-Id: I4afc3edb77fd6f421cafce20d09bbdd948f16dcf
android/cts/master/vk-master.txt
external/vulkancts/data/vulkan/glsl/es310/linkage.test
external/vulkancts/mustpass/1.0.3/vk-default.txt