diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2015-10-08 11:25:38 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-10-14 16:16:27 -0400 |
commit | f9242d1baff77aa148a6220f906870611dbc4746 (patch) | |
tree | 432c2f45bc651945ce83b98b972d3fc39e552e78 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
parent | ef67e38cfe63c70b7901bd5fdb8a170a94b2ef69 (diff) |
drm/amdgpu/dce10: Clean up reference counting and pinning of the cursor BOs
Take a GEM reference for and pin the new cursor BO, unpin and drop the
GEM reference for the old cursor BO in dce10 crtc_cursor_set2, and use
amdgpu_crtc->cursor_addr in dce10 set_cursor.
This fixes dce10 cursor_reset accidentally incrementing the cursor BO
pin count, and cleans up the code a little.
Port of radeon commit:
cd404af0c930104462aa91344f07d002cf8248ed
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions