PR feedback
This commit is contained in:
parent
1d41f3fb6e
commit
1f6582b641
5 changed files with 10 additions and 8 deletions
|
@ -107,8 +107,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
if (texture.CacheNode != _textures.Last)
|
||||
{
|
||||
_textures.Remove(texture.CacheNode);
|
||||
|
||||
texture.CacheNode = _textures.AddLast(texture);
|
||||
_textures.AddLast(texture.CacheNode);
|
||||
}
|
||||
|
||||
if (_totalSize > MaxTextureSizeCapacity && _textures.Count >= MinCountForDeletion)
|
||||
|
|
|
@ -681,9 +681,13 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
if (entry.CacheNode != null)
|
||||
{
|
||||
_lruCache.Remove(entry.CacheNode);
|
||||
_lruCache.AddLast(entry.CacheNode);
|
||||
}
|
||||
else
|
||||
{
|
||||
entry.CacheNode = _lruCache.AddLast(entry);
|
||||
}
|
||||
|
||||
entry.CacheNode = _lruCache.AddLast(entry);
|
||||
entry.CacheTimestamp = ++_currentTimestamp;
|
||||
|
||||
RemoveLeastUsedEntries();
|
||||
|
|
|
@ -432,7 +432,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
{
|
||||
if (gpuVa != 0 && format != 0)
|
||||
{
|
||||
// Logger.Error?.Print(LogClass.Gpu, $"Invalid texture format 0x{format:X} (sRGB: {srgb}).");
|
||||
Logger.Error?.Print(LogClass.Gpu, $"Invalid texture format 0x{format:X} (sRGB: {srgb}).");
|
||||
}
|
||||
|
||||
formatInfo = FormatInfo.Default;
|
||||
|
|
|
@ -31,8 +31,6 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
public bool Bound;
|
||||
|
||||
public bool IsDirty => _storages == null;
|
||||
|
||||
public ImageArray(VulkanRenderer gd, int size, bool isBuffer)
|
||||
{
|
||||
_gd = gd;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.Graphics.GAL;
|
||||
using Silk.NET.Vulkan;
|
||||
using System;
|
||||
|
@ -357,7 +357,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
_device,
|
||||
segments,
|
||||
_plce,
|
||||
IsCompute ? PipelineBindPoint.Compute : PipelineBindPoint.Graphics, setIndex);
|
||||
IsCompute ? PipelineBindPoint.Compute : PipelineBindPoint.Graphics,
|
||||
setIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue