You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When validating DebugTypePointer instructions, the base type is checked to be a trivial type defined by DebugTypeBasic. This means that pointers to vectors or matrices are considered invalid, which prevents variables such as vec4 fragColor (GLSL) to have debug info emitted.
if (validate_base_type != SPV_SUCCESS) return validate_base_type;
CHECK_CONST_UINT_OPERAND("Storage Class", 6);
CHECK_CONST_UINT_OPERAND("Flags", 7);
break;
}
This validation rule is not present in the NonSemantic.Shader.DebugInfo.100 specification. Potential solutions:
(1) Check that Base Type in DebugTypePointer could be any debug type instruction.
(2) Simply remove the validation - ValidateOperandBaseType(_, inst, 5, ext_inst_name)
(3) Update the specification to reflect the intended behaviour in case pointers to non-trivial types are not allowed
Thanks for reading and checking that!
The text was updated successfully, but these errors were encountered:
When validating
DebugTypePointer
instructions, the base type is checked to be a trivial type defined byDebugTypeBasic
. This means that pointers to vectors or matrices are considered invalid, which prevents variables such asvec4 fragColor
(GLSL) to have debug info emitted.SPIRV-Tools/source/val/validate_extensions.cpp
Lines 3170 to 3177 in 933db56
This validation rule is not present in the
NonSemantic.Shader.DebugInfo.100
specification. Potential solutions:(1) Check that
Base Type
inDebugTypePointer
could be any debug type instruction.(2) Simply remove the validation -
ValidateOperandBaseType(_, inst, 5, ext_inst_name)
(3) Update the specification to reflect the intended behaviour in case pointers to non-trivial types are not allowed
Thanks for reading and checking that!
The text was updated successfully, but these errors were encountered: