From 03ffa9ca31f4ffcb7d4eebe45e2541de202cb985 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 29 May 2015 20:43:10 -0700 Subject: [PATCH] vk: Don't crash on partial descriptor sets --- src/vulkan/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 27165e229b6..13137751a75 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -2967,6 +2967,9 @@ cmd_buffer_emit_binding_table(struct anv_cmd_buffer *cmd_buffer, struct anv_surface_view *view = d->set->descriptors[surface_slots[b].index].view; + if (!view) + continue; + struct anv_state state = anv_cmd_buffer_alloc_surface_state(cmd_buffer, 64, 64); -- 2.30.2