Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: fix cursor setting of dce6/dce8

Fixes: 7c83d7abc999 ("drm/amdgpu: Only update the CUR_SIZE register when
necessary")
Signed-off-by: Flora Cui <Flora.Cui@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Flora Cui and committed by
Alex Deucher
a1f49cc1 8a19e7fa

+1 -7
+1 -5
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
··· 1944 1944 1945 1945 dce_v6_0_lock_cursor(crtc, true); 1946 1946 1947 - if (width != amdgpu_crtc->cursor_width || 1948 - height != amdgpu_crtc->cursor_height || 1949 - hot_x != amdgpu_crtc->cursor_hot_x || 1947 + if (hot_x != amdgpu_crtc->cursor_hot_x || 1950 1948 hot_y != amdgpu_crtc->cursor_hot_y) { 1951 1949 int x, y; 1952 1950 ··· 1953 1955 1954 1956 dce_v6_0_cursor_move_locked(crtc, x, y); 1955 1957 1956 - amdgpu_crtc->cursor_width = width; 1957 - amdgpu_crtc->cursor_height = height; 1958 1958 amdgpu_crtc->cursor_hot_x = hot_x; 1959 1959 amdgpu_crtc->cursor_hot_y = hot_y; 1960 1960 }
-2
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
··· 2438 2438 2439 2439 dce_v8_0_cursor_move_locked(crtc, x, y); 2440 2440 2441 - amdgpu_crtc->cursor_width = width; 2442 - amdgpu_crtc->cursor_height = height; 2443 2441 amdgpu_crtc->cursor_hot_x = hot_x; 2444 2442 amdgpu_crtc->cursor_hot_y = hot_y; 2445 2443 }