mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 09:25:25 +00:00
Skip validation during command recording when skip_validation is on
This patch factors resource usage tracking so it is separate from command validation, allowing the bulk of command validation to be completely skipped. In DrawCallPerfRun/Vulkan_DynamicPipeline_DynamicBindGroup, disabling validation cuts roughly 74 nanoseconds (20%) of CPU time, per draw. In DrawCallPerfRun/Vulkan_DynamicBindGroup, disabling validation cuts roughly 35 nanoseconds (17%) of CPU time, per draw. In DrawCallPerfRun/Vulkan_MultipleBindGroups, disabling validation cuts roughly 45 nanoseconds (14%) of CPU time, per draw. Bug: dawn:271 Change-Id: I517b85840ba18c6a554b83f34a1d0aef1a8c56a6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13520 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
48bf745b96
commit
4b0b7a532a
@@ -605,7 +605,8 @@ TEST_P(DrawCallPerf, Run) {
|
||||
|
||||
DAWN_INSTANTIATE_PERF_TEST_SUITE_P(
|
||||
DrawCallPerf,
|
||||
{D3D12Backend, MetalBackend, OpenGLBackend, VulkanBackend},
|
||||
{D3D12Backend, MetalBackend, OpenGLBackend, VulkanBackend,
|
||||
ForceWorkarounds(VulkanBackend, {"skip_validation"})},
|
||||
{
|
||||
// Baseline
|
||||
MakeParam(),
|
||||
|
||||
Reference in New Issue
Block a user