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.
unsigned long i;
if (tiling_mode == I915_TILING_NONE)
unsigned long i;
if (tiling_mode == I915_TILING_NONE)
- return ROUND_UP_TO(pitch, tile_width);
/* 965 is flexible */
if (bufmgr_gem->gen >= 4)
/* 965 is flexible */
if (bufmgr_gem->gen >= 4)