Remove highWord == 1 check since it is not equal to 1 for NVN handles?

This commit is contained in:
Gabriel A 2023-11-13 20:23:30 -03:00
parent dd9134f5f5
commit ebb42fa30d

View file

@ -863,12 +863,6 @@ namespace Ryujinx.Graphics.Gpu.Image
for (int index = 0; index < cbData.Length; index += 2) for (int index = 0; index < cbData.Length; index += 2)
{ {
int packedId = cbData[index]; int packedId = cbData[index];
int highWord = cbData[index + 1];
if (highWord != 1)
{
continue;
}
int textureId = TextureHandle.UnpackTextureId(packedId); int textureId = TextureHandle.UnpackTextureId(packedId);
int samplerId; int samplerId;
@ -899,13 +893,6 @@ namespace Ryujinx.Graphics.Gpu.Image
for (int index = 0; index < cbData.Length; index += 2) for (int index = 0; index < cbData.Length; index += 2)
{ {
int packedId = cbData[index]; int packedId = cbData[index];
int highWord = cbData[index + 1];
if (highWord != 1)
{
continue;
}
int textureId = TextureHandle.UnpackTextureId(packedId); int textureId = TextureHandle.UnpackTextureId(packedId);
pool.UpdateBindlessCombined(_context.Renderer, null, textureId, 0); pool.UpdateBindlessCombined(_context.Renderer, null, textureId, 0);
@ -931,13 +918,6 @@ namespace Ryujinx.Graphics.Gpu.Image
for (int index = 0; index < cbData.Length; index += 2) for (int index = 0; index < cbData.Length; index += 2)
{ {
int packedId = cbData[index]; int packedId = cbData[index];
int highWord = cbData[index + 1];
if (highWord != 1)
{
continue;
}
int samplerId; int samplerId;
if (_samplerIndex == SamplerIndex.ViaHeaderIndex) if (_samplerIndex == SamplerIndex.ViaHeaderIndex)