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:
parent
3d24560af7
commit
d020f4451a
@ -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;
|
||||
}
|
||||
|
@ -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 */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user