mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
f3fe1f2f18
commit
a44765606c
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue