aboutsummaryrefslogtreecommitdiffstats
path: root/steamvr/vrcompositor
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2026-11-18 02:00:21 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2026-11-18 02:00:21 +0000
commit2635b90a038bb8726cff9c29dd62c9bc07d9f7b4 (patch)
tree7e31f18a41985a3468733a51118a18c18bace5ff /steamvr/vrcompositor
parent3b735d74d82e879aa7534677c565ece9fa556f78 (diff)
downloadsteamvr-patches-2635b90a038bb8726cff9c29dd62c9bc07d9f7b4.tar.gz
steamvr-patches-2635b90a038bb8726cff9c29dd62c9bc07d9f7b4.tar.xz
steamvr-patches-2635b90a038bb8726cff9c29dd62c9bc07d9f7b4.zip
avoid some weird case with invalid queues
Diffstat (limited to 'steamvr/vrcompositor')
-rw-r--r--steamvr/vrcompositor/vulkan-wait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/steamvr/vrcompositor/vulkan-wait.c b/steamvr/vrcompositor/vulkan-wait.c
index 6f2830d..c3f93a5 100644
--- a/steamvr/vrcompositor/vulkan-wait.c
+++ b/steamvr/vrcompositor/vulkan-wait.c
@@ -53,7 +53,7 @@ void wait_for_input(
// We don't care about images we're giving someone else, or things we already
// own.
- if (target_queue == Q_EXTERNAL) return;
+ if (target_queue != Q_GRAPHICS || target_queue != Q_COMPUTE) return;
struct Image *image = texture->image;
if (!image) return;
uint32_t owner = image->vtable->get_owner(image);
@@ -73,7 +73,7 @@ void wait_for_input(
uint64_t value = semaphore->vtable->get_value(semaphore);
if (!value) return;
uint32_t queue = renderer->current_queue;
- if (queue == Q_EXTERNAL) return;
+ if (queue != Q_GRAPHICS || queue != Q_COMPUTE) return;
struct NativeDevice *device = &renderer->queues[queue];
if (!device->context) return;