mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +00:00
prevent readudbuf chrash
This commit is contained in:
parent
f456df76a9
commit
95a81a13ed
@ -358,6 +358,7 @@ void SerializeInfo(std::ostream& info_serialized, Shader::Info& info) {
|
|||||||
ar << info.fetch_shader_sgpr_base; // !
|
ar << info.fetch_shader_sgpr_base; // !
|
||||||
ar << info.readconst_types;
|
ar << info.readconst_types;
|
||||||
ar << info.uses_dma;
|
ar << info.uses_dma;
|
||||||
|
ar << info.srt_info.flattened_bufsize_dw;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeserializeInfo(std::istream& info_serialized, Shader::Info& info) {
|
void DeserializeInfo(std::istream& info_serialized, Shader::Info& info) {
|
||||||
@ -400,6 +401,7 @@ void DeserializeInfo(std::istream& info_serialized, Shader::Info& info) {
|
|||||||
ar >> info.fetch_shader_sgpr_base; // !
|
ar >> info.fetch_shader_sgpr_base; // !
|
||||||
ar >> info.readconst_types;
|
ar >> info.readconst_types;
|
||||||
ar >> info.uses_dma;
|
ar >> info.uses_dma;
|
||||||
|
ar >> info.srt_info.flattened_bufsize_dw;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ShaderCache
|
} // namespace ShaderCache
|
Loading…
Reference in New Issue
Block a user