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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c
index 77bc6fa..81828d4 100644
--- a/src/broadcom/vulkan/v3dv_device.c
+++ b/src/broadcom/vulkan/v3dv_device.c
@@ -777,6 +777,7 @@
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 @@
.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,