radeonsi: unify disk cache id no matter use_aco or not

Which compiler shader is compiled with could be distinguished
with nir->info.use_aco_amd now, so no need to separate disk
cache id for them.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32742>
This commit is contained in:
Qiang Yu 2024-12-27 11:03:08 +08:00
parent aaa28be0e8
commit 0c43ddd3e4

View file

@ -1112,13 +1112,8 @@ static void si_disk_cache_create(struct si_screen *sscreen)
if (!disk_cache_get_function_identifier(si_disk_cache_create, &ctx))
return;
/* ACO and LLVM shader binary have different cache id distinguished by if adding
* the LLVM function identifier. ACO is a built-in component in mesa, so no need
* to add aco function here.
*/
#if AMD_LLVM_AVAILABLE
if (!sscreen->use_aco &&
!disk_cache_get_function_identifier(LLVMInitializeAMDGPUTargetInfo, &ctx))
if (!disk_cache_get_function_identifier(LLVMInitializeAMDGPUTargetInfo, &ctx))
return;
#endif