radv: fix dumping VS prologs assembly

This got removed by mistake and broke
RADV_DEBUG=shaders,nocache,prologs.

Fixes: 9fe2b6b748 ("aco/radv: provide a vs prolog callback from aco to radv.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17413>
This commit is contained in:
Samuel Pitoiset 2022-07-08 08:31:01 +02:00 committed by Marge Bot
parent 768cd5715d
commit 6517a2b926
1 changed files with 3 additions and 1 deletions

View File

@ -2372,9 +2372,11 @@ static void radv_aco_build_prolog(void **bin,
prolog_binary->num_preserved_sgprs = num_preserved_sgprs;
prolog_binary->code_size = code_size * sizeof(uint32_t);
memcpy(prolog_binary->data, code, prolog_binary->code_size);
if (disasm_size)
if (disasm_size) {
memcpy((char*)prolog_binary->data + prolog_binary->code_size,
disasm_str, disasm_size);
prolog_binary->disasm_size = disasm_size;
}
*binary = prolog_binary;
}