Skip to contentSkip to conversation

drm/amdgpu: Allow VCE SEI command in IB

PATCH In review David Rosca 2 participants 3 messages Oct 2 – Oct 5

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 39d87f3df9e0..bfad44ec7feb 100644
@@ -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
#1 lore raw
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
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +1 -1
index 39d87f3df9e0..bfad44ec7feb 100644
@@ -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

#2 lore raw
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
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +1 -1
index 39d87f3df9e0..bfad44ec7feb 100644
@@ -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