From 7925581e728f343d25194ac3afbcf092923fbf30 Mon Sep 17 00:00:00 2001 From: Gabriel A Date: Tue, 11 Jul 2023 00:33:19 -0300 Subject: [PATCH] Ensure we don't set graphics state if there was no graphics pipeline bound before --- src/Ryujinx.Graphics.Vulkan/PipelineFull.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineFull.cs b/src/Ryujinx.Graphics.Vulkan/PipelineFull.cs index 4be60c2e7..30905c23d 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineFull.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineFull.cs @@ -241,16 +241,16 @@ namespace Ryujinx.Graphics.Vulkan { if (Pipeline != null) { + // Setting graphics state with a compute pipeline bound crashes the Adreno driver. + if (Pbp == PipelineBindPoint.Graphics) + { + DynamicState.ReplayIfDirty(Gd.Api, CommandBuffer); + } + Gd.Api.CmdBindPipeline(CommandBuffer, Pbp, Pipeline.Get(Cbs).Value); } SignalCommandBufferChange(); - - // Setting graphics state with a compute pipeline bound crashes the Adreno driver. - if (Pbp == PipelineBindPoint.Graphics) - { - DynamicState.ReplayIfDirty(Gd.Api, CommandBuffer); - } } public void FlushCommandsImpl()