radv/rt: Implement RADV_DEBUG=shaderstats

Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27137>
This commit is contained in:
Konstantin Seurer 2024-01-17 15:59:39 +01:00 committed by Marge Bot
parent f3fe1f2f18
commit a44765606c

View file

@ -464,6 +464,10 @@ radv_rt_nir_to_asm(struct radv_device *device, struct vk_pipeline_cache *cache,
free(binary);
*out_shader = shader;
if (radv_can_dump_shader_stats(device, stage->nir))
radv_dump_shader_stats(device, &pipeline->base.base, shader, stage->nir->info.stage, stderr);
return shader ? VK_SUCCESS : VK_ERROR_OUT_OF_HOST_MEMORY;
}