protonscr

vvl errors with Portal Revolution

dxvkclosed
doitsujin/dxvk#3896 · opened 2024-03-07 by hakzsam · updated 2024-03-07 · 3 comments · github
Hhakzsam 2024-03-07 github

See https://gitlab.freedesktop.org/mesa/mesa/-/issues/10467 for reference. Looks like the game use a DXVK fork but even with a recent build I was able to reproduce vvl errors. The most important one is:

VUID-VkImageViewCreateInfo-pNext-02662(ERROR / SPEC): msgNum: -55646969 - Validation Error: [ VUID-VkImageViewCreateInfo-pNext-02662 ] Object 0: handle = 0x51fa6000000049b0, type = VK_OBJECT_TYPE_IMAGE; | MessageID = 0xfcaee507 | vkCreateImageView(): pCreateInfo->pNext<VkImageViewUsageCreateInfo>.usage (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) must not include any bits that were not set in VkImageCreateInfo::usage (VK_IMAGE_USAGE_TRANSFER_SRC_BIT|VK_IMAGE_USAGE_TRANSFER_DST_BIT|VK_IMAGE_USAGE_SAMPLED_BIT) of the image. The Vulkan spec states: If the pNext chain includes a VkImageViewUsageCreateInfo structure, and image was not created with a VkImageStencilUsageCreateInfo structure included in the pNext chain of VkImageCreateInfo, its usage member must not include any bits that were not set in the usage member of the VkImageCreateInfo structure used to create image (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkImageViewCreateInfo-pNext-02662)
    Objects: 1
        [0] 0x51fa6000000049b0, type: 10, name: NULL
revolution: ../src/vulkan/runtime/vk_image.c:562: vk_image_view_init: Assertion `driver_internal || !(image_view->usage & ~image_usage)' failed.

which triggers an assertion in debug build in Mesa.

Ddoitsujin maintainer 2024-03-07 github

What exactly do I need to do to reproduce this?

Edit: nvm, I see validation errors but mesa release builds don't have asserts.

Ddoitsujin maintainer 2024-03-07 github

When dropping in a build of current master, it complains about ID3D11VkExtDevice2 missing but otherwise runs fine, I don't see the validation error in question anymore. Probably some bug in either 2.1 which their fork is based on, or the fork itself.

Ddoitsujin maintainer 2024-03-07 github

Can repro with Proton using DXVK 2.1, devs might want to update their dxvk-native.

Nothing extracted yet.