1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 16:24:29 +01:00

[dxvk] Invalidate all v16 cache files

We were randomly writing bogus data in an irrecoverable way,
so in order to not cause any problems for users, invalidate
all caches created with this version.
This commit is contained in:
Philip Rebohle 2023-01-21 01:24:02 +01:00
parent 3d24560af7
commit d020f4451a
2 changed files with 3 additions and 2 deletions

View File

@ -496,7 +496,8 @@ namespace dxvk {
}
// Discard caches of unsupported versions
if (curHeader.version < 8 || curHeader.version > newHeader.version) {
if (curHeader.version < 8 || curHeader.version == 16
|| curHeader.version > newHeader.version) {
Logger::warn("DXVK: State cache version not supported");
return false;
}

View File

@ -60,7 +60,7 @@ namespace dxvk {
*/
struct DxvkStateCacheHeader {
char magic[4] = { 'D', 'X', 'V', 'K' };
uint32_t version = 16;
uint32_t version = 17;
uint32_t entrySize = 0; /* no longer meaningful */
};