From a0153c92102fcbb9dc337154bd29c93ab45bd00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Sun, 16 Aug 2020 00:05:01 +0200 Subject: [PATCH] v3dv/device: fix point-related VkPhysicalDeviceLimits As we are here, we also tweak some line-related limits, as some use the same value that for point, and in order to use the enum we added recently at common/v3d_limits.h Fixes the following test: dEQP-VK.glsl.builtin_var.simple.pointcoord Part-of: --- src/broadcom/vulkan/v3dv_device.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c index 77bc6fa4d99..81828d449a6 100644 --- a/src/broadcom/vulkan/v3dv_device.c +++ b/src/broadcom/vulkan/v3dv_device.c @@ -777,6 +777,7 @@ v3dv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, const uint32_t v3d_coord_shift = 6; + const uint32_t v3d_point_line_granularity = 2.0f / (1 << v3d_coord_shift); const uint32_t max_fb_size = 4096; const VkSampleCountFlags supported_sample_counts = @@ -897,10 +898,11 @@ v3dv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, .maxCullDistances = 0, .maxCombinedClipAndCullDistances = 8, .discreteQueuePriorities = 2, - .pointSizeRange = { 1.0f, 1.0f }, - .lineWidthRange = { 1.0f, 32.0f }, - .pointSizeGranularity = 0.0f, - .lineWidthGranularity = 2.0f / (1 << v3d_coord_shift), + .pointSizeRange = { v3d_point_line_granularity, + V3D_MAX_POINT_SIZE }, + .lineWidthRange = { 1.0f, V3D_MAX_LINE_WIDTH }, + .pointSizeGranularity = v3d_point_line_granularity, + .lineWidthGranularity = v3d_point_line_granularity, .strictLines = true, .standardSampleLocations = false, .optimalBufferCopyOffsetAlignment = 32,