radv/rt: Don't upload the prolog twice.
radv_shader_create already calls radv_shader_binary_upload.
Fixes: 4b92a53285 ("radv: add radv_create_rt_prolog()")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21945>
This commit is contained in:
committed by
Marge Bot
parent
8f6126e21a
commit
9faaff4561
@@ -2560,10 +2560,7 @@ radv_create_rt_prolog(struct radv_device *device)
|
||||
|
||||
prolog = radv_shader_create(device, binary, device->keep_shader_info, false, &in_args);
|
||||
if (!prolog)
|
||||
goto fail_create;
|
||||
|
||||
if (!radv_shader_binary_upload(device, binary, prolog))
|
||||
goto fail_alloc;
|
||||
goto fail;
|
||||
|
||||
if (options.dump_shader) {
|
||||
fprintf(stderr, "Raytracing prolog");
|
||||
@@ -2572,9 +2569,7 @@ radv_create_rt_prolog(struct radv_device *device)
|
||||
|
||||
return prolog;
|
||||
|
||||
fail_alloc:
|
||||
radv_shader_destroy(device, prolog);
|
||||
fail_create:
|
||||
fail:
|
||||
free(binary);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user