r100: use correct libdrm_radeon macro

Remove local definition of RADEON_INFO_TILE_CONFIG and use the correct
macro provided by libdrm_radeon RADEON_INFO_TILING_CONFIG.

Latter was present as of libdrm 2.4.22, sirca 2010.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Emil Velikov 2017-02-14 00:57:24 +00:00
parent c8f1f2dc2d
commit 78c747e820
1 changed files with 2 additions and 6 deletions

View File

@ -128,10 +128,6 @@ DRI_CONF_END
}; };
#endif #endif
#ifndef RADEON_INFO_TILE_CONFIG
#define RADEON_INFO_TILE_CONFIG 0x6
#endif
static int static int
radeonGetParam(__DRIscreen *sPriv, int param, void *value) radeonGetParam(__DRIscreen *sPriv, int param, void *value)
{ {
@ -148,8 +144,8 @@ radeonGetParam(__DRIscreen *sPriv, int param, void *value)
case RADEON_PARAM_NUM_Z_PIPES: case RADEON_PARAM_NUM_Z_PIPES:
info.request = RADEON_INFO_NUM_Z_PIPES; info.request = RADEON_INFO_NUM_Z_PIPES;
break; break;
case RADEON_INFO_TILE_CONFIG: case RADEON_INFO_TILING_CONFIG:
info.request = RADEON_INFO_TILE_CONFIG; info.request = RADEON_INFO_TILING_CONFIG;
break; break;
default: default:
return -EINVAL; return -EINVAL;