summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-12-06 15:20:35 -0600
committerJason Ekstrand <[email protected]>2019-12-10 20:13:56 +0000
commit41691ac016799fab2b55570a6b3d8fcb2c63bf88 (patch)
treec191f2485996aeaa92bdc24c6a9002f78b829bdf
parent85a9698ac3a032aa8e2e71ff804b489749a754ec (diff)
ANV: Stop advertising smoothLines support on gen10+
Reviewed-by: Ivan Briano <[email protected]>
-rw-r--r--src/intel/vulkan/anv_device.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index ca71cc6d245..c577abf0613 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -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;