radv: move ac_shader_config to radv_shader_binary instead of legacy
This will allow us to avoid postprocessing binaries when they are loaded from the shaders cache. LLVM binaries already contain the shader config as part of the ELF, so it's duplicated and increase the cache entry by 48 bytes. Though, I don't think that should matter for LLVM. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12992>
This commit is contained in:
committed by
Marge Bot
parent
77e5f149eb
commit
1585629db2
@@ -247,7 +247,7 @@ aco_compile_shader(unsigned shader_count, struct nir_shader* const* shaders,
|
||||
legacy_binary->exec_size = exec_size;
|
||||
legacy_binary->code_size = code.size() * sizeof(uint32_t);
|
||||
|
||||
legacy_binary->config = config;
|
||||
legacy_binary->base.config = config;
|
||||
legacy_binary->disasm_size = 0;
|
||||
legacy_binary->ir_size = llvm_ir.size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user