Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174595
b: refs/heads/master
c: 2de3b48
h: refs/heads/master
i:
  174593: 1311b93
  174591: 176efaa
v: v3
  • Loading branch information
Jerome Glisse authored and Dave Airlie committed Dec 2, 2009
1 parent 1d09fe6 commit 25d3623
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd874ad0a0dcf715333a3f3564c6486a3a90bb22
refs/heads/master: 2de3b4841f67a15c7b8e820b84dd6b7cc41370da
7 changes: 5 additions & 2 deletions trunk/drivers/gpu/drm/radeon/atombios_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,11 @@ int atombios_crtc_set_base(struct drm_crtc *crtc, int x, int y,
uint64_t fb_location;
uint32_t fb_format, fb_pitch_pixels, tiling_flags;

if (!crtc->fb)
return -EINVAL;
/* no fb bound */
if (!crtc->fb) {
DRM_DEBUG("No FB bound\n");
return 0;
}

radeon_fb = to_radeon_framebuffer(crtc->fb);

Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,11 @@ int radeon_crtc_set_base(struct drm_crtc *crtc, int x, int y,
uint32_t gen_cntl_reg, gen_cntl_val;

DRM_DEBUG("\n");
/* no fb bound */
if (!crtc->fb) {
DRM_DEBUG("No FB bound\n");
return 0;
}

radeon_fb = to_radeon_framebuffer(crtc->fb);

Expand Down

0 comments on commit 25d3623

Please sign in to comment.