[Mesa-dev] [PATCH 2/2] radv: add nosisched debug option

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Nov 10 08:54:30 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_debug.h  | 1 +
 src/amd/vulkan/radv_device.c | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/src/amd/vulkan/radv_debug.h b/src/amd/vulkan/radv_debug.h
index 193bca5f81..8e09c36528 100644
--- a/src/amd/vulkan/radv_debug.h
+++ b/src/amd/vulkan/radv_debug.h
@@ -41,6 +41,7 @@ enum {
 	RADV_DEBUG_VM_FAULTS         = 0x800,
 	RADV_DEBUG_ZERO_VRAM         = 0x1000,
 	RADV_DEBUG_SYNC_SHADERS      = 0x2000,
+	RADV_DEBUG_NO_SISCHED        = 0x4000,
 };
 
 enum {
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index f114f1a5a5..4dbfdf286e 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}
 };
 
@@ -419,6 +420,14 @@ VkResult radv_CreateInstance(
 
 	radv_handle_per_app_options(instance, pCreateInfo->pApplicationInfo);
 
+	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;
-- 
2.15.0



More information about the mesa-dev mailing list