mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-20 20:08:55 +07:00
drm/amdgpu: Added support for MV packet
Motion vector packet needs support in physical mode. Signed-off-by: James Zhu <James.Zhu@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
1a61ee0721
commit
1eb1547fd0
@ -755,6 +755,18 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t ib_idx)
|
||||
if (r)
|
||||
goto out;
|
||||
break;
|
||||
|
||||
case 0x0500000d: /* MV buffer */
|
||||
r = amdgpu_vce_validate_bo(p, ib_idx, idx + 3,
|
||||
idx + 2, 0, 0);
|
||||
if (r)
|
||||
goto out;
|
||||
|
||||
r = amdgpu_vce_validate_bo(p, ib_idx, idx + 8,
|
||||
idx + 7, 0, 0);
|
||||
if (r)
|
||||
goto out;
|
||||
break;
|
||||
}
|
||||
|
||||
idx += len / 4;
|
||||
@ -860,6 +872,18 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t ib_idx)
|
||||
goto out;
|
||||
break;
|
||||
|
||||
case 0x0500000d: /* MV buffer */
|
||||
r = amdgpu_vce_cs_reloc(p, ib_idx, idx + 3,
|
||||
idx + 2, *size, 0);
|
||||
if (r)
|
||||
goto out;
|
||||
|
||||
r = amdgpu_vce_cs_reloc(p, ib_idx, idx + 8,
|
||||
idx + 7, *size / 12, 0);
|
||||
if (r)
|
||||
goto out;
|
||||
break;
|
||||
|
||||
default:
|
||||
DRM_ERROR("invalid VCE command (0x%x)!\n", cmd);
|
||||
r = -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user