radv: add support for shader stats dump
[mesa.git] / src / amd / vulkan / radv_device.c
index 85959735d299f64f4244c1e3bd1a5d9f5ddbabbc..00f3a07367e340bf88d04dad515f22cd7034c2e9 100644 (file)
@@ -666,6 +666,7 @@ VkResult radv_CreateDevice(
        }
        device->allow_fast_clears = env_var_as_boolean("RADV_FAST_CLEARS", false);
        device->allow_dcc = !env_var_as_boolean("RADV_DCC_DISABLE", false);
+       device->shader_stats_dump = env_var_as_boolean("RADV_SHADER_STATS", false);
 
        if (device->allow_fast_clears && device->allow_dcc)
                radv_finishme("DCC fast clears have not been tested\n");