Fix some Vulkan validation errors (#4357)
This commit is contained in:
parent
26bf13a65d
commit
f6d5499a16
4 changed files with 26 additions and 14 deletions
|
@ -100,7 +100,8 @@ namespace Ryujinx.Graphics.Vulkan.Queries
|
|||
if (_isSupported)
|
||||
{
|
||||
bool needsReset = resetSequence == null || _resetSequence == null || resetSequence.Value != _resetSequence.Value;
|
||||
_pipeline.BeginQuery(this, _queryPool, needsReset, _type == CounterType.SamplesPassed && resetSequence != null);
|
||||
bool isOcclusion = _type == CounterType.SamplesPassed;
|
||||
_pipeline.BeginQuery(this, _queryPool, needsReset, isOcclusion, isOcclusion && resetSequence != null);
|
||||
}
|
||||
_resetSequence = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue