diff options
author | Dave Airlie <airlied@redhat.com> | 2009-11-23 15:07:10 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-11-23 15:07:10 +1000 |
commit | 3a1a8b7b73424a769baf917bba2223ea6515b596 (patch) | |
tree | 9d9f8b9fc3fb1b57cf5fc9c1f8cb745697f71eaa /src | |
parent | e20af9c94982ec6487dae42c141d33cf6a7a2eb4 (diff) |
radeon: surround mixed pixmaps usage with ifdef check for old servers
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_exa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c index b2456c87..b53f3182 100644 --- a/src/radeon_exa.c +++ b/src/radeon_exa.c @@ -391,11 +391,13 @@ void *RADEONEXACreatePixmap(ScreenPtr pScreen, int size, int align) RADEONInfoPtr info = RADEONPTR(pScrn); struct radeon_exa_pixmap_priv *new_priv; +#ifdef EXA_MIXED_PIXMAPS if (info->accel_state->exa->flags & EXA_MIXED_PIXMAPS) { if (size != 0 && !info->exa_force_create && info->vram_size <= (info->exa_low_vram_threshhold_mb*1024*1024)) return NULL; } +#endif new_priv = xcalloc(1, sizeof(struct radeon_exa_pixmap_priv)); if (!new_priv) @@ -428,11 +430,13 @@ void *RADEONEXACreatePixmap2(ScreenPtr pScreen, int width, int height, uint32_t tiling = 0; int pixmap_align = 0; +#ifdef EXA_MIXED_PIXMAPS if (info->accel_state->exa->flags & EXA_MIXED_PIXMAPS) { if (width != 0 && height != 0 && !info->exa_force_create && info->vram_size <= (info->exa_low_vram_threshhold_mb*1024*1024)) return NULL; } +#endif if (usage_hint) { if (info->allowColorTiling) { |