platform/upstream/SPIRV-Tools.git
9 years agoParenthesize SPV_BIT macro to avoid surprises.
David Neto [Fri, 14 Aug 2015 17:57:02 +0000 (13:57 -0400)]
Parenthesize SPV_BIT macro to avoid surprises.

9 years agoMerge branch 'avoid-cmake-target-conflicts' into 'master'
Kenneth Benzie [Mon, 17 Aug 2015 11:58:16 +0000 (07:58 -0400)]
Merge branch 'avoid-cmake-target-conflicts' into 'master'

Avoid cmake target conflicts

This makes it easier to include spirv-tools into larger cmake-based
projects, which may already include glslang or googletest. It is
currently difficult to do this because of target clashes and a
hardcoded googletest path.

glslang defines a target named SPIRV, so rename ours to SPIRV-TOOLS.

A googletest subdirectory may already be added somewhere else, so if
the external/googletest directory does not exist, probe whether there
is a gtest target defined already. This makes spirv-tools work
out-of-the-box when plopped into a larger project already containing
googletest; otherwise the README.md procedure still works as before.

See merge request !1

9 years agoMerge branch 'fix-failing-test' into 'master'
Kenneth Benzie [Mon, 17 Aug 2015 11:58:00 +0000 (07:58 -0400)]
Merge branch 'fix-failing-test' into 'master'

Fix failing test

The generator number is set to `SPV_GENERATOR_KHRONOS` in the
`spvBinaryHeaderSet` function, so tests should catch up.

See merge request !2

9 years agoFix failing tests.
Lei Zhang [Thu, 30 Jul 2015 14:30:28 +0000 (10:30 -0400)]
Fix failing tests.

The generator number is set to SPV_GENERATOR_KHRONOS in the
spvBinaryHeaderSet function, so tests should catch up.

9 years agoAvoid target conflicts with glslang and googletest.
Lei Zhang [Wed, 29 Jul 2015 19:22:09 +0000 (15:22 -0400)]
Avoid target conflicts with glslang and googletest.

This makes it easier to include spirv-tools into larger cmake-based
projects, which may already include glslang or googletest. It is
currently difficult to do this because of target clashes and a
hardcoded googletest path.

glslang defines a target named SPIRV, so rename ours to SPIRV-TOOLS.

A googletest subdirectory may already be added somewhere else, so if
the external/googletest directory does not exist, probe whether there
is a gtest target defined already. This makes spirv-tools work
out-of-the-box when plopped into a larger project already containing
googletest; otherwise the README.md procedure still works as before.

9 years agoChange binary header generator word to Khronos
Kenneth Benzie (Benie) [Mon, 1 Jun 2015 16:50:46 +0000 (09:50 -0700)]
Change binary header generator word to Khronos

9 years agoUpdate readme file with repo maintainer.
Kenneth Benzie (Benie) [Tue, 26 May 2015 09:40:58 +0000 (10:40 +0100)]
Update readme file with repo maintainer.

9 years agoCode drop of the Codeplay spirv-tools source.
Kenneth Benzie (Benie) [Fri, 22 May 2015 17:26:19 +0000 (18:26 +0100)]
Code drop of the Codeplay spirv-tools source.

This commit contains the source for the SPIRV static library, spirv-as,
spirv-dis, and spirv-val tools.