Add tests to use OpPhi with various variable types
authorJari Komppa <jari.komppa@siru.fi>
Tue, 12 Sep 2017 12:00:59 +0000 (15:00 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 20 Oct 2017 09:11:21 +0000 (05:11 -0400)
commit77d19cfad0daf5ffecede09ca98d6a6a06d2e7fc
tree9e74897c7a46e8b095df0a44d6b02ed8bc6752b5
parentfb49c26b514b76e5df6b35049709d128ee15424c
Add tests to use OpPhi with various variable types

Based on the spec, OpPhi should be able to handle any variable type.
These tests use various variable types (int, float, vec3, mat4, array
and struct) with the OpPhi instruction.

All of the tests are of the form:

    testtype r

    if (indata > 0)
        r = 1
    else
        r = -1

    return (float)r

Affects:

dEQP-VK.spirv_assembly.instruction.compute.opphi.vartype_int
dEQP-VK.spirv_assembly.instruction.compute.opphi.vartype_float
dEQP-VK.spirv_assembly.instruction.compute.opphi.vartype_vec3
dEQP-VK.spirv_assembly.instruction.compute.opphi.vartype_mat4
dEQP-VK.spirv_assembly.instruction.compute.opphi.vartype_array
dEQP-VK.spirv_assembly.instruction.compute.opphi.vartype_struct

Components: Vulkan

VK-GL-CTS issue: 259

Change-Id: I2d090d06c52c904d66b35f8cee5f2895a2087069
android/cts/master/vk-master.txt
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp
external/vulkancts/mustpass/1.0.3/vk-default.txt