zink: fix rendering to 3D-textures
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
65e2cf98d5
commit
d9c068cba1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue