diff options
Diffstat (limited to 'src/intel_memory.c')
-rw-r--r-- | src/intel_memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_memory.c b/src/intel_memory.c index 90e7be7d..017a2898 100644 --- a/src/intel_memory.c +++ b/src/intel_memory.c @@ -897,7 +897,7 @@ drm_intel_bo *intel_allocate_framebuffer(ScrnInfoPtr scrn, uint32_t tiling_mode; unsigned long pitch; - if (intel->tiling) + if (intel->tiling & INTEL_TILING_FB) tiling_mode = I915_TILING_X; else tiling_mode = I915_TILING_NONE; @@ -943,7 +943,7 @@ retry: return NULL; } - if (intel->tiling && tiling_mode != I915_TILING_X) { + if ((intel->tiling & INTEL_TILING_FB) && tiling_mode != I915_TILING_X) { xf86DrvMsg(scrn->scrnIndex, X_WARNING, "Failed to set tiling on frontbuffer.\n"); } |