From 9794a3970a3d05f762bda03bf1e695b58dc3cd3c Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 12 Mar 2026 12:04:47 +0100 Subject: [PATCH] radv/video: Fix AV1 encode min tile size Fixes: 37e71a5cb24 ("radv/video: add support for AV1 encoding") Reviewed-by: Ruijing Dong (cherry picked from commit 0450e4ff65ad2b6758d332a00b2181879eced8f2) Part-of: --- .pick_status.json | 2 +- src/amd/vulkan/radv_video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 8a60ab496b8..aeaa75cb177 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -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 diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c index f309a10265b..04dcef40aae 100644 --- a/src/amd/vulkan/radv_video.c +++ b/src/amd/vulkan/radv_video.c @@ -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;