Mesa (master): r600g: not fatal if we can't get tiling info from kernel

Dave Airlie airlied at kemper.freedesktop.org
Fri Oct 22 21:51:05 UTC 2010


Module: Mesa
Branch: master
Commit: 39c742fe2a25e925a2c4c42b1e654b72ea319b28
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=39c742fe2a25e925a2c4c42b1e654b72ea319b28

Author: Dave Airlie <airlied at redhat.com>
Date:   Sat Oct 23 07:45:59 2010 +1000

r600g: not fatal if we can't get tiling info from kernel

---

 src/gallium/winsys/r600/drm/r600_drm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c
index c9de95f..60c2f51 100644
--- a/src/gallium/winsys/r600/drm/r600_drm.c
+++ b/src/gallium/winsys/r600/drm/r600_drm.c
@@ -65,7 +65,7 @@ static int radeon_drm_get_tiling(struct radeon *radeon)
 				sizeof(struct drm_radeon_info));
 
 	if (r)
-		return r;
+		return 0;
 
 	switch ((tiling_config & 0xe) >> 1) {
 	case 0:




More information about the mesa-commit mailing list