[dxvk] Bump state cache format to v15

This commit is contained in:
Philip Rebohle 2022-07-15 12:22:22 +02:00
parent 35fad0aa6c
commit 2fee959515
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 10 additions and 2 deletions

View File

@ -105,7 +105,15 @@ namespace dxvk {
return true;
}
return read(data);
if (!read(data))
return false;
// Format hasn't changed, but we introduced
// dynamic vertex strides in the meantime
if (version < 15)
data.setStride(0);
return true;
}

View File

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