radv/video: Fix AV1 encode min tile size

Fixes: 37e71a5cb2 ("radv/video: add support for AV1 encoding")
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
(cherry picked from commit 0450e4ff65)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40488>
This commit is contained in:
David Rosca 2026-03-12 12:04:47 +01:00 committed by Eric Engestrom
parent 0bf2abc5d5
commit 9794a3970a
2 changed files with 2 additions and 2 deletions

View file

@ -324,7 +324,7 @@
"description": "radv/video: Fix AV1 encode min tile size",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "37e71a5cb24cd6053603ca64b67352e0c8e2fce8",
"notes": null

View file

@ -1120,7 +1120,7 @@ radv_GetPhysicalDeviceVideoCapabilitiesKHR(VkPhysicalDevice physicalDevice, cons
enc_caps->encodeInputPictureGranularity = pCapabilities->pictureAccessGranularity;
ext->maxTiles.width = 2;
ext->maxTiles.height = 16;
ext->minTileSize.width = 64;
ext->minTileSize.width = pdev->enc_hw_ver >= RADV_VIDEO_ENC_HW_5 ? 256 : 128;
ext->minTileSize.height = 64;
ext->maxTileSize.width = 4096;
ext->maxTileSize.height = 4096;