Skip to content

Commit 0859df2

Browse files
committed
drm/amdgpu: fix swapped emit_ib_size in vce3
The phys and vm versions had the values swapped. Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f9ff685 commit 0859df2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdgpu/vce_v3_0.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ static const struct amdgpu_ring_funcs vce_v3_0_ring_phys_funcs = {
900900
.emit_frame_size =
901901
4 + /* vce_v3_0_emit_pipeline_sync */
902902
6, /* amdgpu_vce_ring_emit_fence x1 no user fence */
903-
.emit_ib_size = 5, /* vce_v3_0_ring_emit_ib */
903+
.emit_ib_size = 4, /* amdgpu_vce_ring_emit_ib */
904904
.emit_ib = amdgpu_vce_ring_emit_ib,
905905
.emit_fence = amdgpu_vce_ring_emit_fence,
906906
.test_ring = amdgpu_vce_ring_test_ring,
@@ -924,7 +924,7 @@ static const struct amdgpu_ring_funcs vce_v3_0_ring_vm_funcs = {
924924
6 + /* vce_v3_0_emit_vm_flush */
925925
4 + /* vce_v3_0_emit_pipeline_sync */
926926
6 + 6, /* amdgpu_vce_ring_emit_fence x2 vm fence */
927-
.emit_ib_size = 4, /* amdgpu_vce_ring_emit_ib */
927+
.emit_ib_size = 5, /* vce_v3_0_ring_emit_ib */
928928
.emit_ib = vce_v3_0_ring_emit_ib,
929929
.emit_vm_flush = vce_v3_0_emit_vm_flush,
930930
.emit_pipeline_sync = vce_v3_0_emit_pipeline_sync,

0 commit comments

Comments
 (0)