radv: remove unnecessary RADV_DEBUG=nobatchchain option
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 12 Feb 2020 15:49:45 +0000 (16:49 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 14 Feb 2020 06:48:14 +0000 (07:48 +0100)
It was used in the past but nowadays chained submissions work fine.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3791>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3791>

docs/envvars.html
src/amd/vulkan/radv_debug.h
src/amd/vulkan/radv_device.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h

index 906e1ee25a3764816c0c573277e93fa906ddc401..9938bc31fd0d6fda407664763c50d240e534320e 100644 (file)
@@ -628,8 +628,6 @@ Mesa EGL supports different sets of environment variables.  See the
    <dd>enable wave32 for vertex/tess/geometry shaders (GFX10+)</dd>
    <dt><code>localbos</code></dt>
    <dd>enable local BOs</dd>
-   <dt><code>nobatchchain</code></dt>
-   <dd>disable chained submissions</dd>
    <dt><code>pswave32</code></dt>
    <dd>enable wave32 for pixel shaders (GFX10+)</dd>
    <dt><code>shader_ballot</code></dt>
index 97bd0deb7fefdedc30f719dac83d3055122aca05..f7001adcee2fde059adec556ec9e04fc74711d0f 100644 (file)
@@ -60,17 +60,16 @@ enum {
 };
 
 enum {
-       RADV_PERFTEST_NO_BATCHCHAIN   =    0x1,
-       RADV_PERFTEST_LOCAL_BOS       =    0x2,
-       RADV_PERFTEST_DCC_MSAA        =    0x4,
-       RADV_PERFTEST_BO_LIST         =    0x8,
-       RADV_PERFTEST_SHADER_BALLOT   =   0x10,
-       RADV_PERFTEST_TC_COMPAT_CMASK =   0x20,
-       RADV_PERFTEST_CS_WAVE_32      =   0x40,
-       RADV_PERFTEST_PS_WAVE_32      =   0x80,
-       RADV_PERFTEST_GE_WAVE_32      =  0x100,
-       RADV_PERFTEST_DFSM            =  0x200,
-       RADV_PERFTEST_ACO             =  0x400,
+       RADV_PERFTEST_LOCAL_BOS       =    0x1,
+       RADV_PERFTEST_DCC_MSAA        =    0x2,
+       RADV_PERFTEST_BO_LIST         =    0x4,
+       RADV_PERFTEST_SHADER_BALLOT   =    0x8,
+       RADV_PERFTEST_TC_COMPAT_CMASK =   0x10,
+       RADV_PERFTEST_CS_WAVE_32      =   0x20,
+       RADV_PERFTEST_PS_WAVE_32      =   0x40,
+       RADV_PERFTEST_GE_WAVE_32      =   0x80,
+       RADV_PERFTEST_DFSM            =  0x100,
+       RADV_PERFTEST_ACO             =  0x200,
 };
 
 bool
index 40742543e05165f88144e260a96ef5841e99dc99..3aa22b0c67c7b99329f7dc5967fddac0bec2b6ad 100644 (file)
@@ -572,7 +572,6 @@ radv_get_debug_option_name(int id)
 }
 
 static const struct debug_control radv_perftest_options[] = {
-       {"nobatchchain", RADV_PERFTEST_NO_BATCHCHAIN},
        {"localbos", RADV_PERFTEST_LOCAL_BOS},
        {"dccmsaa", RADV_PERFTEST_DCC_MSAA},
        {"bolist", RADV_PERFTEST_BO_LIST},
index 4e29716b9202e1749880c0854e2d3207747b4f8b..c6c9de93777a80b27ac2ea495d4e9ce194d80df0 100644 (file)
@@ -1242,7 +1242,7 @@ static int radv_amdgpu_winsys_cs_submit(struct radeon_winsys_ctx *_ctx,
        if (!cs->ws->use_ib_bos) {
                ret = radv_amdgpu_winsys_cs_submit_sysmem(_ctx, queue_idx, sem_info, bo_list, cs_array,
                                                           cs_count, initial_preamble_cs, continue_preamble_cs, _fence);
-       } else if (can_patch && cs->ws->batchchain) {
+       } else if (can_patch) {
                ret = radv_amdgpu_winsys_cs_submit_chained(_ctx, queue_idx, sem_info, bo_list, cs_array,
                                                            cs_count, initial_preamble_cs, continue_preamble_cs, _fence);
        } else {
index 4310009ddb06b989beed45ccce5ad6ab7521c855..bac68e9f7fcfe1029ef4d85872bfb273ea1a5f6a 100644 (file)
@@ -190,7 +190,6 @@ radv_amdgpu_winsys_create(int fd, uint64_t debug_flags, uint64_t perftest_flags)
        ws->use_local_bos = perftest_flags & RADV_PERFTEST_LOCAL_BOS;
        ws->zero_all_vram_allocs = debug_flags & RADV_DEBUG_ZERO_VRAM;
        ws->noop = debug_flags & RADV_DEBUG_NOOP;
-       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;
index ca16c48a791e2630e31a94cfee9994956c08f1a6..1178600384d9c96a16cb38a0e84875d8bf8ce25b 100644 (file)
@@ -44,7 +44,6 @@ struct radv_amdgpu_winsys {
        ADDR_HANDLE addrlib;
 
        bool debug_all_bos;
-       bool batchchain;
        bool use_ib_bos;
        bool zero_all_vram_allocs;
        bool use_local_bos;