From a1eea996d4f851a68e1ade138237f22be2749470 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Mon, 6 Jul 2015 22:21:51 -0700 Subject: [PATCH] vk: Emit 3DSTATE_SAMPLE_MASK This was missing and was causing the driver to not work with execlists. Presumably we get a different initial hw context with execlists enabled, that has sample mask 0 initially. Set this to 0xffff for now. When we add MS support, we need to take the value from VkPipelineMsStateCreateInfo::sampleMask. --- src/vulkan/pipeline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vulkan/pipeline.c b/src/vulkan/pipeline.c index bf8b3a0bea2..5003156e914 100644 --- a/src/vulkan/pipeline.c +++ b/src/vulkan/pipeline.c @@ -538,6 +538,9 @@ anv_pipeline_create( .PixelLocation = CENTER, .NumberofMultisamples = log2_samples); + anv_batch_emit(&pipeline->batch, GEN8_3DSTATE_SAMPLE_MASK, + .SampleMask = 0xffff); + anv_batch_emit(&pipeline->batch, GEN8_3DSTATE_URB_VS, .VSURBStartingAddress = pipeline->urb.vs_start, .VSURBEntryAllocationSize = pipeline->urb.vs_size - 1, -- 2.30.2