Comments (2)
See logical module layout in the spec. In particular:
- These debug instructions, which must be grouped in the following order:
- All OpString, OpSourceExtension, OpSource, and OpSourceContinued, without forward references.
- All OpName and all OpMemberName.
- All OpModuleProcessed instructions.
...
- All type declarations (OpTypeXXX instructions), all constant instructions, and all global variable declarations (all OpVariable instructions whose Storage Class is not Function). This is the preferred location for OpUndef instructions, though they can also appear in function bodies. All operands in all these instructions must be declared before being used. Otherwise, they can be in any order. This section is the first section to allow use of:
- OpLine and OpNoLine debug information.
- Non-semantic instructions with OpExtInst.
So OpLine
can't be present until the type declaration section. When the validator sees OpLine it moves forward to that section which is why the error is that OpName
is in the wrong section.
from spirv-tools.
ok, it says
These debug instructions
and not
The debug instructions
so this seems fair to me, thanks for clarify, I have not caught that slight difference before
from spirv-tools.
Related Issues (20)
- As part of https://github.com/KhronosGroup/SPIRV-Tools/pull/5426 the check for if "git" exists was removed. This is a bug
- spirv-val: Checks for operands of DebugTypePointer and DebugTypeQualifier are too strict
- Add iOS CMake build to CI HOT 2
- utils/update_build_version.py | DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated HOT 2
- Hitting assert/crash when trying to fold specialization constant HOT 5
- [bug] Incorrect optimization on constant propagation and eliminate-local-multi-store HOT 2
- Compilation error after removing stage-specific debug info HOT 2
- trunk build breaks: src/SPIRV-Tools/test/enum_set_test.cpp:280:22: error: ‘LongConstantCompositeINTEL’ is not a member of ‘spv::Capability’; did you mean ‘LongCompositesINTEL’?
- A copy of what????? HOT 1
- About project version scheme HOT 2
- Fuzzer: CMake configuration failed for protobuf - fuzzer unbuildable HOT 1
- Issue with EliminateDeadOutputStores when reading from out variable HOT 1
- Need AppleSilicon or universal apps for all the spriv tools on macOS HOT 5
- Add CLI option to set CreateAggressiveDCEPass(true) HOT 7
- New spriv-cross not transpiling to "void" vertex functions for SSBO usage HOT 2
- spriv-tools build of spirv-cross is really old HOT 3
- Constant initialized global variable rewrites produce invalid IR HOT 1
- OpUConvert for specialization constant should not generate spirv-opt error. HOT 2
- update validator tests for SPIRV-Headers change removing Kernel capability from Image channel order query result enums HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spirv-tools.