From: Dave Airlie Date: Thu, 12 Feb 2009 04:41:16 +0000 (+1000) Subject: radeon: add defines for future bits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec0939b01370e9272000fcd4d71a023866e767a0;p=mesa.git radeon: add defines for future bits --- diff --git a/src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h b/src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h index 2117be71618..a54a3610b95 100644 --- a/src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h +++ b/src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h @@ -13,6 +13,14 @@ #define RADEON_GEM_DOMAIN_GTT 0x2 // GTT or cache flushed #define RADEON_GEM_DOMAIN_VRAM 0x4 // VRAM domain +#ifndef DRM_RADEON_GEM_INFO +#define DRM_RADEON_GEM_INFO 0x1c +#endif + +#ifndef RADEON_PARAM_DEVICE_ID +#define RADEON_PARAM_DEVICE_ID 17 +#endif + /* to be used to build locally in mesa with no libdrm bits */ #include "../radeon/radeon_bo_drm.h" #include "../radeon/radeon_cs_drm.h" diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index 133d0d75552..8b06fb4d3e9 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -1016,10 +1016,6 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv ) return screen; } -#ifndef RADEON_PARAM_DEVICE_ID -#define RADEON_PARAM_DEVICE_ID 17 -#endif - static radeonScreenPtr radeonCreateScreen2(__DRIscreenPrivate *sPriv) {