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)
commitffe3ffa04b29528c223e6b164718741fec64d8ce
treeeb14a6a92ab7e194572d64faec2b6eb4758c77fd
parentd5faa03d11da12f3ab9d6e8cb4ef098511f6c212
parent6d7c4543ed37c7b33f45a4d5060ba41a89fd613f
Merge branch '267-spirv_assembly.instruction-Fixes' into 'master'

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