|
@@ -18,7 +18,8 @@ namespace Ryujinx.Graphics.OpenGL
|
|
|
{
|
|
{
|
|
|
Unknown,
|
|
Unknown,
|
|
|
Amd,
|
|
Amd,
|
|
|
- Intel,
|
|
|
|
|
|
|
+ IntelWindows,
|
|
|
|
|
+ IntelUnix,
|
|
|
Nvidia
|
|
Nvidia
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -34,7 +35,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|
|
public static bool SupportsViewportSwizzle => _supportsViewportSwizzle.Value;
|
|
public static bool SupportsViewportSwizzle => _supportsViewportSwizzle.Value;
|
|
|
public static bool SupportsSeamlessCubemapPerTexture => _supportsSeamlessCubemapPerTexture.Value;
|
|
public static bool SupportsSeamlessCubemapPerTexture => _supportsSeamlessCubemapPerTexture.Value;
|
|
|
public static bool SupportsNonConstantTextureOffset => _gpuVendor.Value == GpuVendor.Nvidia;
|
|
public static bool SupportsNonConstantTextureOffset => _gpuVendor.Value == GpuVendor.Nvidia;
|
|
|
- public static bool RequiresSyncFlush => _gpuVendor.Value == GpuVendor.Amd || _gpuVendor.Value == GpuVendor.Intel;
|
|
|
|
|
|
|
+ public static bool RequiresSyncFlush => _gpuVendor.Value == GpuVendor.Amd || _gpuVendor.Value == GpuVendor.IntelWindows || _gpuVendor.Value == GpuVendor.IntelUnix;
|
|
|
|
|
|
|
|
public static int MaximumComputeSharedMemorySize => _maximumComputeSharedMemorySize.Value;
|
|
public static int MaximumComputeSharedMemorySize => _maximumComputeSharedMemorySize.Value;
|
|
|
public static int StorageBufferOffsetAlignment => _storageBufferOffsetAlignment.Value;
|
|
public static int StorageBufferOffsetAlignment => _storageBufferOffsetAlignment.Value;
|
|
@@ -71,7 +72,9 @@ namespace Ryujinx.Graphics.OpenGL
|
|
|
}
|
|
}
|
|
|
else if (vendor == "intel")
|
|
else if (vendor == "intel")
|
|
|
{
|
|
{
|
|
|
- return GpuVendor.Intel;
|
|
|
|
|
|
|
+ string renderer = GL.GetString(StringName.Renderer).ToLower();
|
|
|
|
|
+
|
|
|
|
|
+ return renderer.Contains("mesa") ? GpuVendor.IntelUnix : GpuVendor.IntelWindows;
|
|
|
}
|
|
}
|
|
|
else if (vendor == "ati technologies inc." || vendor == "advanced micro devices, inc.")
|
|
else if (vendor == "ati technologies inc." || vendor == "advanced micro devices, inc.")
|
|
|
{
|
|
{
|