radv: fix allocating/uploading the trap handler shader

Since shaders are allocated per pipeline, the trap handler shader
was not uploaded at all.

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/14950>
This commit is contained in:
Samuel Pitoiset
2022-02-09 14:48:07 +01:00
parent da8c2f5ed3
commit a224b7a057
5 changed files with 44 additions and 7 deletions

View File

@@ -891,7 +891,7 @@ radv_trap_handler_finish(struct radv_device *device)
struct radeon_winsys *ws = device->ws;
if (unlikely(device->trap_handler_shader)) {
radv_shader_destroy(device, device->trap_handler_shader);
radv_trap_handler_shader_destroy(device, device->trap_handler_shader);
}
if (unlikely(device->tma_bo)) {