intel: Don't tile-align pitch for untiled buffers.

This allows Mesa to use drm_intel_bo_alloc_tiled() for its tiled
buffers, since it makes its decision about pitch before telling
libdrm.  They happen to be the same choices for the tiled case.
main
Eric Anholt 2010-03-02 15:25:42 -08:00
parent acbaff24e0
commit 292a5d73a2
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ drm_intel_gem_bo_tile_pitch(drm_intel_bufmgr_gem *bufmgr_gem,
unsigned long i;
if (tiling_mode == I915_TILING_NONE)
return ROUND_UP_TO(pitch, tile_width);
return pitch;
/* 965 is flexible */
if (bufmgr_gem->gen >= 4)