Merge branch '267-spirv_assembly.instruction-Fixes' into 'master'
authorPyry Haulos <phaulos@google.com>
Mon, 1 Feb 2016 18:54:39 +0000 (13:54 -0500)
committerPyry Haulos <phaulos@google.com>
Mon, 1 Feb 2016 18:54:39 +0000 (13:54 -0500)
267 spirv assembly.instruction fixes

1- missing ArrayStride: Array type in uniform/storage block must have their stride explicitly specified, otherwise the stride infomation in block layout is lost. Affects:

    spirv_assembly.instruction.compute.opcopymemory.*

2- OpSelect's condition operand doesn't follow spec:

    OpSelect's condition operand should have same component number as OpSelect's result type.

    SPIR-V spec p110:
    OpSelect
    ...
    Condition must be a scalar or vector of Boolean type. It must have the same number of components as Result Type.

This addresses issue #267

See merge request !410


Trivial merge