rhi: vulkan: Silence useless desc.set validation warnings
This is deemed more appropriate than having some time consuming tracking of descriptor types in pools, just to avoid the rare case of attempting a failing vkAllocateDescriptorSets(), which is then always followed by another, successful attempt. Change-Id: I7a3a1d80afe400dc96605a3d6c834e8b2c71143a Reviewed-by: Christian Strømme <christian.stromme@qt.io>
This commit is contained in:
parent
94fc977b2b
commit
ccee938b51
@ -345,6 +345,15 @@ static bool qvk_debug_filter(VkDebugReportFlagsEXT flags, VkDebugReportObjectTyp
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In certain cases allocateDescriptorSet() will attempt to allocate from a
|
||||||
|
// pool that does not have enough descriptors of a certain type. This makes
|
||||||
|
// the validation layer shout. However, this is not an error since we will
|
||||||
|
// then move on to another pool. If there is a real error, a qWarning
|
||||||
|
// message is shown by allocateDescriptorSet(), so the validation warning
|
||||||
|
// does not have any value and is just noise.
|
||||||
|
if (strstr(pMessage, "VUID-VkDescriptorSetAllocateInfo-descriptorPool-00307"))
|
||||||
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user