[Mesa-dev] [PATCH 2/2] radv: Enable command buffer chaining by default.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Sat Sep 2 22:00:53 UTC 2017
For approx 5-10% performance improvement in dota2.
---
src/amd/vulkan/radv_debug.h | 2 +-
src/amd/vulkan/radv_device.c | 2 +-
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/amd/vulkan/radv_debug.h b/src/amd/vulkan/radv_debug.h
index 0ac1f13c68a..240ce162047 100644
--- a/src/amd/vulkan/radv_debug.h
+++ b/src/amd/vulkan/radv_debug.h
@@ -41,7 +41,7 @@ enum {
};
enum {
- RADV_PERFTEST_BATCHCHAIN = 0x1,
+ RADV_PERFTEST_NO_BATCHCHAIN = 0x1,
RADV_PERFTEST_SISCHED = 0x2,
};
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index d4dd2dbf5ff..7c218b14783 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -414,7 +414,7 @@ static const struct debug_control radv_debug_options[] = {
};
static const struct debug_control radv_perftest_options[] = {
- {"batchchain", RADV_PERFTEST_BATCHCHAIN},
+ {"nobatchchain", RADV_PERFTEST_NO_BATCHCHAIN},
{"sisched", RADV_PERFTEST_SISCHED},
{NULL, 0}
};
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
index 607ef6227d7..85910fb1c82 100644
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
@@ -111,7 +111,7 @@ radv_amdgpu_winsys_create(int fd, uint64_t debug_flags, uint64_t perftest_flags)
if (debug_flags & RADV_DEBUG_NO_IBS)
ws->use_ib_bos = false;
- ws->batchchain = !!(perftest_flags & RADV_PERFTEST_BATCHCHAIN);
+ ws->batchchain = !(perftest_flags & RADV_PERFTEST_NO_BATCHCHAIN);
LIST_INITHEAD(&ws->global_bo_list);
pthread_mutex_init(&ws->global_bo_list_lock, NULL);
ws->base.query_info = radv_amdgpu_winsys_query_info;
--
2.14.1
More information about the mesa-dev
mailing list