Remapper: remove debug info for IDs stripped in other passes
If some DCE is performed such as removing dead functions, then even if we are NOT stripping debug info, we still must remove the debug opcodes that refer to the now-dead IDs. Also, this adds a small change to perform no ID remapping if none is requested, making spirv-remap properly be a no-op if no options are given.
This commit is contained in:
@@ -3,7 +3,7 @@ WARNING: 0:4: 'immediate sampler state' : unimplemented
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 190
|
||||
// Id's are bound by 191
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
@@ -28,10 +28,10 @@ WARNING: 0:4: 'immediate sampler state' : unimplemented
|
||||
Decorate 165 DescriptorSet 0
|
||||
Decorate 180 Location 0
|
||||
Decorate 184 BuiltIn FragDepth
|
||||
Decorate 187 DescriptorSet 0
|
||||
Decorate 188 DescriptorSet 0
|
||||
Decorate 189 DescriptorSet 0
|
||||
Decorate 189 Binding 1
|
||||
Decorate 190 DescriptorSet 0
|
||||
Decorate 190 Binding 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
@@ -135,9 +135,9 @@ WARNING: 0:4: 'immediate sampler state' : unimplemented
|
||||
180: 179(ptr) Variable Output
|
||||
183: TypePointer Output 35(float)
|
||||
184: 183(ptr) Variable Output
|
||||
187: 44(ptr) Variable UniformConstant
|
||||
188: 44(ptr) Variable UniformConstant
|
||||
189: 40(ptr) Variable UniformConstant
|
||||
189: 44(ptr) Variable UniformConstant
|
||||
190: 40(ptr) Variable UniformConstant
|
||||
4: 2 Function None 3
|
||||
5: Label
|
||||
9: 8(ptr) Variable Function
|
||||
|
||||
Reference in New Issue
Block a user