Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3500: [vk] fix viewport/scissor count validation error r=kvark a=kvark Fixes this VU reported in gfx-rs/wgpu#1059 : > [0.375320 ERROR]()(no module): VALIDATION [VUID-VkPipelineViewportStateCreateInfo-viewportCount-01216 (-376016417)] : Validation Error: [ VUID-VkPipelineViewportStateCreateInfo-viewportCount-01216 ] Object 0: handle = 0x2d93dbcf100, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xe99671df | vkCreateGraphicsPipelines: The VkPhysicalDeviceFeatures::multiViewport feature is disabled, but pCreateInfos[0].pViewportState->viewportCount (=0) is not 1. The Vulkan spec states: If the multiple viewports feature is not enabled, viewportCount must be 1 (https://vulkan.lunarg.com/doc/view/1.2.141.0/windows/1.2-extensions/vkspec.html#VUID-VkPipelineViewportStateCreateInfo-viewportCount-01216) object info: (type: DEVICE, hndl: 3132066951424) PR checklist: - [x] `make` succeeds (on *nix) - [ ] `make reftests` succeeds - [x] tested on wgpu-rs examples Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
- Loading branch information