radeon: enabled 2D tiling for evergreen only on fixed kernel
authorJerome Glisse <jglisse@redhat.com>
Mon, 11 Jun 2012 19:04:45 +0000 (15:04 -0400)
committerJerome Glisse <jglisse@redhat.com>
Mon, 11 Jun 2012 19:04:45 +0000 (15:04 -0400)
Due to a kernel bug, enabled 2D tiling for evergreen only on
newer fixed kernel.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
radeon/radeon_surface.c

index 704d8e798e61729521ad04d667f8bf11dcd7ace5..64a8dd415f6c75da2bfdba90417ef5af5badc8b7 100644 (file)
@@ -446,7 +446,7 @@ static int eg_init_hw_info(struct radeon_surface_manager *surf_man)
 
     surf_man->hw_info.allow_2d = 0;
     version = drmGetVersion(surf_man->fd);
-    if (version && version->version_minor >= 14) {
+    if (version && version->version_minor >= 16) {
         surf_man->hw_info.allow_2d = 1;
     }