mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
Merge branch 'vnext'
This commit is contained in:
@@ -205,6 +205,7 @@ internal partial class LogParser
|
||||
["RSX: Unsupported device"] = UnsupportedDevice(),
|
||||
["RSX: Your GPU does not support"] = UnsupportedDeviceFeatures(),
|
||||
["RSX: GPU/driver lacks support"] = UnsupportedDriverFeatures(),
|
||||
["RSX: Descriptor pool creation failed"] = RsxFragmentationError(),
|
||||
["RSX: Swapchain:"] = SwapchainMode(),
|
||||
["RSX: ** Using"] = VkExtensions(),
|
||||
["RSX: [CAPS] Using"] = GlExtensions(),
|
||||
|
||||
@@ -287,10 +287,12 @@ internal partial class LogParser
|
||||
private static partial Regex ShaderLinkageFailed();
|
||||
[GeneratedRegex(@"RSX: Unsupported device: (?<rsx_unsupported_gpu>.+)\..+?$", DefaultOptions)]
|
||||
private static partial Regex UnsupportedDevice();
|
||||
[GeneratedRegex(@"RSX: Your GPU does not support (?<rsx_not_supported_feature>.+)\..+?$", DefaultOptions)]
|
||||
[GeneratedRegex(@"RSX: Your GPU does not support (?<rsx_not_supported_feature>.+)( in shaders)?\..+?$", DefaultOptions)]
|
||||
private static partial Regex UnsupportedDeviceFeatures();
|
||||
[GeneratedRegex(@"RSX: GPU/driver lacks support for (?<rsx_not_supported_feature>.+)\..+?$", DefaultOptions)]
|
||||
private static partial Regex UnsupportedDriverFeatures();
|
||||
[GeneratedRegex(@"Descriptor pool creation failed with (?<rsx_fragmentation_error>fragmentation error).+?$", DefaultOptions)]
|
||||
private static partial Regex RsxFragmentationError();
|
||||
[GeneratedRegex(@"RSX: Swapchain: present mode (?<rsx_swapchain_mode>\d+?) in use.+?$", DefaultOptions)]
|
||||
private static partial Regex SwapchainMode();
|
||||
[GeneratedRegex(@"RSX: \*\* Using (?<vk_ext>\w+?)\r?$", DefaultOptions)]
|
||||
|
||||
@@ -114,7 +114,7 @@ public static class DiscordClientExtensions
|
||||
return null;
|
||||
|
||||
var embedBuilder = await MakeReportTemplateAsync(client, infraction, filterId, message, severity, actionList).ConfigureAwait(false);
|
||||
var reportText = string.IsNullOrEmpty(trigger) ? "" : $"Triggered by: `{matchedOn ?? trigger}`{Environment.NewLine}";
|
||||
var reportText = string.IsNullOrEmpty(trigger) ? "" : $"Triggered by: `{matchedOn?.Trim(40) ?? trigger}`{Environment.NewLine}";
|
||||
if (!string.IsNullOrEmpty(context))
|
||||
reportText += $"Triggered in: ```{context.Sanitize()}```{Environment.NewLine}";
|
||||
embedBuilder.Description = reportText + embedBuilder.Description;
|
||||
|
||||
@@ -356,7 +356,7 @@ internal static partial class LogParserResult
|
||||
}
|
||||
items["supported_gpu"] = supportedGpu ? EnabledMark : DisabledMark;
|
||||
|
||||
if (!string.IsNullOrEmpty(items["shader_compile_error"]))
|
||||
if (items["shader_compile_error"] is {Length: >0})
|
||||
{
|
||||
if (unsupportedGpuDriver)
|
||||
notes.Add("❌ Shader compilation error on unsupported GPU driver");
|
||||
@@ -365,6 +365,10 @@ internal static partial class LogParserResult
|
||||
else
|
||||
notes.Add("❌ Shader compilation error on unsupported GPU");
|
||||
}
|
||||
if (items["rsx_fragmentation_error"] is { Length: > 0 })
|
||||
{
|
||||
notes.Add("⚠️ Descriptor pool fragmentation error. May indicate insufficient VRAM size or driver issues.");
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(items["enqueue_buffer_error"])
|
||||
&& state.ValueHitStats.TryGetValue("enqueue_buffer_error", out var enqueueBufferErrorCount)
|
||||
|
||||
Reference in New Issue
Block a user