summaryrefslogtreecommitdiff
path: root/src/gpu
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-11 19:02:54 +0100
committerskal <pascal.massimino@gmail.com>2026-02-11 19:02:54 +0100
commitba16f44c689e0bde3c50052c247c234029c9a816 (patch)
treeac8dd17e84075fdc647f47fc498ca52ea26bbe86 /src/gpu
parent46e0935ba3b241dcd0e965e492ef8fa270b537ea (diff)
fix: Resolve WGPU threading crash in cnn_test
- Release queue reference after submit in texture_readback - Add final wgpuDevicePoll before cleanup to sync GPU work Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/texture_readback.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/texture_readback.cc b/src/gpu/texture_readback.cc
index f3e4056..e25da9e 100644
--- a/src/gpu/texture_readback.cc
+++ b/src/gpu/texture_readback.cc
@@ -71,6 +71,7 @@ std::vector<uint8_t> read_texture_pixels(
wgpuQueueSubmit(queue, 1, &commands);
wgpuCommandBufferRelease(commands);
wgpuCommandEncoderRelease(encoder);
+ wgpuQueueRelease(queue); // Release the queue reference
// Wait for copy to complete before mapping
wgpuDevicePoll(device, true, nullptr);