diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c index 9a92a32..a2657d5 100644 --- a/src/mesa/drivers/dri/r200/r200_context.c +++ b/src/mesa/drivers/dri/r200/r200_context.c @@ -310,15 +310,15 @@ GLboolean r200CreateContext( const __GLcontextModes *glVisual, "def_max_anisotropy"); if ( driQueryOptionb( &rmesa->radeon.optionCache, "hyperz" ) ) { - if ( sPriv->drm_version.minor < 13 ) + if (( sPriv->drm_version.major == 1 ) && ( sPriv->drm_version.minor < 13 )) fprintf( stderr, "DRM version 1.%d too old to support HyperZ, " "disabling.\n", sPriv->drm_version.minor ); else rmesa->using_hyperz = GL_TRUE; } - - if ( sPriv->drm_version.minor >= 15 ) - rmesa->texmicrotile = GL_TRUE; + + if (( sPriv->drm_version.major > 1 ) || ( sPriv->drm_version.minor >= 15 )) + rmesa->texmicrotile = GL_TRUE; /* Init default driver functions then plug in our R200-specific functions * (the texture functions are especially important) diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c index 46cba73..49fed8e 100644 --- a/src/mesa/drivers/dri/radeon/radeon_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_context.c @@ -243,14 +243,14 @@ r100CreateContext( const __GLcontextModes *glVisual, "def_max_anisotropy"); if ( driQueryOptionb( &rmesa->radeon.optionCache, "hyperz" ) ) { - if ( sPriv->drm_version.minor < 13 ) + if (( sPriv->drm_version.major == 1 ) && ( sPriv->drm_version.minor < 13 )) fprintf( stderr, "DRM version 1.%d too old to support HyperZ, " "disabling.\n", sPriv->drm_version.minor ); else rmesa->using_hyperz = GL_TRUE; } - if ( sPriv->drm_version.minor >= 15 ) + if (( sPriv->drm_version.major > 1 ) || ( sPriv->drm_version.minor >= 15 )) rmesa->texmicrotile = GL_TRUE; /* Init default driver functions then plug in our Radeon-specific functions