From df5f6d824bb566ba19854af7a1134c2fb95edf17 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Tue, 26 Jan 2016 11:01:24 -0800 Subject: [PATCH] anv/meta: Fix sample mask in clear pipelines Once we begin emitting the correct sample mask, genX_3DSTATE_SAMPLE_MASK_pack will hit an assertion if the mask contains too many bits. --- src/vulkan/anv_meta_clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_meta_clear.c b/src/vulkan/anv_meta_clear.c index 470b13480d8..ac369e9f9be 100644 --- a/src/vulkan/anv_meta_clear.c +++ b/src/vulkan/anv_meta_clear.c @@ -178,7 +178,7 @@ create_pipeline(struct anv_device *device, .sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO, .rasterizationSamples = 1, /* FINISHME: Multisampling */ .sampleShadingEnable = false, - .pSampleMask = (VkSampleMask[]) { UINT32_MAX }, + .pSampleMask = (VkSampleMask[]) { 0x1 }, .alphaToCoverageEnable = false, .alphaToOneEnable = false, }, -- 2.30.2