mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-11-16 11:04:39 +01:00
video_core: reset hash on image refresh (#5504)
* reset hash on image refresh * clang-format
This commit is contained in:
1 parent
489dcf4e6b
commit
4f1a70f673
1 file changed
+2
-5
@@ -868,10 +868,10 @@ void TextureCache::RefreshImage(Image& image) {
|
||||
image.cpu_hash = hash;
|
||||
}
|
||||
|
||||
image.gpu_hash = 0;
|
||||
|
||||
const u32 num_layers = image.info.resources.layers;
|
||||
const u32 num_mips = image.info.resources.levels;
|
||||
const bool is_gpu_modified = True(image.flags & ImageFlagBits::GpuModified);
|
||||
const bool is_gpu_dirty = True(image.flags & ImageFlagBits::GpuDirty);
|
||||
|
||||
SmallVector<vk::BufferImageCopy, 14> image_copies;
|
||||
for (u32 m = 0; m < num_mips; m++) {
|
||||
@@ -1226,9 +1226,6 @@ void TextureCache::RunGarbageCollector() {
|
||||
|
||||
void TextureCache::TouchImage(Image& image) {
|
||||
image_lru_cache.Touch(image, gc_tick);
|
||||
|
||||
// Image is still valid
|
||||
image.gpu_hash = 0;
|
||||
}
|
||||
|
||||
void TextureCache::DeleteImage(ImageId image_id) {
|
||||
|
||||
Reference in new issue
Block a user