radv: Add bolist RADV_PERFTEST flag.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 9 Apr 2019 22:37:54 +0000 (00:37 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 15 Apr 2019 18:39:05 +0000 (20:39 +0200)
To test global_bo_list performance.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_debug.h
src/amd/vulkan/radv_device.c

index 01712bd22ceb49e160803afa2e76adabfedfc482..17a2f3370c0889ec8af69ebb1d75c7996dcaff93 100644 (file)
@@ -59,6 +59,7 @@ enum {
        RADV_PERFTEST_LOCAL_BOS      =   0x4,
        RADV_PERFTEST_OUT_OF_ORDER   =   0x8,
        RADV_PERFTEST_DCC_MSAA       =  0x10,
+       RADV_PERFTEST_BO_LIST        =  0x20,
 };
 
 bool
index c517b56cd0f79df7f965322932cd6607d1c14641..6fda43c03722f85f4548e27f05cb46919eef5316 100644 (file)
@@ -476,6 +476,7 @@ static const struct debug_control radv_perftest_options[] = {
        {"sisched", RADV_PERFTEST_SISCHED},
        {"localbos", RADV_PERFTEST_LOCAL_BOS},
        {"dccmsaa", RADV_PERFTEST_DCC_MSAA},
+       {"bolist", RADV_PERFTEST_BO_LIST},
        {NULL, 0}
 };
 
@@ -1729,6 +1730,7 @@ VkResult radv_CreateDevice(
         * from the descriptor set anymore, so we have to use a global BO list.
         */
        device->use_global_bo_list =
+               (device->instance->perftest_flags & RADV_PERFTEST_BO_LIST) ||
                device->enabled_extensions.EXT_descriptor_indexing ||
                device->enabled_extensions.EXT_buffer_device_address;