ANV: Stop advertising smoothLines support on gen10+
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 6 Dec 2019 21:20:35 +0000 (15:20 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 10 Dec 2019 20:13:56 +0000 (20:13 +0000)
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
src/intel/vulkan/anv_device.c

index ca71cc6d24522ee07e40b86f9c94f5b4d08d36d1..c577abf06133fd1c65d51a343a320ad1bd63f891 100644 (file)
@@ -1101,7 +1101,15 @@ void anv_GetPhysicalDeviceFeatures2(
             (VkPhysicalDeviceLineRasterizationFeaturesEXT *)ext;
          features->rectangularLines = true;
          features->bresenhamLines = true;
-         features->smoothLines = true;
+         /* Support for Smooth lines with MSAA was removed on gen11.  From the
+          * BSpec section "Multisample ModesState" table for "AA Line Support
+          * Requirements":
+          *
+          *    GEN10:BUG:########      NUM_MULTISAMPLES == 1
+          *
+          * Fortunately, this isn't a case most people care about.
+          */
+         features->smoothLines = pdevice->info.gen < 10;
          features->stippledRectangularLines = false;
          features->stippledBresenhamLines = true;
          features->stippledSmoothLines = false;