File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -3476,9 +3476,8 @@ static int skl_check_main_surface(struct intel_plane_state *plane_state)
3476
3476
* Put the final coordinates back so that the src
3477
3477
* coordinate checks will see the right values.
3478
3478
*/
3479
- drm_rect_translate (& plane_state -> base .src ,
3480
- (x << 16 ) - plane_state -> base .src .x1 ,
3481
- (y << 16 ) - plane_state -> base .src .y1 );
3479
+ drm_rect_translate_to (& plane_state -> base .src ,
3480
+ x << 16 , y << 16 );
3482
3481
3483
3482
return 0 ;
3484
3483
}
@@ -3700,9 +3699,8 @@ int i9xx_check_plane_surface(struct intel_plane_state *plane_state)
3700
3699
* Put the final coordinates back so that the src
3701
3700
* coordinate checks will see the right values.
3702
3701
*/
3703
- drm_rect_translate (& plane_state -> base .src ,
3704
- (src_x << 16 ) - plane_state -> base .src .x1 ,
3705
- (src_y << 16 ) - plane_state -> base .src .y1 );
3702
+ drm_rect_translate_to (& plane_state -> base .src ,
3703
+ src_x << 16 , src_y << 16 );
3706
3704
3707
3705
/* HSW/BDW do this automagically in hardware */
3708
3706
if (!IS_HASWELL (dev_priv ) && !IS_BROADWELL (dev_priv )) {
You can’t perform that action at this time.
0 commit comments