r600g: not fatal if we can't get tiling info from kernel
authorDave Airlie <airlied@redhat.com>
Fri, 22 Oct 2010 21:45:59 +0000 (07:45 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 22 Oct 2010 21:45:59 +0000 (07:45 +1000)
src/gallium/winsys/r600/drm/r600_drm.c

index c9de95ffc027fea1bfb1f945db79f5defa05b7d2..60c2f51fac03f1226e8d4acf6e4a03123f50f9ed 100644 (file)
@@ -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: