mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 04:42:12 +00:00
drm/amdgpu: adapt vce session create interface changes
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3c0ff9f18f
commit
d66f8e48f1
@ -392,6 +392,9 @@ int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
|
||||
ib->ptr[ib->length_dw++] = 0x00000001; /* session cmd */
|
||||
ib->ptr[ib->length_dw++] = handle;
|
||||
|
||||
if ((ring->adev->vce.fw_version >> 24) >= 52)
|
||||
ib->ptr[ib->length_dw++] = 0x00000040; /* len */
|
||||
else
|
||||
ib->ptr[ib->length_dw++] = 0x00000030; /* len */
|
||||
ib->ptr[ib->length_dw++] = 0x01000001; /* create cmd */
|
||||
ib->ptr[ib->length_dw++] = 0x00000000;
|
||||
@ -404,6 +407,12 @@ int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
|
||||
ib->ptr[ib->length_dw++] = 0x00000100;
|
||||
ib->ptr[ib->length_dw++] = 0x0000000c;
|
||||
ib->ptr[ib->length_dw++] = 0x00000000;
|
||||
if ((ring->adev->vce.fw_version >> 24) >= 52) {
|
||||
ib->ptr[ib->length_dw++] = 0x00000000;
|
||||
ib->ptr[ib->length_dw++] = 0x00000000;
|
||||
ib->ptr[ib->length_dw++] = 0x00000000;
|
||||
ib->ptr[ib->length_dw++] = 0x00000000;
|
||||
}
|
||||
|
||||
ib->ptr[ib->length_dw++] = 0x00000014; /* len */
|
||||
ib->ptr[ib->length_dw++] = 0x05000005; /* feedback buffer */
|
||||
|
Loading…
Reference in New Issue
Block a user