mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-01-04 08:46:00 +00:00
Spacing cleanup, unrelated change.
This commit is contained in:
parent
36211f2caa
commit
db2fec25c7
|
@ -7,7 +7,6 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
{
|
||||
partial class Methods
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Performs a buffer to buffer, or buffer to texture copy.
|
||||
/// </summary>
|
||||
|
|
|
@ -84,8 +84,6 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
|
||||
private int _sequenceNumber;
|
||||
|
||||
private bool _noSync;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new instance of the cached GPU texture.
|
||||
/// </summary>
|
||||
|
@ -303,7 +301,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
{
|
||||
// Texture buffers are not handled here, instead they are invalidated (if modified)
|
||||
// when the texture is bound. This is handled by the buffer manager.
|
||||
if ((_sequenceNumber == _context.SequenceNumber && _hasData) || _noSync)
|
||||
if ((_sequenceNumber == _context.SequenceNumber && _hasData) || Info.Target == Target.TextureBuffer)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -1001,7 +999,6 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
|
||||
_depth = info.GetDepth();
|
||||
_layers = info.GetLayers();
|
||||
_noSync = Info.Target == Target.TextureBuffer;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -41,14 +41,14 @@ namespace Ryujinx.Graphics.Texture
|
|||
int mipGobBlocksInY = gobBlocksInY;
|
||||
int mipGobBlocksInZ = gobBlocksInZ;
|
||||
|
||||
int gobWidth = (GobStride / bytesPerPixel) * gobBlocksInTileX;
|
||||
int gobWidth = (GobStride / bytesPerPixel) * gobBlocksInTileX;
|
||||
int gobHeight = gobBlocksInY * GobHeight;
|
||||
|
||||
for (int level = 0; level < levels; level++)
|
||||
{
|
||||
int w = Math.Max(1, width >> level);
|
||||
int w = Math.Max(1, width >> level);
|
||||
int h = Math.Max(1, height >> level);
|
||||
int d = Math.Max(1, depth >> level);
|
||||
int d = Math.Max(1, depth >> level);
|
||||
|
||||
w = BitUtils.DivRoundUp(w, blockWidth);
|
||||
h = BitUtils.DivRoundUp(h, blockHeight);
|
||||
|
@ -344,7 +344,7 @@ namespace Ryujinx.Graphics.Texture
|
|||
int bytesPerPixel,
|
||||
ReadOnlySpan<byte> data)
|
||||
{
|
||||
int w = BitUtils.DivRoundUp(width, blockWidth);
|
||||
int w = BitUtils.DivRoundUp(width, blockWidth);
|
||||
int h = BitUtils.DivRoundUp(height, blockHeight);
|
||||
|
||||
int inStride = BitUtils.AlignUp(w * bytesPerPixel, HostStrideAlignment);
|
||||
|
|
Loading…
Reference in a new issue