nvk: Use max_image_dimension for maxFramebufferWidth/Height

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34281>
This commit is contained in:
Faith Ekstrand
2025-03-30 20:15:08 -05:00
parent c1674d4dfe
commit 65d06d91ca
+2 -2
View File
@@ -819,8 +819,8 @@ nvk_get_device_properties(const struct nvk_instance *instance,
.minInterpolationOffset = -0.5,
.maxInterpolationOffset = 0.4375,
.subPixelInterpolationOffsetBits = 4,
.maxFramebufferHeight = info->cls_eng3d >= PASCAL_A ? 0x8000 : 0x4000,
.maxFramebufferWidth = info->cls_eng3d >= PASCAL_A ? 0x8000 : 0x4000,
.maxFramebufferHeight = nvk_image_max_dimension(info, VK_IMAGE_TYPE_2D),
.maxFramebufferWidth = nvk_image_max_dimension(info, VK_IMAGE_TYPE_2D),
.maxFramebufferLayers = 2048,
.framebufferColorSampleCounts = sample_counts,
.framebufferDepthSampleCounts = sample_counts,