mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
[amdgpu] shader: fix struct pointer searching
This commit is contained in:
parent
627eabec6d
commit
4a5faf3252
|
|
@ -44,12 +44,13 @@ spirv::PointerType
|
||||||
ConverterContext::getStructPointerType(spv::StorageClass storageClass,
|
ConverterContext::getStructPointerType(spv::StorageClass storageClass,
|
||||||
spirv::StructType structType) {
|
spirv::StructType structType) {
|
||||||
StructTypeEntry *entry = nullptr;
|
StructTypeEntry *entry = nullptr;
|
||||||
for (auto &structType : mStructTypes) {
|
for (auto &type : mStructTypes) {
|
||||||
if (structType.id != structType.id) {
|
if (type.id != structType) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
entry = &structType;
|
entry = &type;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entry == nullptr) {
|
if (entry == nullptr) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue