[amdgpu] shader: fix struct pointer searching

This commit is contained in:
DH 2023-07-30 16:38:01 +03:00
parent 627eabec6d
commit 4a5faf3252

View file

@ -44,12 +44,13 @@ spirv::PointerType
ConverterContext::getStructPointerType(spv::StorageClass storageClass,
spirv::StructType structType) {
StructTypeEntry *entry = nullptr;
for (auto &structType : mStructTypes) {
if (structType.id != structType.id) {
for (auto &type : mStructTypes) {
if (type.id != structType) {
continue;
}
entry = &structType;
entry = &type;
break;
}
if (entry == nullptr) {