mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	drm/radeon: Also call cursor_move_locked when the cursor size changes
The cursor size also affects the register programming. Cc: stable@vger.kernel.org Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
		
							parent
							
								
									7c83d7abc9
								
							
						
					
					
						commit
						dcab0fa64e
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
					@ -297,12 +297,11 @@ int radeon_crtc_cursor_set2(struct drm_crtc *crtc,
 | 
				
			||||||
		return ret;
 | 
							return ret;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	radeon_crtc->cursor_width = width;
 | 
					 | 
				
			||||||
	radeon_crtc->cursor_height = height;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	radeon_lock_cursor(crtc, true);
 | 
						radeon_lock_cursor(crtc, true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (hot_x != radeon_crtc->cursor_hot_x ||
 | 
						if (width != radeon_crtc->cursor_width ||
 | 
				
			||||||
 | 
						    height != radeon_crtc->cursor_height ||
 | 
				
			||||||
 | 
						    hot_x != radeon_crtc->cursor_hot_x ||
 | 
				
			||||||
	    hot_y != radeon_crtc->cursor_hot_y) {
 | 
						    hot_y != radeon_crtc->cursor_hot_y) {
 | 
				
			||||||
		int x, y;
 | 
							int x, y;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -311,6 +310,8 @@ int radeon_crtc_cursor_set2(struct drm_crtc *crtc,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		radeon_cursor_move_locked(crtc, x, y);
 | 
							radeon_cursor_move_locked(crtc, x, y);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							radeon_crtc->cursor_width = width;
 | 
				
			||||||
 | 
							radeon_crtc->cursor_height = height;
 | 
				
			||||||
		radeon_crtc->cursor_hot_x = hot_x;
 | 
							radeon_crtc->cursor_hot_x = hot_x;
 | 
				
			||||||
		radeon_crtc->cursor_hot_y = hot_y;
 | 
							radeon_crtc->cursor_hot_y = hot_y;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue