radv: add support for shader stats dump
I've started working on a shader-db alike for Vulkan, it's based on vktrace and it records pipelines, this adds support to dump the shader stats exactly like radeonsi does, so I can reuse the shader-db scripts it uses. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user