Mesa (master): radv: fix line width range and granularity

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Feb 13 07:45:16 UTC 2020


Module: Mesa
Branch: master
Commit: fbcf05382baefe6ecdd279e2c98025f15938fadc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbcf05382baefe6ecdd279e2c98025f15938fadc

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Dec  5 17:28:47 2019 +0100

radv: fix line width range and granularity

The hardware supports wide lines and the granularity is way larger.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2982>

---

 src/amd/vulkan/radv_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index de98dd86719..a016ff3886d 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -1407,9 +1407,9 @@ void radv_GetPhysicalDeviceProperties(
 		.maxCombinedClipAndCullDistances          = 8,
 		.discreteQueuePriorities                  = 2,
 		.pointSizeRange                           = { 0.0, 8192.0 },
-		.lineWidthRange                           = { 0.0, 7.9921875 },
+		.lineWidthRange                           = { 0.0, 8192.0 },
 		.pointSizeGranularity                     = (1.0 / 8.0),
-		.lineWidthGranularity                     = (1.0 / 128.0),
+		.lineWidthGranularity                     = (1.0 / 8.0),
 		.strictLines                              = false, /* FINISHME */
 		.standardSampleLocations                  = true,
 		.optimalBufferCopyOffsetAlignment         = 128,



More information about the mesa-commit mailing list