aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/zink/zink_resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/zink/zink_resource.c')
-rw-r--r--src/gallium/drivers/zink/zink_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c
index fe4097e9f0c..dccbe827f63 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -133,7 +133,7 @@ resource_create(struct pipe_screen *pscreen,
vkGetBufferMemoryRequirements(screen->dev, res->buffer, &reqs);
flags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
} else {
- res->format = zink_get_format(templ->format);
+ res->format = zink_get_format(screen, templ->format);
VkImageCreateInfo ici = {};
ici.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO;