mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
radv: Don't leak the RT prolog binary
Fixes: 063d0c90 ("radv: Combine all the parts together with a main loop for an RT pipeline.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22535>
This commit is contained in:
parent
23c2dbd6ba
commit
b73e2df47a
1 changed files with 3 additions and 5 deletions
|
|
@ -2382,7 +2382,7 @@ radv_create_rt_prolog(struct radv_device *device)
|
|||
radv_postprocess_binary_config(device, binary, &in_args);
|
||||
prolog = radv_shader_create(device, binary);
|
||||
if (!prolog)
|
||||
goto fail;
|
||||
goto done;
|
||||
|
||||
if (device->keep_shader_info || options.dump_shader) {
|
||||
radv_capture_shader_executable_info(device, prolog, NULL, 0, binary);
|
||||
|
|
@ -2393,11 +2393,9 @@ radv_create_rt_prolog(struct radv_device *device)
|
|||
fprintf(stderr, "\ndisasm:\n%s\n", prolog->disasm_string);
|
||||
}
|
||||
|
||||
return prolog;
|
||||
|
||||
fail:
|
||||
done:
|
||||
free(binary);
|
||||
return NULL;
|
||||
return prolog;
|
||||
}
|
||||
|
||||
struct radv_shader_part *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue