mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 01:40:14 +01:00
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 commit1f07f5a79b)
This commit is contained in:
parent
cb75aa3dfe
commit
dd48005fc6
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue