anv: Advertise the right line width range on gen9 and CHV
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 12 Jun 2019 20:19:17 +0000 (15:19 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 6 Aug 2019 02:05:28 +0000 (02:05 +0000)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c

index cdc0cffc0f2681bd57d8be23d570f992bb09be77..d46883398b2c511401dacdfa202106cfd0baa5bd 100644 (file)
@@ -1346,7 +1346,11 @@ void anv_GetPhysicalDeviceProperties(
       .maxCombinedClipAndCullDistances          = 8,
       .discreteQueuePriorities                  = 2,
       .pointSizeRange                           = { 0.125, 255.875 },
-      .lineWidthRange                           = { 0.0, 7.9921875 },
+      .lineWidthRange                           = {
+         0.0,
+         (devinfo->gen >= 9 || devinfo->is_cherryview) ?
+            2047.9921875 : 7.9921875,
+      },
       .pointSizeGranularity                     = (1.0 / 8.0),
       .lineWidthGranularity                     = (1.0 / 128.0),
       .strictLines                              = false, /* FINISHME */