radv/video: Always send the latency command

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36353>
This commit is contained in:
David Rosca
2025-07-23 13:27:01 +02:00
committed by Marge Bot
parent 8368e3519e
commit 947e647df8
+6 -6
View File
@@ -886,12 +886,12 @@ radv_enc_latency(struct radv_cmd_buffer *cmd_buffer, VkVideoEncodeTuningModeKHR
{
struct radv_device *device = radv_cmd_buffer_device(cmd_buffer);
const struct radv_physical_device *pdev = radv_device_physical(device);
if (tuning_mode == VK_VIDEO_ENCODE_TUNING_MODE_LOW_LATENCY_KHR ||
tuning_mode == VK_VIDEO_ENCODE_TUNING_MODE_ULTRA_LOW_LATENCY_KHR) {
RADEON_ENC_BEGIN(pdev->vcn_enc_cmds.enc_latency);
RADEON_ENC_CS(1000);
RADEON_ENC_END();
}
const bool low_latency = tuning_mode == VK_VIDEO_ENCODE_TUNING_MODE_LOW_LATENCY_KHR ||
tuning_mode == VK_VIDEO_ENCODE_TUNING_MODE_ULTRA_LOW_LATENCY_KHR;
RADEON_ENC_BEGIN(pdev->vcn_enc_cmds.enc_latency);
RADEON_ENC_CS(low_latency ? 1000 : 0);
RADEON_ENC_END();
}
static void