Address PR feedback
This commit is contained in:
@@ -7,7 +7,6 @@ namespace Ryujinx.Graphics.OpenGL
|
||||
{
|
||||
private static Lazy<bool> _supportsAstcCompression = new Lazy<bool>(() => HasExtension("GL_KHR_texture_compression_astc_ldr"));
|
||||
|
||||
private static Lazy<int> _maximumViewportDimensions = new Lazy<int>(() => GetLimit(All.MaxViewportDims));
|
||||
private static Lazy<int> _maximumComputeSharedMemorySize = new Lazy<int>(() => GetLimit(All.MaxComputeSharedMemorySize));
|
||||
private static Lazy<int> _storageBufferOffsetAlignment = new Lazy<int>(() => GetLimit(All.ShaderStorageBufferOffsetAlignment));
|
||||
|
||||
@@ -16,7 +15,6 @@ namespace Ryujinx.Graphics.OpenGL
|
||||
public static bool SupportsAstcCompression => _supportsAstcCompression.Value;
|
||||
public static bool SupportsNonConstantTextureOffset => _isNvidiaDriver.Value;
|
||||
|
||||
public static int MaximumViewportDimensions => _maximumViewportDimensions.Value;
|
||||
public static int MaximumComputeSharedMemorySize => _maximumComputeSharedMemorySize.Value;
|
||||
public static int StorageBufferOffsetAlignment => _storageBufferOffsetAlignment.Value;
|
||||
|
||||
|
@@ -64,7 +64,6 @@ namespace Ryujinx.Graphics.OpenGL
|
||||
return new Capabilities(
|
||||
HwCapabilities.SupportsAstcCompression,
|
||||
HwCapabilities.SupportsNonConstantTextureOffset,
|
||||
HwCapabilities.MaximumViewportDimensions,
|
||||
HwCapabilities.MaximumComputeSharedMemorySize,
|
||||
HwCapabilities.StorageBufferOffsetAlignment);
|
||||
}
|
||||
|
@@ -104,6 +104,7 @@ namespace Ryujinx.Graphics.OpenGL
|
||||
|
||||
GL.TexParameter(target, TextureParameterName.TextureMaxLevel, maxLevel);
|
||||
|
||||
// TODO: This requires ARB_stencil_texturing, we should uncomment and test this.
|
||||
// GL.TexParameter(target, TextureParameterName.DepthStencilTextureMode, (int)_info.DepthStencilMode.Convert());
|
||||
}
|
||||
|
||||
@@ -118,7 +119,11 @@ namespace Ryujinx.Graphics.OpenGL
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: Improve
|
||||
// TODO: Most graphics APIs doesn't support creating a texture view from a compressed format
|
||||
// with a non-compressed format (or vice-versa), however NVN seems to support it.
|
||||
// So we emulate that here with a texture copy (see the first CopyTo overload).
|
||||
// However right now it only does a single copy right after the view is created,
|
||||
// so it doesn't work for all cases.
|
||||
TextureView emulatedView = (TextureView)_renderer.CreateTexture(info);
|
||||
|
||||
emulatedView._emulatedViewParent = this;
|
||||
|
Reference in New Issue
Block a user