diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c index 972f88c7af8..406febec047 100644 --- a/src/gallium/drivers/zink/zink_batch.c +++ b/src/gallium/drivers/zink/zink_batch.c @@ -68,10 +68,10 @@ zink_reset_batch(struct zink_context *ctx, struct zink_batch *batch) } if (vkResetDescriptorPool(screen->dev, batch->descpool, 0) != VK_SUCCESS) - fprintf(stderr, "vkResetDescriptorPool failed\n"); + debug_printf("vkResetDescriptorPool failed\n"); if (vkResetCommandPool(screen->dev, batch->cmdpool, 0) != VK_SUCCESS) - fprintf(stderr, "vkResetCommandPool failed\n"); + debug_printf("vkResetCommandPool failed\n"); batch->submitted = batch->has_work = false; batch->resource_size = 0; } diff --git a/src/gallium/drivers/zink/zink_render_pass.c b/src/gallium/drivers/zink/zink_render_pass.c index 80565d43d1e..a6dc8b4095e 100644 --- a/src/gallium/drivers/zink/zink_render_pass.c +++ b/src/gallium/drivers/zink/zink_render_pass.c @@ -81,8 +81,10 @@ create_render_pass(VkDevice dev, struct zink_render_pass_state *state) rpci.pSubpasses = &subpass; VkRenderPass render_pass; - if (vkCreateRenderPass(dev, &rpci, NULL, &render_pass) != VK_SUCCESS) + if (vkCreateRenderPass(dev, &rpci, NULL, &render_pass) != VK_SUCCESS) { + debug_printf("vkCreateRenderPass failed\n"); return VK_NULL_HANDLE; + } return render_pass; } diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 278f1a33818..f98d8b853a3 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -188,6 +188,7 @@ resource_create(struct pipe_screen *pscreen, if (vkCreateBuffer(screen->dev, &bci, NULL, &res->buffer) != VK_SUCCESS) { + debug_printf("vkCreateBuffer failed\n"); FREE(res); return NULL; } @@ -300,6 +301,7 @@ resource_create(struct pipe_screen *pscreen, VkResult result = vkCreateImage(screen->dev, &ici, NULL, &res->image); if (result != VK_SUCCESS) { + debug_printf("vkCreateImage failed\n"); FREE(res); return NULL; } @@ -364,8 +366,10 @@ resource_create(struct pipe_screen *pscreen, mai.pNext = &memory_wsi_info; } - if (vkAllocateMemory(screen->dev, &mai, NULL, &res->mem) != VK_SUCCESS) + if (vkAllocateMemory(screen->dev, &mai, NULL, &res->mem) != VK_SUCCESS) { + debug_printf("vkAllocateMemory failed\n"); goto fail; + } res->offset = 0; res->size = reqs.size;