diff options
author | Samuel Pitoiset <[email protected]> | 2017-11-10 09:34:46 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-11-14 15:21:48 +0100 |
commit | ecabe2280c4d3e59d6a6026dd0403d6dc60dc5da (patch) | |
tree | 36a958a5530c51bb4250923f4dab9e7d6ff4bcda /src/amd/vulkan/radv_device.c | |
parent | b498172d0eace0c448b199c94730d2551786bb1b (diff) |
radv: add nosisched debug option
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 60f51469c43..471cecdd6ab 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -317,6 +317,7 @@ static const struct debug_control radv_debug_options[] = { {"vmfaults", RADV_DEBUG_VM_FAULTS}, {"zerovram", RADV_DEBUG_ZERO_VRAM}, {"syncshaders", RADV_DEBUG_SYNC_SHADERS}, + {"nosisched", RADV_DEBUG_NO_SISCHED}, {NULL, 0} }; @@ -397,6 +398,14 @@ VkResult radv_CreateInstance( instance->perftest_flags = parse_debug_string(getenv("RADV_PERFTEST"), radv_perftest_options); + if (instance->debug_flags & RADV_DEBUG_NO_SISCHED) { + /* Disable sisched when the user requests it, this is mostly + * useful when the driver force-enable sisched for the given + * application. + */ + instance->perftest_flags &= ~RADV_PERFTEST_SISCHED; + } + *pInstance = radv_instance_to_handle(instance); return VK_SUCCESS; |