diff options
author | Erik Faye-Lund <[email protected]> | 2019-07-16 17:16:09 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:47 +0000 |
commit | d9c068cba186a6cc3dca9d05f54842676ef303ed (patch) | |
tree | 538f31c7f99ff96cc04f52f6faa280285bb993a8 /src/gallium | |
parent | 65e2cf98d5162b8926ab888f8f120b3574d44b43 (diff) |
zink: fix rendering to 3D-textures
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/zink/zink_resource.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/zink/zink_surface.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 8726427b66c..2fd63060aea 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -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: diff --git a/src/gallium/drivers/zink/zink_surface.c b/src/gallium/drivers/zink/zink_surface.c index dc0c0b3ce0a..0b480643b1b 100644 --- a/src/gallium/drivers/zink/zink_surface.c +++ b/src/gallium/drivers/zink/zink_surface.c @@ -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: |