nvk: add check for VK_IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT
The tests in dEQP-VK.pipeline.*.image_2d_view_3d_image.* set this bit and nil was not checking for it Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:

committed by
Marge Bot

parent
6f9319f60f
commit
380a2bc795
@@ -236,6 +236,8 @@ nvk_image_init(struct nvk_device *device,
|
||||
usage |= NIL_IMAGE_USAGE_LINEAR_BIT;
|
||||
if (pCreateInfo->flags & VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT)
|
||||
usage |= NIL_IMAGE_USAGE_2D_VIEW_BIT;
|
||||
if (pCreateInfo->flags & VK_IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT)
|
||||
usage |= NIL_IMAGE_USAGE_2D_VIEW_BIT;
|
||||
|
||||
/* We treat 3D storage images as 2D arrays. One day, we may wire up actual
|
||||
* 3D storage image support but baseArrayLayer gets tricky.
|
||||
|
Reference in New Issue
Block a user