mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-27 09:59:33 +01:00
Fix conditional rendering without queries (#1965)
This commit is contained in:
parent
d1e24ba5c2
commit
d6bd0470fb
1 changed files with 5 additions and 6 deletions
|
@ -71,11 +71,6 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
ICounterEvent evt = FindEvent(gpuVa);
|
||||
ICounterEvent evt2 = FindEvent(gpuVa + 16);
|
||||
|
||||
if (evt == null && evt2 == null)
|
||||
{
|
||||
return ConditionalRenderEnabled.False;
|
||||
}
|
||||
|
||||
bool useHost;
|
||||
|
||||
if (evt != null && evt2 == null)
|
||||
|
@ -86,10 +81,14 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
{
|
||||
useHost = _context.Renderer.Pipeline.TryHostConditionalRendering(evt2, _context.MemoryManager.Read<ulong>(gpuVa), isEqual);
|
||||
}
|
||||
else
|
||||
else if (evt != null && evt2 != null)
|
||||
{
|
||||
useHost = _context.Renderer.Pipeline.TryHostConditionalRendering(evt, evt2, isEqual);
|
||||
}
|
||||
else
|
||||
{
|
||||
useHost = false;
|
||||
}
|
||||
|
||||
if (useHost)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue