From: Samuel Pitoiset Date: Thu, 19 Dec 2019 13:05:27 +0000 (+0100) Subject: radv: init a default multisample state for the resolve FS path X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=589bfcbde32d5eb24c50c6f9e913c686addcea83;p=mesa.git radv: init a default multisample state for the resolve FS path pMultisampleState must be a valid pointer. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/radv_meta_resolve_fs.c b/src/amd/vulkan/radv_meta_resolve_fs.c index 5d4fe3a4be2..2fb3297c899 100644 --- a/src/amd/vulkan/radv_meta_resolve_fs.c +++ b/src/amd/vulkan/radv_meta_resolve_fs.c @@ -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,