radv/video: Fix encode session info for VCN3+

Last dword should be 0.

Cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34449>
(cherry picked from commit 7249d9548e)
This commit is contained in:
David Rosca 2025-04-09 15:35:34 +02:00 committed by Eric Engestrom
parent 15b2a440da
commit 8ffedebf1c
2 changed files with 5 additions and 2 deletions

View file

@ -1674,7 +1674,7 @@
"description": "radv/video: Fix encode session info for VCN3+",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -447,7 +447,10 @@ radv_enc_session_info(struct radv_cmd_buffer *cmd_buffer)
va += cmd_buffer->video.vid->sessionctx.offset;
radeon_emit(cs, va >> 32);
radeon_emit(cs, va & 0xffffffff);
radeon_emit(cs, RENCODE_ENGINE_TYPE_ENCODE);
if (pdev->enc_hw_ver < RADV_VIDEO_ENC_HW_3)
radeon_emit(cs, RENCODE_ENGINE_TYPE_ENCODE);
else
radeon_emit(cs, 0);
ENC_END;
}