spirv: don't emit invalid debuginfo for buffer references

Currently no debug info is emitted for buffer reference types, which
resulted in the SPIR-V backend code asserting when trying to emit the
debug info for struct member that had such a type. Instead, the code now
skips such struct members. Full debug info for buffer references may
require forward references in the debug info instructions, which is
currently prohibited by the spec.
This commit is contained in:
Arcady Goldmints-Orlov 2023-10-12 13:42:32 -04:00 committed by arcady-lunarg
parent 48f9ed8b08
commit 0504953b35
4 changed files with 219 additions and 1 deletions

View file

@ -931,6 +931,7 @@ INSTANTIATE_TEST_SUITE_P(
"spv.debuginfo.glsl.geom",
"spv.debuginfo.glsl.tesc",
"spv.debuginfo.glsl.tese",
"spv.debuginfo.bufferref.glsl.frag",
"spv.debuginfo.const_params.glsl.comp",
"spv.debuginfo.scalar_types.glsl.frag",
})),