Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
af151f96
Commit
af151f96
authored
Jun 30, 2016
by
John Kessenich
Committed by
GitHub
Jun 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #358 from amdrexu/bugfix
SPV: Certain decorations are missing for structure-typed in/out variables
parents
187254b9
c884b4a4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
1 deletion
+9
-1
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+1
-1
spv.430.vert.out
Test/baseResults/spv.430.vert.out
+1
-0
spv.layoutNested.vert.out
Test/baseResults/spv.layoutNested.vert.out
+1
-0
spv.localAggregates.frag.out
Test/baseResults/spv.localAggregates.frag.out
+3
-0
spv.variableArrayIndex.frag.out
Test/baseResults/spv.variableArrayIndex.frag.out
+3
-0
No files found.
SPIRV/GlslangToSpv.cpp
View file @
af151f96
...
@@ -4024,7 +4024,7 @@ spv::Id TGlslangToSpvTraverser::getSymbolId(const glslang::TIntermSymbol* symbol
...
@@ -4024,7 +4024,7 @@ spv::Id TGlslangToSpvTraverser::getSymbolId(const glslang::TIntermSymbol* symbol
id
=
createSpvVariable
(
symbol
);
id
=
createSpvVariable
(
symbol
);
symbolValues
[
symbol
->
getId
()]
=
id
;
symbolValues
[
symbol
->
getId
()]
=
id
;
if
(
!
symbol
->
getType
().
isStruct
()
)
{
if
(
symbol
->
getBasicType
()
!=
glslang
::
EbtBlock
)
{
addDecoration
(
id
,
TranslatePrecisionDecoration
(
symbol
->
getType
()));
addDecoration
(
id
,
TranslatePrecisionDecoration
(
symbol
->
getType
()));
addDecoration
(
id
,
TranslateInterpolationDecoration
(
symbol
->
getType
().
getQualifier
()));
addDecoration
(
id
,
TranslateInterpolationDecoration
(
symbol
->
getType
().
getQualifier
()));
addDecoration
(
id
,
TranslateAuxiliaryStorageDecoration
(
symbol
->
getType
().
getQualifier
()));
addDecoration
(
id
,
TranslateAuxiliaryStorageDecoration
(
symbol
->
getType
().
getQualifier
()));
...
...
Test/baseResults/spv.430.vert.out
View file @
af151f96
...
@@ -63,6 +63,7 @@ Linked vertex stage:
...
@@ -63,6 +63,7 @@ Linked vertex stage:
Decorate 55(sampb2) Binding 5
Decorate 55(sampb2) Binding 5
Decorate 56(sampb4) DescriptorSet 0
Decorate 56(sampb4) DescriptorSet 0
Decorate 56(sampb4) Binding 31
Decorate 56(sampb4) Binding 31
Decorate 62(var) Flat
Decorate 62(var) Location 0
Decorate 62(var) Location 0
MemberDecorate 63(MS) 0 Location 17
MemberDecorate 63(MS) 0 Location 17
Decorate 63(MS) Block
Decorate 63(MS) Block
...
...
Test/baseResults/spv.layoutNested.vert.out
View file @
af151f96
...
@@ -162,6 +162,7 @@ Linked vertex stage:
...
@@ -162,6 +162,7 @@ Linked vertex stage:
Decorate 58(bBt3) BufferBlock
Decorate 58(bBt3) BufferBlock
Decorate 60(bBtn3) DescriptorSet 1
Decorate 60(bBtn3) DescriptorSet 1
Decorate 60(bBtn3) Binding 0
Decorate 60(bBtn3) Binding 0
Decorate 62(sout) Flat
MemberDecorate 63(S) 0 Invariant
MemberDecorate 63(S) 0 Invariant
MemberDecorate 63(S) 1 Invariant
MemberDecorate 63(S) 1 Invariant
MemberDecorate 63(S) 2 Invariant
MemberDecorate 63(S) 2 Invariant
...
...
Test/baseResults/spv.localAggregates.frag.out
View file @
af151f96
...
@@ -44,8 +44,11 @@ Linked fragment stage:
...
@@ -44,8 +44,11 @@ Linked fragment stage:
Name 128 "samp2D"
Name 128 "samp2D"
Name 134 "foo"
Name 134 "foo"
Name 135 "foo2"
Name 135 "foo2"
Decorate 15(foo3) Flat
Decorate 90(condition) Flat
Decorate 90(condition) Flat
Decorate 128(samp2D) DescriptorSet 0
Decorate 128(samp2D) DescriptorSet 0
Decorate 134(foo) Flat
Decorate 135(foo2) Flat
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeInt 32 1
6: TypeInt 32 1
...
...
Test/baseResults/spv.variableArrayIndex.frag.out
View file @
af151f96
...
@@ -39,6 +39,9 @@ Linked fragment stage:
...
@@ -39,6 +39,9 @@ Linked fragment stage:
Name 63 "coord"
Name 63 "coord"
Name 69 "constructed"
Name 69 "constructed"
Decorate 10(Count) Flat
Decorate 10(Count) Flat
Decorate 20(foo3) Flat
Decorate 34(foo2) Flat
Decorate 36(foo) Flat
Decorate 59(samp2D) DescriptorSet 0
Decorate 59(samp2D) DescriptorSet 0
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment