mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
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:
parent
aaa28be0e8
commit
0c43ddd3e4
1 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue