drm/amdgpu/gfx: consolidate mqd buffer setup code
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Jun 2017 19:27:52 +0000 (15:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Jun 2017 22:20:59 +0000 (18:20 -0400)
commitb9683c21f69b3d8d7b6741d31a0e3cbf26c7191b
treecf9769257a65a6cfb5a8cd500d605fbd091ef895
parent4853bbb6fbb9429b84ddd3562c7f2967ca880d03
drm/amdgpu/gfx: consolidate mqd buffer setup code

It was duplicated across multiple generations.

Reviewed-by: Alex Xie <AlexBin.Xie@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c