mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radeon,r200: allow hyperz for radeon DRM module v2
The original code only half considered hyperz as an option. As per previous commit "major != 2 cannot occur" we can simply things, and allow users to set the option if they choose to do so. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
48926da0f7
commit
5284e9e2c4
2 changed files with 4 additions and 15 deletions
|
|
@ -225,14 +225,8 @@ GLboolean r200CreateContext( gl_api api,
|
|||
rmesa->radeon.initialMaxAnisotropy = driQueryOptionf(&rmesa->radeon.optionCache,
|
||||
"def_max_anisotropy");
|
||||
|
||||
if ( sPriv->drm_version.major == 1
|
||||
&& driQueryOptionb( &rmesa->radeon.optionCache, "hyperz" ) ) {
|
||||
if ( 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 (driQueryOptionb( &rmesa->radeon.optionCache, "hyperz"))
|
||||
rmesa->using_hyperz = GL_TRUE;
|
||||
|
||||
/* Init default driver functions then plug in our R200-specific functions
|
||||
* (the texture functions are especially important)
|
||||
|
|
|
|||
|
|
@ -191,13 +191,8 @@ r100CreateContext( gl_api api,
|
|||
rmesa->radeon.initialMaxAnisotropy = driQueryOptionf(&rmesa->radeon.optionCache,
|
||||
"def_max_anisotropy");
|
||||
|
||||
if ( driQueryOptionb( &rmesa->radeon.optionCache, "hyperz" ) ) {
|
||||
if ( 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 (driQueryOptionb(&rmesa->radeon.optionCache, "hyperz"))
|
||||
rmesa->using_hyperz = GL_TRUE;
|
||||
|
||||
/* Init default driver functions then plug in our Radeon-specific functions
|
||||
* (the texture functions are especially important)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue