summaryrefslogtreecommitdiff
blob: fda09577d0ae80549d6aa133333ddd6e608af042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
http://bugs.gentoo.org/show_bug.cgi?id=136315
--- src/mesa/drivers/dri/radeon/radeon_screen.c
+++ src/mesa/drivers/dri/radeon/radeon_screen.c
@@ -343,7 +343,6 @@
 	 return NULL;
       }
 
-      if (sPriv->drmMinor >= 6) {
 	 gp.param = RADEON_PARAM_GART_BASE;
 	 gp.value = &screen->gart_base;
 
@@ -371,7 +370,6 @@
 	 screen->drmSupportsFragShader = (sPriv->drmMinor >= 18);
 	 screen->drmSupportsPointSprites = (sPriv->drmMinor >= 13);
 	 screen->drmSupportsCubeMapsR100 = (sPriv->drmMinor >= 15);
-      }
    }
 
    screen->mmio.handle = dri_priv->registerHandle;
@@ -425,9 +423,7 @@
 	 return NULL;
       }
 
-      screen->gart_texture_offset = dri_priv->gartTexOffset + ( screen->IsPCI
-		? INREG( RADEON_AIC_LO_ADDR )
-		: ( ( INREG( RADEON_MC_AGP_LOCATION ) & 0x0ffffU ) << 16 ) );
+      screen->gart_texture_offset = dri_priv->gartTexOffset + screen->gart_base;
    }
 
    screen->chip_flags = 0;
@@ -976,12 +972,12 @@
    static const char *driver_name = "Radeon";
    static const __DRIutilversion2 ddx_expected = { 4, 5, 0, 0 };
    static const __DRIversion dri_expected = { 4, 0, 0 };
-   static const __DRIversion drm_expected = { 1, 3, 0 };
+   static const __DRIversion drm_expected = { 1, 6, 0 };
 #elif RADEON_COMMON && defined(RADEON_COMMON_FOR_R200)
    static const char *driver_name = "R200";
    static const __DRIutilversion2 ddx_expected = { 4, 5, 0, 0 };
    static const __DRIversion dri_expected = { 4, 0, 0 };
-   static const __DRIversion drm_expected = { 1, 5, 0 };
+   static const __DRIversion drm_expected = { 1, 6, 0 };
 #elif RADEON_COMMON && defined(RADEON_COMMON_FOR_R300)
    static const char *driver_name = "R300";
    static const __DRIutilversion2 ddx_expected = { 4, 5, 0, 0 };