radv/video: Report maxBitrate in encode capabilities

Some cards can do higher bitrate, but 1000 Mbit/s should be high enough
for any practical use. It's also the value that AMF reports as max bitrate.

Fixes: 54d499818c ("radv/video: add initial support for encoding with h264.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28736>
(cherry picked from commit 1f07f5a79b)
This commit is contained in:
David Rosca 2024-04-17 09:19:03 +02:00 committed by Eric Engestrom
parent cb75aa3dfe
commit dd48005fc6
2 changed files with 2 additions and 2 deletions

View file

@ -1094,7 +1094,7 @@
"description": "radv/video: Report maxBitrate in encode capabilities",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "54d499818ca9a004ba735635d328a1ed0ff010b6",
"notes": null

View file

@ -559,7 +559,7 @@ radv_GetPhysicalDeviceVideoCapabilitiesKHR(VkPhysicalDevice physicalDevice, cons
VK_VIDEO_ENCODE_RATE_CONTROL_MODE_CBR_BIT_KHR |
VK_VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHR;
enc_caps->maxRateControlLayers = RADV_ENC_MAX_RATE_LAYER;
enc_caps->maxBitrate = 0;
enc_caps->maxBitrate = 1000000000;
enc_caps->maxQualityLevels = 2;
enc_caps->encodeInputPictureGranularity.width = 1;
enc_caps->encodeInputPictureGranularity.height = 1;