Skip to content

Commit

Permalink
Try to fix warning on Linux during vkCreateInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Jun 28, 2024
1 parent 52cf1eb commit fb41c81
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/XenoAtom.Graphics.Tests/TestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public abstract class GraphicsDeviceTestBase<T> : IDisposable where T : Graphics
private readonly GraphicsDevice _gd;
private readonly DisposeCollectorResourceFactory _factory;
private bool _hasWarningOrErrorLogs;

public GraphicsDevice GD => _gd;
public ResourceFactory RF => _factory;

Expand All @@ -50,10 +50,15 @@ public GraphicsDeviceTestBase(ITestOutputHelper textOutputHelper)

private void DebugLogImpl(DebugLogLevel debugLogLevel, DebugLogKind kind, string message)
{
// Skip warning messages related to ICD during the tests
if (message.Contains("in ICD") && debugLogLevel == DebugLogLevel.Warning)
{
return;
}
_hasWarningOrErrorLogs = true;
_textOutputHelper.WriteLine($"[{debugLogLevel}] {kind} - {message}");
}

protected DeviceBuffer GetReadback(DeviceBuffer buffer)
{
DeviceBuffer readback;
Expand Down

0 comments on commit fb41c81

Please sign in to comment.