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
d2495bcc
Commit
d2495bcc
authored
Sep 19, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn on OpModuleProcessed, connected to vulkan1.1.
parent
4324842c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
5 deletions
+11
-5
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+1
-2
SpvBuilder.h
SPIRV/SpvBuilder.h
+0
-1
doc.cpp
SPIRV/doc.cpp
+4
-0
StandAlone.cpp
StandAlone/StandAlone.cpp
+3
-2
spv.debugInfo.1.1.frag.out
Test/baseResults/spv.debugInfo.1.1.frag.out
+0
-0
runtests
Test/runtests
+3
-0
No files found.
SPIRV/SpvBuilder.cpp
View file @
d2495bcc
...
@@ -2431,7 +2431,6 @@ void Builder::dump(std::vector<unsigned int>& out) const
...
@@ -2431,7 +2431,6 @@ void Builder::dump(std::vector<unsigned int>& out) const
// Debug instructions
// Debug instructions
dumpInstructions
(
out
,
strings
);
dumpInstructions
(
out
,
strings
);
dumpModuleProcesses
(
out
);
dumpSourceInstructions
(
out
);
dumpSourceInstructions
(
out
);
for
(
int
e
=
0
;
e
<
(
int
)
sourceExtensions
.
size
();
++
e
)
{
for
(
int
e
=
0
;
e
<
(
int
)
sourceExtensions
.
size
();
++
e
)
{
Instruction
sourceExtInst
(
0
,
0
,
OpSourceExtension
);
Instruction
sourceExtInst
(
0
,
0
,
OpSourceExtension
);
...
@@ -2439,7 +2438,7 @@ void Builder::dump(std::vector<unsigned int>& out) const
...
@@ -2439,7 +2438,7 @@ void Builder::dump(std::vector<unsigned int>& out) const
sourceExtInst
.
dump
(
out
);
sourceExtInst
.
dump
(
out
);
}
}
dumpInstructions
(
out
,
names
);
dumpInstructions
(
out
,
names
);
dump
Instructions
(
out
,
lines
);
dump
ModuleProcesses
(
out
);
// Annotation instructions
// Annotation instructions
dumpInstructions
(
out
,
decorations
);
dumpInstructions
(
out
,
decorations
);
...
...
SPIRV/SpvBuilder.h
View file @
d2495bcc
...
@@ -613,7 +613,6 @@ public:
...
@@ -613,7 +613,6 @@ public:
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
entryPoints
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
entryPoints
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
executionModes
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
executionModes
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
names
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
names
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
lines
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
decorations
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
decorations
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
constantsTypesGlobals
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
constantsTypesGlobals
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
externals
;
std
::
vector
<
std
::
unique_ptr
<
Instruction
>
>
externals
;
...
...
SPIRV/doc.cpp
View file @
d2495bcc
...
@@ -1200,6 +1200,7 @@ const char* OpcodeString(int op)
...
@@ -1200,6 +1200,7 @@ const char* OpcodeString(int op)
case
318
:
return
"OpAtomicFlagTestAndSet"
;
case
318
:
return
"OpAtomicFlagTestAndSet"
;
case
319
:
return
"OpAtomicFlagClear"
;
case
319
:
return
"OpAtomicFlagClear"
;
case
320
:
return
"OpImageSparseRead"
;
case
320
:
return
"OpImageSparseRead"
;
case
OpModuleProcessed
:
return
"OpModuleProcesses"
;
case
333
:
return
"OpGroupNonUniformElect"
;
case
333
:
return
"OpGroupNonUniformElect"
;
case
334
:
return
"OpGroupNonUniformAll"
;
case
334
:
return
"OpGroupNonUniformAll"
;
case
335
:
return
"OpGroupNonUniformAny"
;
case
335
:
return
"OpGroupNonUniformAny"
;
...
@@ -1385,6 +1386,7 @@ void Parameterize()
...
@@ -1385,6 +1386,7 @@ void Parameterize()
InstructionDesc
[
OpReleaseEvent
].
setResultAndType
(
false
,
false
);
InstructionDesc
[
OpReleaseEvent
].
setResultAndType
(
false
,
false
);
InstructionDesc
[
OpGroupWaitEvents
].
setResultAndType
(
false
,
false
);
InstructionDesc
[
OpGroupWaitEvents
].
setResultAndType
(
false
,
false
);
InstructionDesc
[
OpAtomicFlagClear
].
setResultAndType
(
false
,
false
);
InstructionDesc
[
OpAtomicFlagClear
].
setResultAndType
(
false
,
false
);
InstructionDesc
[
OpModuleProcessed
].
setResultAndType
(
false
,
false
);
// Specific additional context-dependent operands
// Specific additional context-dependent operands
...
@@ -3051,6 +3053,8 @@ void Parameterize()
...
@@ -3051,6 +3053,8 @@ void Parameterize()
InstructionDesc
[
OpSubgroupReadInvocationKHR
].
operands
.
push
(
OperandId
,
"'Value'"
);
InstructionDesc
[
OpSubgroupReadInvocationKHR
].
operands
.
push
(
OperandId
,
"'Value'"
);
InstructionDesc
[
OpSubgroupReadInvocationKHR
].
operands
.
push
(
OperandId
,
"'Index'"
);
InstructionDesc
[
OpSubgroupReadInvocationKHR
].
operands
.
push
(
OperandId
,
"'Index'"
);
InstructionDesc
[
OpModuleProcessed
].
operands
.
push
(
OperandLiteralString
,
"'process'"
);
#ifdef AMD_EXTENSIONS
#ifdef AMD_EXTENSIONS
InstructionDesc
[
OpGroupIAddNonUniformAMD
].
capabilities
.
push_back
(
CapabilityGroups
);
InstructionDesc
[
OpGroupIAddNonUniformAMD
].
capabilities
.
push_back
(
CapabilityGroups
);
InstructionDesc
[
OpGroupIAddNonUniformAMD
].
operands
.
push
(
OperandScope
,
"'Execution'"
);
InstructionDesc
[
OpGroupIAddNonUniformAMD
].
operands
.
push
(
OperandScope
,
"'Execution'"
);
...
...
StandAlone/StandAlone.cpp
View file @
d2495bcc
...
@@ -1276,8 +1276,9 @@ void usage()
...
@@ -1276,8 +1276,9 @@ void usage()
" using -S.
\n
"
" using -S.
\n
"
" --suppress-warnings suppress GLSL warnings
\n
"
" --suppress-warnings suppress GLSL warnings
\n
"
" (except as required by #extension : warn)
\n
"
" (except as required by #extension : warn)
\n
"
" --target-env {vulkan1.0|opengl} set the execution environment code will
\n
"
" --target-env {vulkan1.0 | vulkan1.1 | opengl}
\n
"
" execute in (as opposed to language
\n
"
" set execution environment that emitted code
\n
"
" will execute in (as opposed to the language
\n
"
" semantics selected by --client) defaults:
\n
"
" semantics selected by --client) defaults:
\n
"
" 'vulkan1.0' under '--client vulkan<ver>'
\n
"
" 'vulkan1.0' under '--client vulkan<ver>'
\n
"
" 'opengl' under '--client opengl<ver>'
\n
"
" 'opengl' under '--client opengl<ver>'
\n
"
...
...
Test/baseResults/spv.debugInfo.1.1.frag.out
0 → 100644
View file @
d2495bcc
This diff is collapsed.
Click to expand it.
Test/runtests
View file @
d2495bcc
...
@@ -121,6 +121,9 @@ echo Testing SPV Debug Information
...
@@ -121,6 +121,9 @@ echo Testing SPV Debug Information
$EXE
-g
--relaxed-errors
--suppress-warnings
--aml
--hlsl-offsets
--nsf
\
$EXE
-g
--relaxed-errors
--suppress-warnings
--aml
--hlsl-offsets
--nsf
\
-G
-H
spv.debugInfo.frag
--rsb
frag 3
>
$TARGETDIR
/spv.debugInfo.frag.out
-G
-H
spv.debugInfo.frag
--rsb
frag 3
>
$TARGETDIR
/spv.debugInfo.frag.out
diff
-b
$BASEDIR
/spv.debugInfo.frag.out
$TARGETDIR
/spv.debugInfo.frag.out
||
HASERROR
=
1
diff
-b
$BASEDIR
/spv.debugInfo.frag.out
$TARGETDIR
/spv.debugInfo.frag.out
||
HASERROR
=
1
$EXE
-g
--target-env
vulkan1.1
--relaxed-errors
--suppress-warnings
--aml
--hlsl-offsets
--nsf
\
-G
-H
spv.debugInfo.frag
--rsb
frag 3
>
$TARGETDIR
/spv.debugInfo.1.1.frag.out
diff
-b
$BASEDIR
/spv.debugInfo.1.1.frag.out
$TARGETDIR
/spv.debugInfo.1.1.frag.out
||
HASERROR
=
1
$EXE
-g
-D
-e
newMain
-g
--amb
--aml
--fua
--hlsl-iomap
--nsf
--sib
1
--ssb
2
--sbb
3
--stb
4
--suavb
5
--sub
6
\
$EXE
-g
-D
-e
newMain
-g
--amb
--aml
--fua
--hlsl-iomap
--nsf
--sib
1
--ssb
2
--sbb
3
--stb
4
--suavb
5
--sub
6
\
--sep
origMain
-H
spv.hlslDebugInfo.vert
--rsb
vert t0 0 0
>
$TARGETDIR
/spv.hlslDebugInfo.frag.out
--sep
origMain
-H
spv.hlslDebugInfo.vert
--rsb
vert t0 0 0
>
$TARGETDIR
/spv.hlslDebugInfo.frag.out
diff
-b
$BASEDIR
/spv.hlslDebugInfo.frag.out
$TARGETDIR
/spv.hlslDebugInfo.frag.out
||
HASERROR
=
1
diff
-b
$BASEDIR
/spv.hlslDebugInfo.frag.out
$TARGETDIR
/spv.hlslDebugInfo.frag.out
||
HASERROR
=
1
...
...
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