Module: Mesa Branch: master Commit: 589bfcbde32d5eb24c50c6f9e913c686addcea83 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=589bfcbde32d5eb24c50c6f9e913c686addcea83
Author: Samuel Pitoiset <[email protected]> Date: Thu Dec 19 14:05:27 2019 +0100 radv: init a default multisample state for the resolve FS path pMultisampleState must be a valid pointer. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3167> --- src/amd/vulkan/radv_meta_resolve_fs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
