radv: Enable command buffer chaining by default.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 2 Sep 2017 19:47:11 +0000 (21:47 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 3 Sep 2017 22:06:40 +0000 (00:06 +0200)
For approx 5-10% performance improvement in dota2.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_debug.h
src/amd/vulkan/radv_device.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c

index 0ac1f13c68aee8877a0558574d2866a2fa71228b..240ce162047c5f7ccd6521cec8b4ed1a4040fb29 100644 (file)
@@ -41,7 +41,7 @@ enum {
 };
 
 enum {
-       RADV_PERFTEST_BATCHCHAIN     =   0x1,
+       RADV_PERFTEST_NO_BATCHCHAIN  =   0x1,
        RADV_PERFTEST_SISCHED        =   0x2,
 };
 
index d4dd2dbf5ff481e75de965fd44fa7e01561eaeed..7c218b14783eb8b691c675b30a0b6f0097f1fd5b 100644 (file)
@@ -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}
 };
index 607ef6227d7a4ffa8ef8a1ff411da488c0777672..85910fb1c82bc7facc62a0c01d7672226fa649d3 100644 (file)
@@ -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;