Commit f9e1ed9f authored by Erik Faye-Lund 's avatar Erik Faye-Lund

zink: fix rendering to 3D-textures

parent 14938464
......@@ -160,6 +160,8 @@ zink_resource_create(struct pipe_screen *pscreen,
case PIPE_TEXTURE_3D:
ici.imageType = VK_IMAGE_TYPE_3D;
if (templ->bind & PIPE_BIND_RENDER_TARGET)
ici.flags = VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT;
break;
case PIPE_BUFFER:
......
......@@ -86,7 +86,7 @@ zink_create_surface(struct pipe_context *pctx,
break;
case PIPE_TEXTURE_3D:
ivci.viewType = VK_IMAGE_VIEW_TYPE_3D;
ivci.viewType = VK_IMAGE_VIEW_TYPE_2D;
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment