From e5486cc57f9dfa6cf46803c776561361ec511186 Mon Sep 17 00:00:00 2001
From: psucien <bad_cast@protonmail.com>
Date: Wed, 29 May 2024 12:47:40 +0200
Subject: [PATCH] video_core: amdgpu: proper destruction of processing thread

---
 src/video_core/amdgpu/liverpool.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/video_core/amdgpu/liverpool.cpp b/src/video_core/amdgpu/liverpool.cpp
index 50e5398f..ae5bd4bc 100644
--- a/src/video_core/amdgpu/liverpool.cpp
+++ b/src/video_core/amdgpu/liverpool.cpp
@@ -19,6 +19,7 @@ Liverpool::Liverpool() {
 Liverpool::~Liverpool() {
     process_thread.request_stop();
     cv_submit.notify_one();
+    process_thread.join();
 }
 
 void Liverpool::Process(std::stop_token stoken) {