nvk: Use max_image_dimension for maxFramebufferWidth/Height

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34281>
(cherry picked from commit 65d06d91ca)
This commit is contained in:
Faith Ekstrand 2025-03-30 20:15:08 -05:00 committed by Eric Engestrom
parent 79f960cb1d
commit 9dd82a2e74
2 changed files with 3 additions and 3 deletions

View file

@ -914,7 +914,7 @@
"description": "nvk: Use max_image_dimension for maxFramebufferWidth/Height",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -802,8 +802,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,