1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[d3d11] Don't allocate predicate for unsupported predicates

This commit is contained in:
Philip Rebohle 2019-04-14 14:26:56 +02:00
parent 7dc449ac55
commit 364ae7270d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -302,6 +302,9 @@ namespace dxvk {
DxvkBufferSlice D3D11Query::GetPredicate(DxvkContext* ctx) {
std::lock_guard<sync::Spinlock> lock(m_predicateLock);
if (unlikely(m_desc.Query != D3D11_QUERY_OCCLUSION_PREDICATE))
return DxvkBufferSlice();
if (unlikely(!m_predicate.defined())) {
m_predicate = m_device->AllocPredicateSlice();
ctx->writePredicate(m_predicate, m_query);