anv: Enable per sample shading on gen8+
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 20 Jul 2016 18:40:31 +0000 (11:40 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Thu, 28 Jul 2016 20:11:12 +0000 (13:11 -0700)
Vulkan CTS test results on gen9:
./deqp-vk --deqp-case=dEQP-VK.pipeline.multisample.min_sample_shading*
Test run totals:
  Passed:        60/90 (66.7%)
  Failed:        0/90 (0.0%)
  Not supported: 30/90 (33.3%)
  Warnings:      0/90 (0.0%)

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c
src/intel/vulkan/gen8_pipeline.c

index 2e91980d3285535309348cb53cb53f5b5d2033e4..c2c515321dac45ddfab1c2fba233b55e410906a7 100644 (file)
@@ -375,7 +375,7 @@ void anv_GetPhysicalDeviceFeatures(
       .independentBlend                         = true,
       .geometryShader                           = true,
       .tessellationShader                       = false,
-      .sampleRateShading                        = false,
+      .sampleRateShading                        = pdevice->info->gen >= 8,
       .dualSrcBlend                             = true,
       .logicOp                                  = true,
       .multiDrawIndirect                        = false,
index 67ffca6199ad7aebfde59086b2ac8522d0d4bc35..94f50d12c6e2af90e26fa13788a729da54b19960 100644 (file)
@@ -122,9 +122,6 @@ emit_ms_state(struct anv_pipeline *pipeline,
    if (info && info->pSampleMask)
       sample_mask &= info->pSampleMask[0];
 
-   if (info && info->sampleShadingEnable)
-      anv_finishme("VkPipelineMultisampleStateCreateInfo::sampleShadingEnable");
-
    anv_batch_emit(&pipeline->batch, GENX(3DSTATE_MULTISAMPLE), ms) {
       /* The PRM says that this bit is valid only for DX9:
        *