intel: respect tiling disable.

For testing purposes its nice to know tiling isn't being used anywhere.

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2010-07-20 11:30:44 +10:00
parent d48d584a82
commit 7a4bfaf424
1 changed files with 4 additions and 0 deletions

View File

@ -949,6 +949,10 @@ intel_uxa_create_pixmap(ScreenPtr screen, int w, int h, int depth,
if (usage == UXA_CREATE_PIXMAP_FOR_MAP || usage == INTEL_CREATE_PIXMAP_TILING_NONE)
tiling = I915_TILING_NONE;
/* if tiling is off force to none */
if (!intel->tiling)
tiling = I915_TILING_NONE;
if (tiling != I915_TILING_NONE) {
if (h <= 4)
tiling = I915_TILING_NONE;