Skip to content

Commit

Permalink
drm/radeon/kms: don't refuse LUT because no framebuffer.
Browse files Browse the repository at this point in the history
The fb binding might be happening in a subsequent crtc setup call.

gets rid of some lut issues.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Oct 12, 2009
1 parent d4ac6a0 commit e33497a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/gpu/drm/radeon/radeon_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,13 @@ static void radeon_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green,
if (size != 256) {
return;
}
if (crtc->fb == NULL) {
return;
}

/* userspace palettes are always correct as is */
for (i = 0; i < 256; i++) {
radeon_crtc->lut_r[i] = red[i] >> 6;
radeon_crtc->lut_g[i] = green[i] >> 6;
radeon_crtc->lut_b[i] = blue[i] >> 6;
}

radeon_crtc_load_lut(crtc);
}

Expand Down

0 comments on commit e33497a

Please sign in to comment.