radv: init a default multisample state for the resolve FS path
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 19 Dec 2019 13:05:27 +0000 (14:05 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Dec 2019 07:20:44 +0000 (08:20 +0100)
pMultisampleState must be a valid pointer.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3167>

src/amd/vulkan/radv_meta_resolve_fs.c

index 5d4fe3a4be27eb5280a6daf35630de35224f97b7..2fb3297c899db987b982f10cea69369988146731 100644 (file)
@@ -608,7 +608,12 @@ create_depth_stencil_resolve_pipeline(struct radv_device *device,
                        .cullMode = VK_CULL_MODE_NONE,
                        .frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE
                },
-               .pMultisampleState = NULL,
+               .pMultisampleState = &(VkPipelineMultisampleStateCreateInfo) {
+                       .sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO,
+                       .rasterizationSamples = 1,
+                       .sampleShadingEnable = false,
+                       .pSampleMask = (VkSampleMask[]) { UINT32_MAX },
+               },
                .pColorBlendState = &(VkPipelineColorBlendStateCreateInfo) {
                        .sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO,
                        .attachmentCount = 0,