From aa13f75f015f4272b0507279c6b794cd0b20ddd0 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 12 Jun 2019 15:19:17 -0500 Subject: [PATCH] anv: Advertise the right line width range on gen9 and CHV Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_device.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index cdc0cffc0f2..d46883398b2 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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 */