drm/amdgpu: Allow VCE SEI command in IB
Subsystems (2)
PATCH 1/1 drm/amdgpu: Allow VCE SEI command in IB
Mesa will use it to get the slice offset in bitstream from feedback, which makes it possible to filter out SPS/PPS headers that VCE 1 and 2 FW always forces on IDR frames.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +1 -0
@@ -920,6 +920,7 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p,case 0x04000007 :/* motion estimation */ case 0x04000008 :/* rdo */ case 0x04000009 :/* vui */ +case 0x0400000d :/* sei */ case 0x05000002 :/* auxiliary buffer */ case 0x05000009 :/* clock table */ break ;
Signature · 1 line
2.43.0
Quoted 4 lines · David Rosca
Mesa will use it to get the slice offset in bitstream from feedback, which makes it possible to filter out SPS/PPS headers that VCE 1 and 2 FW always forces on IDR frames.
You probably want a driver version bump as well so mesa knows when it's ok to use that?
Alex
Quoted 21 lines
Signed-off-by David Rosca <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +1
-1@@ -920,6 +920,7 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p,case 0x04000007 :/* motion estimation */ case 0x04000008 :/* rdo */ case 0x04000009 :/* vui */ +case 0x0400000d :/* sei */ case 0x05000002 :/* auxiliary buffer */ case 0x05000009 :/* clock table */ break ; --2.43.0
Quoted 6 lines · Alex Deucher
Quoted 3 lines · David Rosca
Mesa will use it to get the slice offset in bitstream from feedback, which makes it possible to filter out SPS/PPS headers that VCE 1 and 2 FW always forces on IDR frames.
You probably want a driver version bump as well so mesa knows when it's ok to use that?
Yes, but there are more changes needed before that. I'll resend this as a series with the version bump.
David
Quoted 23 lines
Alex
Quoted 20 lines
Signed-off-by David Rosca <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +1
-1@@ -920,6 +920,7 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p,case 0x04000007 :/* motion estimation */ case 0x04000008 :/* rdo */ case 0x04000009 :/* vui */ +case 0x0400000d :/* sei */ case 0x05000002 :/* auxiliary buffer */ case 0x05000009 :/* clock table */ break ; --2.43.0