Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbdfebc

Browse files
danvetairlied
authored andcommitted
drm/crtc-helper: no need to check for fb->depth/bpp
... since we already check for fb->pixel_format, which encodes all this. The other two fields are only for backwards compat of older drivers (and we might want to look into eventually just killing them). Signed-off-by: Daniel Vetter <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent e58de88 commit cbdfebc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/gpu/drm/drm_crtc_helper.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -645,11 +645,6 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
645645
mode_changed = true;
646646
} else if (set->fb == NULL) {
647647
mode_changed = true;
648-
} else if (set->fb->depth != set->crtc->fb->depth) {
649-
mode_changed = true;
650-
} else if (set->fb->bits_per_pixel !=
651-
set->crtc->fb->bits_per_pixel) {
652-
mode_changed = true;
653648
} else if (set->fb->pixel_format !=
654649
set->crtc->fb->pixel_format) {
655650
mode_changed = true;

0 commit comments

Comments
 (0)